-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemo.css
167 lines (154 loc) · 3.17 KB
/
memo.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* Ensure consistent border-box based element sizing */
body > * {
box-sizing: border-box;
}
/* Outer wrapper div */
#wrapper {
display: flex;
flex-flow: row wrap;
max-width: 1200px;
margin: auto;
}
#wrapper > * {
padding: 10px;
flex: 1 100%;
}
/* Header containing title and memo administration elements*/
header {
display: flex;
flex-direction: column;
align-items: center;
}
/* Flex for header button elements*/
#itemEntry {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
}
/*Buttons for creating and administrating memo items*/
.entryButton {
border: 0;
border-radius: 5px;
height: 4ex;
flex-basis: 40%;
}
/* "New" button */
#newMemo {
background: #6dc96d;
}
/* "Remove Done" button */
#deleteDone {
background-color: tomato;
}
/* --- Flex box of memo card elements ---*/
main {
display: flex;
flex-direction: column-reverse;
align-items: center;
}
/* A memo card flex item */
.card {
width: 100%;
height: 98%;
display: flex;
flex-direction: row;
justify-content: center;
padding: 2px;
margin: 10px 0 0 0;
border-radius: 5px;
box-shadow: 5px 3px 5px -1px rgba(0, 0, 0, 0.34);
/* transition for element mouse hover*/
transition: all 0.1s cubic-bezier(.18, .89, .32, 1.28);
font-size: xx-large;
color: black;
}
/* User input text on item card */
.itemText {
/*be greedy*/
flex-grow: 1;
}
/* --- Memo card button elements --- */
.cardButton {
border: 0;
background-color: transparent;
}
/* Checkbox marking card item as "done" */
.checkBtn {
margin-right: 1em;
}
.checkButtonHover {
color: orange;
}
/* Button and dropdown for priority marking */
.priStarBtn {
}
/* Delete button on item card*/
.deleteBtn {
color: #5d6164;
}
/* Styling for items checked off as done*/
.done {
}
.done > .itemText{
filter: blur(1px);
text-decoration: line-through;
color: #aaaaaaaa;
}
/* --- Memo item priority select dropdown menu --- */
#priDropdown {
position: fixed;
width: min-content;
}
#priDropdown > * {
/*just to make sure the dropdown is always on top*/
z-index: 10;
}
/* The actual dropdown menu element*/
.dropMenu {
box-shadow: 5px 3px 5px 2px rgba(0, 0, 0, 0.34) ;
border-radius: 5px;
background-color: white;
}
/* Priority select buttons inside dropdown menu*/
.priButton {
border: 0;
display: block;
width: 100%;
font-size: inherit;
padding: 0 0.5em;
}
.priTop{
background-color: tomato;
}
.priMid{
background-color: #6dc96d;
}
.priLow{
background-color: cornflowerblue;
}
.priNone{
background-color: inherit;
}
/* --- Hover styling only enabled on devices that support it --- */
/* todo: these can be changed to JS instead*/
@media all and (hover) {
.entryButton:hover{
color: whitesmoke;
}
.card:hover {
width: 101%;
box-shadow: 5px 3px 5px 2px rgba(0, 0, 0, 0.34);
}
.deleteBtn:hover {
color: #f24236;
}
.priButton:hover {
filter: brightness(90%);
}
}
/* --- Palace holder for mobile media rules --- */
@media all and (min-width: 600px) {
}
@media all and (min-width: 1200px) {
}