ソースを参照

:art: redoing break-points with different technique

tags/0.9.0
j 4年前
コミット
dd5d43a68f

+ 5
- 5
vue-theme/src/components/footer.vue ファイルの表示

@@ -142,7 +142,7 @@
142 142
             font-size: 0.8em
143 143
             color: $cia_grey
144 144
 
145
-    @media (--medium-viewport)
145
+    @media (min-width: $medium)
146 146
         footer.main > ul
147 147
             background-color: darkgreen
148 148
             &:nth-child(n+2)
@@ -152,14 +152,14 @@
152 152
                 > li
153 153
                     width: 50%
154 154
 
155
-    @media (--large-viewport)
155
+    @media (min-width: $large)
156 156
         footer.main > ul
157 157
             background-color: purple
158 158
             &:nth-child(n+2)
159 159
                 > li
160 160
                     width: 33%
161 161
 
162
-    @media (--extra-large-viewport)
162
+    @media (min-width: $extra-large)
163 163
         footer.main > ul
164 164
             background-color: rebeccapurple
165 165
             &:nth-child(n+2)
@@ -167,14 +167,14 @@
167 167
                 > li
168 168
                     width: 25%
169 169
 
170
-    @media (--huge-viewport)
170
+    @media (min-width: $huge)
171 171
         footer.main 
172 172
             max-width: $max-width
173 173
             margin: 0 auto
174 174
             > ul
175 175
                 background-color: orange
176 176
 
177
-    @media (--ultra-viewport)
177
+    @media (min-width: $ultra)
178 178
         footer.main 
179 179
             > ul
180 180
                 background-color: teal

+ 2
- 3
vue-theme/src/components/navigation/navigation.vue ファイルの表示

@@ -134,15 +134,14 @@ nav.main
134 134
                     color: $cia_black
135 135
                     padding: $ms--1
136 136
 
137
-    /* large works not medium*/
138
-    @media (--large-viewport)
137
+    @media (min-width: $large)
139 138
         .menu
140 139
             display: flex
141 140
             justify-content: center
142 141
         .mobile-menu
143 142
             display: none
144 143
 
145
-    @media (--extra-large-viewport)
144
+    @media (min-width:  $extra-large)
146 145
         .menu > ul
147 146
             max-width: $max-width
148 147
 </style>

+ 0
- 9
vue-theme/src/sss/_helpers.sss ファイルの表示

@@ -84,12 +84,3 @@ button
84 84
     &-back
85 85
         z-index: -1
86 86
 
87
-
88
-/* named breakpoints */
89
-@custom-media --tiny-viewport (min-width: 375px)
90
-@custom-media --small-viewport (min-width: 480px)
91
-@custom-media --medium-viewport (min-width: 768px)
92
-@custom-media --large-viewport (min-width: 960px)
93
-@custom-media --extra-large-viewport (min-width: 1080px)
94
-@custom-media --huge-viewport (min-width: 1200px)
95
-@custom-media --ultra-viewport (min-width: 1440px)

+ 10
- 1
vue-theme/src/sss/variables.sss ファイルの表示

@@ -33,4 +33,13 @@ $ms-9: calc($ms-8 * $ratio)
33 33
 /* Fonts */
34 34
 $sans: 'Questrial', sans-serif
35 35
 $serif: 'Hoefler Text', 'Crimson Text', serif
36
-$mono: 'Roboto Mono', monospace
36
+$mono: 'Roboto Mono', monospace
37
+
38
+/* Screen Breaks */
39
+$tiny: 375px
40
+$small: 480px
41
+$medium: 768px
42
+$large: 960px
43
+$extra-large: 1080px
44
+$huge: 1200px
45
+$ultra: 1440px

読み込み中…
キャンセル
保存