Kaynağa Gözat

:lipstick: add sass global files main and variables, tested breakpoints with colors and font sizes

tags/0.0.3^2
K Rob 3 yıl önce
ebeveyn
işleme
69003f2fcd

+ 1
- 0
frontend/assets/sass/main.scss Dosyayı Görüntüle

1
+@import 'variables';

+ 48
- 0
frontend/assets/sass/variables.scss Dosyayı Görüntüle

1
+// Color Variables
2
+$yellow: #F7F5A6;
3
+$light-green: #49E64D;
4
+$dark-green: #4D9127;
5
+$red: #FF3660;
6
+$light-blue: #05DBF2;
7
+$dark-blue: #183770;
8
+$dark-grey: #1F2024;
9
+$grey: #4C5264;
10
+$light-grey: #D5D5D5;
11
+$black: #000;
12
+
13
+// Define the base font size
14
+$base-font-size: 14px;
15
+
16
+// Define breakpoints
17
+$mobile: 350px;
18
+$tablet: 768px;
19
+$desktop: 960px;
20
+
21
+// Define font sizes for each breakpoint
22
+$mobile-font-size: $base-font-size;
23
+$tablet-font-size: $base-font-size * 1.2;
24
+$desktop-font-size: $base-font-size * 1.4;
25
+
26
+// Set default font size
27
+html {
28
+    font-size: $base-font-size;
29
+}
30
+
31
+// Media queries for font sizes
32
+@media (min-width: $mobile) {
33
+    html {
34
+        font-size: $mobile-font-size;
35
+    }
36
+}
37
+
38
+@media (min-width: $tablet) {
39
+    html {
40
+        font-size: $tablet-font-size;
41
+    }
42
+}
43
+
44
+@media (min-width: $desktop) {
45
+    html {
46
+        font-size: $desktop-font-size;
47
+    }
48
+}

+ 1
- 0
frontend/src/App.vue Dosyayı Görüntüle

73
 </script>
73
 </script>
74
 
74
 
75
 <style lang="sass">
75
 <style lang="sass">
76
+@import '../assets/sass/main'
76
 #app > .w-app > main
77
 #app > .w-app > main
77
     position: relative
78
     position: relative
78
     top: 50px
79
     top: 50px

+ 5
- 4
frontend/src/components/PairsList.vue Dosyayı Görüntüle

40
 </script>
40
 </script>
41
 
41
 
42
 <style lang="sass">
42
 <style lang="sass">
43
+@import '../assets/sass/main'
43
 .pairs-list
44
 .pairs-list
44
     color: #fff
45
     color: #fff
45
     article
46
     article
46
-        font-family: 'Century Gothic'
47
+        font-family: 'Source Pro'
47
         .dot--icon
48
         .dot--icon
48
             width:12px
49
             width:12px
49
             height:12px
50
             height:12px
50
             margin: 11px
51
             margin: 11px
51
             border-radius:50%
52
             border-radius:50%
52
-            background-color:#60C3FF
53
+            background-color:$light-blue
53
         .avatar
54
         .avatar
54
             width:40px
55
             width:40px
55
             height:40px
56
             height:40px
56
             margin: 11px
57
             margin: 11px
57
             border-radius: 6px
58
             border-radius: 6px
58
-            background-color:#D5D5D5
59
+            background-color:$light-blue
59
         .idCard
60
         .idCard
60
             color: #fff
61
             color: #fff
61
             margin: 11px
62
             margin: 11px
64
             p
65
             p
65
                 font-size: 14px
66
                 font-size: 14px
66
 .w-menu--card
67
 .w-menu--card
67
-    background-color: #000000 !important
68
+    background-color: $black !important
68
 </style>
69
 </style>

+ 5
- 3
frontend/src/components/ProfileCard.vue Dosyayı Görüntüle

134
 </script>
134
 </script>
135
 
135
 
136
 <style lang="sass">
136
 <style lang="sass">
137
+@import '../assets/sass/main'
138
+
137
 .profile-card-list--card
139
 .profile-card-list--card
138
-    background-color: #000
140
+    background-color: $black
139
     color: #fff
141
     color: #fff
140
     width: 100%
142
     width: 100%
141
     max-width: 450px
143
     max-width: 450px
142
     margin: 11px auto
144
     margin: 11px auto
143
     header > .w-button
145
     header > .w-button
144
-        background-color: #116006
146
+        background-color: $dark-green
145
         color: #fff
147
         color: #fff
146
     footer
148
     footer
147
         margin-bottom: 22px
149
         margin-bottom: 22px
148
         p
150
         p
149
-            font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif
151
+            font-family: Source Pro, CenturyGothic, AppleGothic, sans-serif
150
             margin: 11px auto
152
             margin: 11px auto
151
             padding: 0 7px
153
             padding: 0 7px
152
             line-height: 1.619em
154
             line-height: 1.619em

Loading…
İptal
Kaydet