-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
195 lines (161 loc) · 3.65 KB
/
grid.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
.difficulty-level {
display: inline-block;
height: 1.4em;
text-align: center;
border-radius: 5px; /* Adjust the radius as needed */
background-color: #2196F3; /* Change the background color */
color: #fff; /* Change the text color */
font-weight: bold;
border: 1px solid black;
}
.easy {
background-color: #4CAF50; /* Color for 'Easy' */
}
.medium {
background-color: #FFC107; /* Color for 'Medium' */
}
.hard {
background-color: #F44336; /* Color for 'Hard' */
}
#awesome-bar {
border: 1px solid black;
padding: 5px;
}
#awesome-bar input {
width: 100%;
font-size: 2em;
/* border: 0;*/
}
.css-masonry div,
.css-masonry p,
.css-masonry img {
padding: 0;
margin: 0;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/* BODY CODE
* ------------------ */
body {
font-family: sans-serif;
margin: 10px;
background: #ddd;
}
/* MASONRY GRID
* ------------------ */
/* .css-masonry {
-webkit-column-count: 4;
-moz-column-count: 4;
column-count: 4;
-webkit-column-gap: 1em;
-moz-column-gap: 1em;
column-gap: 1em;
-moz-column-gap: 1.5em;
-webkit-column-gap: 1.5em;
column-gap: 1.5em;
margin: 1.5em;
padding: 0;
font-size: .85em;
} */
.css-masonry.css-fullsonry {
grid-template-columns: repeat(1, 1fr);
}
.css-masonry.css-nimasonry {
grid-template-columns: repeat(3, 1fr);
}
.css-masonry#awesome-bar {
grid-template-columns: repeat(1, 1fr);
}
.css-masonry {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: 1.5em;
margin: 1.5em;
padding: 0;
font-size: .85em;
}
@media only screen and (max-width: 800px) {
.css-masonry,
.css-masonry.css-nimasonry {
grid-template-columns: repeat(1, 1fr);
}
}
/* ITEM
* ------------------ */
.item.nima {
background: white;
}
.item {
display: inline-block;
width: 100%;
font-family: 'Alata', sans-serif;
font-size: 1em;
background: #fff;
margin: 0 0 1em;
width: 100%;
-webkit-transition: 1s ease all;
border: 2px solid black;
border-radius: 6px;
overflow: hidden;
/* to affect the inner elements with the radius */
}
.item img {
max-width: 100%;
font-size: 0;
height: auto;
/* to be sure to don't have a spacing after the img due to the inline block function */
}
.item-number {
border: 2px solid black;
border-radius: 50%;
background: #fff;
font-size: 0.8em;
display: flex;
/* flex is for center verticaly and horizontaly the number */
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
padding: 0 2px 2px 0;
/* I display right and bottom padding because of the font who is not center par default : delete if you change the font */
position: absolute;
margin: 5px;
}
.item .title {
border: 0px solid blue;
padding: 10px 10px 14px;
}
.french {
color: grey;
font-size: 0.8em;
}
/*
@media only screen and (max-width: 420px) {
.css-masonry {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
}
@media only screen and (min-width: 421px) and (max-width: 768px) {
.css-masonry {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
}
@media only screen and (min-width: 769px) and (max-width: 1000px) {
.css-masonry {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
}
@media only screen and (min-width: 1001px) {
.css-masonry {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
}
} */