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

@@ -0,0 +1 @@
1
+@import 'variables';

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

@@ -0,0 +1,48 @@
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,6 +73,7 @@ export default {
73 73
 </script>
74 74
 
75 75
 <style lang="sass">
76
+@import '../assets/sass/main'
76 77
 #app > .w-app > main
77 78
     position: relative
78 79
     top: 50px

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

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

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

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

Loading…
İptal
Kaydet