-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
185 lines (163 loc) · 3.86 KB
/
Copy pathstyle.css
File metadata and controls
185 lines (163 loc) · 3.86 KB
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
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(to right, lightpink, lightblue);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
height: auto;
min-height: 100vh;
margin: 0;
padding: 0;
color: #333;
overflow: hidden;
font-size: calc(0.5rem + 1vw);
line-height: calc(1rem + 0.5vw);
}
h1 {
font-size: calc(1rem + 1vw);
font-weight: 100;
letter-spacing: -0.0625rem;
margin-bottom: 2.5rem;
margin-right: 2.5rem;
text-align: center;
font-family: 'Arial', sans-serif;
text-transform: uppercase;
color: #686666;
}
.container {
display: flex;
flex-direction: row;
width: calc(60vw + 2rem);
height: calc(60vh + 2rem);
max-width: 90vw;
max-height: 90vh;
margin: auto;
overflow: hidden;
}
.burger {
display: none;
cursor: pointer;
height: 1.5625rem;
width: 1.5625rem;
position: absolute;
top: 0.9375rem;
right: 1.25rem;
padding: 0.625rem;
margin: 0.625rem;
}
@media screen and (min-width: 37.5rem) {
.container {
width: calc(75vw + 2rem);
height: calc(75vh + 2rem);
}
.burger {
display: none;
}
}
@media screen and (min-width: 60rem) {
.container {
width: calc(80vw + 2rem);
height: calc(80vh + 2rem);
}
.burger {
display: none;
}
}
.buttons {
display: flex;
flex-direction: column;
align-items: flex-start;
}
button {
margin: 0.625rem;
padding: 0.625rem 1.25rem;
font-size: calc(0.75rem + 1vw);
font-weight: 200;
border: none;
border-radius: 1.25rem;
color: #333;
background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
box-shadow: 0.3125rem 0.3125rem 0.625rem #cbcbcb, -0.3125rem -0.3125rem 0.625rem #ffffff;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background: linear-gradient(145deg, #e8e8e8, #d8d8d8);
}
button:active {
background: linear-gradient(145deg, #d8d8d8, #c8c8c8);
box-shadow: inset 0.1875rem 0.1875rem 0.375rem #cbcbcb, inset -0.1875rem -0.1875rem 0.375rem #ffffff;
}
#container {
display: grid;
width: calc(60vw + 2rem);
height: calc(60vh + 2rem);
border: 0.3125rem solid rgba(0, 0, 0, 0.1);
border-radius: 0.625rem;
box-sizing: border-box;
background-color: white;
}
.cell {
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0;
border: none;
display: flex;
justify-content: center;
align-items: center;
}
@media screen and (max-width: 37.5rem) {
body {
align-items: flex-start; /* Adjust alignment */
}
.container {
width: 100%; /* Take full width of the viewport */
height: calc(100vh - 3.125rem); /* Adjust max-height to accommodate the burger menu */
flex-direction: column-reverse; /* Reverse the order for proper layout */
}
.buttons {
position: absolute;
right: -12.5rem; /* Adjust position */
top: 0; /* Adjust position */
height: 100vh;
width: 12.5rem;
flex-direction: column;
justify-content: center;
align-items: center;
transition: right 0.3s ease-in-out; /* Adjust transition property */
background-color: white; /* Add background color */
}
.burger {
display: block;
cursor: pointer;
height: 1.5625rem;
width: 1.5625rem;
position: absolute;
top: 0.9375rem;
right: 1.25rem;
padding: 0.625rem;
margin: 0.625rem;
z-index: 1; /* Set z-index to ensure the burger icon appears above the grid */
}
.burger div {
width: 1.875rem;
height: 0.25rem; /* Adjust height */
background-color: #333;
margin: 0.3125rem;
transition: all 0.3s ease;
}
.burger div:last-child {
margin-bottom: 0; /* Remove margin-bottom */
}
.burger.active div {
transform: rotate(45deg); /* Adjust rotation */
}
.burger.active div:nth-child(2) {
opacity: 0; /* Hide middle line */
}
.burger.active div:last-child {
transform: rotate(-45deg); /* Adjust rotation */
}
}