Skip to content

Commit d0fee05

Browse files
committed
moving scss variables into one file
1 parent 42c4561 commit d0fee05

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

src/components/con-details.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default {
7272
</script>
7373

7474
<style lang="scss">
75-
$hightlight: #1f2e50;
75+
@import '../conf';
7676
7777
.tcs-location {
7878
margin-bottom: 10px;

src/components/grid.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,19 @@ export default {
2424
</script>
2525

2626
<style lang="scss">
27+
@import '../conf';
28+
2729
#tcs-grid {
2830
padding: 10px;
2931
display: flex;
3032
flex-wrap: wrap;
3133
}
34+
3235
.tcs-col {
3336
flex-grow: 1;
3437
padding: 15px 15px;
3538
}
36-
$border-radius: 3px;
39+
3740
.tcs-box {
3841
border-radius: $border-radius;
3942
display: block;

src/components/modal.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export default {
7575
</script>
7676

7777
<style lang="scss">
78-
$back-colour: 35;
79-
$hightlight: #1f2e50;
78+
@import '../conf';
79+
8080
.tcs-modal-mask {
8181
position: fixed;
8282
z-index: 9998;
@@ -98,7 +98,6 @@ $hightlight: #1f2e50;
9898
transition: all .3s ease;
9999
}
100100
101-
$svg-size: 22px;
102101
svg.tcs-svg {
103102
width: $svg-size;
104103
height: $svg-size;
@@ -145,8 +144,6 @@ svg.tcs-svg {
145144
width: calc(100% - 200px);
146145
}
147146
148-
$extra-width: 200px;
149-
$button-colour: #5cb85c;
150147
.tcs-extra {
151148
text-align: center;
152149
img {

src/conf.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// grid border radius
2+
$border-radius: 3px;
3+
// model background colour
4+
$back-colour: 35;
5+
// highlight sections of modals
6+
$hightlight: #1f2e50;
7+
// svgs on modals
8+
$svg-size: 22px;
9+
// section on right (with image) on modals
10+
$extra-width: 200px;
11+
// contact button on modals
12+
$button-colour: #5cb85c;

0 commit comments

Comments
 (0)