Kaynağa Gözat

:art: redoing break-points with different technique

tags/0.9.0
j 4 yıl önce
ebeveyn
işleme
dd5d43a68f

+ 5
- 5
vue-theme/src/components/footer.vue Dosyayı Görüntüle

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

+ 2
- 3
vue-theme/src/components/navigation/navigation.vue Dosyayı Görüntüle

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

+ 0
- 9
vue-theme/src/sss/_helpers.sss Dosyayı Görüntüle

84
     &-back
84
     &-back
85
         z-index: -1
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 Dosyayı Görüntüle

33
 /* Fonts */
33
 /* Fonts */
34
 $sans: 'Questrial', sans-serif
34
 $sans: 'Questrial', sans-serif
35
 $serif: 'Hoefler Text', 'Crimson Text', serif
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

Loading…
İptal
Kaydet