forked from The-MindSpace/MindSpace-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.css
213 lines (195 loc) · 3.9 KB
/
dashboard.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
width: 100vw;
overflow-x: hidden;
scroll-behavior: smooth;
}
nav {
position: sticky;
z-index: 20;
background-color: #72D34F;
color: #fff;
height: 10vh;
font-size: 2.5vh;
font-weight: 900;
padding: 2rem;
/* position: absolute; */
width: 100%;
top: 0;
/* blur navbar copy from SO*/
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
ul {
display: flex;
align-items: center;
list-style: none;
width: 100%;
justify-content: flex-start;
}
li {
height: 10vh;
transform: translateX(100px);
padding-right: 8vw;
}
/* select all li except first one */
li:not(:first-child) {
transform: translateX(260px);
}
.logo {
width: 40vh;
position: absolute;
left: 100%;
transform: translate(-67%, -16.7vh);
}
.foot {
/* display: absolute; */
/* margin-top: 50vh; */
bottom: 0;
width: 100%;
}
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
/* height: 100vh; */
width: 100%;
/* background-color: #72D34F; */
margin-top: 5vh;
margin-bottom: 5vh;
}
.heading {
font-size: 5vh;
color: #72D34F;
}
.grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
grid-gap: 2rem;
padding : 4rem;
/* background-color: black; */
}
.grid:nth-of-type(2) {
grid-template-columns: repeat(4, 1fr);
}
.grid div {
width: calc(20vh / 6 + 50vw / 6);
height: calc(20vh / 6 + 50vw / 6);
/* height: ; */
/* background-color: white ; */
/* box shadow no offset high blur*/
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
transition: ease 0.4s;
/* color: #fff; */
/* padding: 1rem; */
outline: 3px solid #72D34F;
outline-offset: 3px;
border-radius: 1000px;
color: white;
font-size: 2vh;
font-weight: 700;
display: grid;
place-items: center;
}
.grid div:hover {
background-color: #72D34F;
transition: linear 0.1s;
}
.grid div:not(hover) {
background-color: white;
transition: linear background-color 2.5s;
}
grid div::selection {
background-color: black;
}
nav li a{
text-decoration: none;
color: white;
cursor: pointer;
transition: ease 1s;
}
nav li a:hover{
text-shadow: 1px 1px black;
font-size: 2.5vh;
}
.foot{
display: flex;
/* margin-top: 100px; */
background: #72D34F;
/* height: 550px; */
padding: 35px;
/* justify-content: center; */
}
.about p{
margin-top: 10px;
font-weight: 500;
color: rgb(109, 92, 92);
}
.about ul li img{
width: 240px;
height: 180px;
}
.about ul{
transform: translateX(-100px);
margin-top: 20px;
}
.about ul li{
width: 255px;
border: 8px solid white;
height: 195px;
border-radius: 10px;
}
.about ul li h3{
transform: translate(5px,-52px);
}
.about ul li a{
text-decoration: none;
color: white;
}
.about ul li:hover{
cursor: pointer;
box-shadow: 2px 2px 5px 5px rgb(77, 70, 70);
}
.about h1{
color: rgb(50, 108, 100);
}
/* media query */
@media screen and (max-width: 768px) {
.grid {
grid-template-columns: repeat(4, 1fr);
}
.grid:nth-of-type(2) {
grid-template-columns: repeat(2, 1fr);
}
.grid div {
width: calc(20vh / 6 + 50vw / 6);
height: calc(20vh / 6 + 50vw / 6);
}
.grid div:hover {
background-color: #72D34F;
transition: linear 0.1s;
}
.grid div:not(hover) {
background-color: white;
transition: linear background-color 2.5s;
}
.grid div::selection {
background-color: black;
}
.logo {
width: 40vh;
position: absolute;
left: 100%;
transform: translate(-40%, -16.7vh);
}
li:not(:first-child) {
display: none;
}
}