Skip to content

Commit 37af67d

Browse files
committed
mobile fix
1 parent 2f669e4 commit 37af67d

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

style.css

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ body {
101101
right: -3.5rem;
102102
bottom: 1rem;
103103
position: absolute;
104-
background-color: orange;
105104
z-index: 1;
106105
display: flex;
107106
justify-content: center;
@@ -163,7 +162,6 @@ body {
163162
.tools, .align, .utilities {
164163
position: relative;
165164
left: 20em;
166-
background-color: orange;
167165
}
168166
.tools {top: 4%;}
169167
.note-div .btn-add {background-color: limegreen; top: 0;}
@@ -263,3 +261,41 @@ svg {
263261
}
264262
}
265263
*/
264+
265+
@media (max-width: 930px) {
266+
.btn-open, .side-bar {display: none;}
267+
}
268+
@media (max-width: 610px) {
269+
.paper {
270+
margin-top: 2em;
271+
outline: none;
272+
position: relative;
273+
background: #fff;
274+
width: 90%;
275+
min-height: 50vh;
276+
padding: 0.5em 1em 0em 3em;
277+
border-radius: 5px;
278+
box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
279+
background: -webkit-gradient(linear, 0 0, 0 100%, from(#bdbdbd), color-stop(4%, #fff)) 0 4px;
280+
background-size: 100% 2rem;
281+
line-height: 2rem;
282+
overflow-wrap: break-word;
283+
transform: scale(1);
284+
opacity: 1;
285+
transition: transform 0.2s cubic-bezier(.2,1.8,.70,1.4), opacity 0.3s ease-in-out;
286+
overflow: hidden;
287+
max-height: 80vh;
288+
}
289+
.note-div button, .btn-open {position: unset;}
290+
.utilities, .tools, .align {
291+
position: absolute;
292+
top: 70%;
293+
width: fit-content;
294+
display: flex;
295+
}
296+
.utilities{top: 77.5%;}
297+
.align{top: 85%;}
298+
.tools, .utilities, .align {left: unset;}
299+
.tools >*, .utilities >*, .align >* {margin: 0.5em;}
300+
}
301+

0 commit comments

Comments
 (0)