Skip to content

Commit 5da9fd4

Browse files
committed
Mobil fix for good
1 parent b8d2da4 commit 5da9fd4

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

docs/index.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
border-radius: 3px;
6868
font-family: inherit;
6969
font-weight: inherit;
70+
max-width: 90%;
7071
}
7172
::-moz-selection{
7273
background: #333;
@@ -79,20 +80,19 @@
7980
.basegrid.wrap>div{
8081
height: 100vh;
8182
}
82-
@media screen and (max-width: 760px){
83-
.basegrid.wrap{
84-
--gc: 6;
85-
}
83+
@media screen and (max-width: 600px){
8684
.basegrid.wrap>div{
8785
height: 40vh;
88-
--h: 4;
86+
}
87+
.info{
88+
width: 90vw;
8989
}
9090
}
9191
</style>
9292
</head>
9393
<body>
9494
<div id="app">
95-
<div class="basegrid wrap fixed" style="--gw: 100vw; --gg: 0px;">
95+
<div class="basegrid wrap fixed res" style="--gw: 100vw; --gg: 0px;">
9696
<div style="--w:6">
9797
<div class="basegrid demo fixed" v-if="type === 'fixed'" :style="grid">
9898
<div style="--w:6"></div>
@@ -176,8 +176,12 @@ <h1>basegrid <span>(0.6KB)</span></h1>
176176
(Firefox 31+, Chrome 49+, Safari 9.1+, Opera 36+, Edge 16+)
177177
</p>
178178
<p>
179-
<label>Gap:</label><input v-model="gg" type="range" min="0" max="30">
180-
<label>Columns:</label><input v-model="gc" type="range" min="10" max="20"><br>
179+
<p>
180+
<label>Gap:</label><input v-model="gg" type="range" min="0" max="30">
181+
</p>
182+
<p>
183+
<label>Columns:</label><input v-model="gc" type="range" min="10" max="20"><br>
184+
</p>
181185
<select v-model="type">
182186
<option value="fixed">Fixed grid</option>
183187
<option value="masonry">Masonry grid</option>

0 commit comments

Comments
 (0)