Skip to content

Commit 4760c29

Browse files
committed
added nests and variables to scss file
1 parent 3702598 commit 4760c29

File tree

1 file changed

+49
-31
lines changed

1 file changed

+49
-31
lines changed

webpack/sass/main.scss

+49-31
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1+
2+
3+
$orange1 : #EE5B32;
4+
$orange2 : #e25803;
5+
$orange3: #FB7928;
6+
$blue: #00b5da;
7+
$light_grey: rgba(255, 255, 255, 0.6);
8+
$white: #fff;
9+
$grey: #333333;
10+
11+
12+
113
body {
214
font-family: 'Source Sans Pro', sans-serif;
3-
color: #333333;
15+
color: $grey;
416
}
517

618
h2 {
@@ -28,64 +40,70 @@ h2 {
2840

2941
.footer {
3042
bottom: 0;
31-
height: 7rem;
32-
/* Footer height */
43+
height: 7rem; /* Footer height */
3344
}
3445

3546
.card-columns {
3647
column-count: 2;
3748
}
3849

3950
.main-header {
40-
background-color: #EE5B32;
51+
background-color: $orange1;
4152
}
4253

4354
.navbar {
44-
background-image: linear-gradient(90deg, #EE5B32, #FB7928, #EE5B32);
45-
background-size: 100% 130px;
46-
background-position-y: bottom;
55+
background: {
56+
image: linear-gradient(90deg, $orange1, $orange3 , $orange1);
57+
size: 100% 130px;
58+
position-y: bottom;
59+
}
4760
}
4861

4962
.page-title {
50-
background-color: #fff;
51-
border-bottom-style: solid;
52-
border-color: #EE5B32;
53-
border-width: 10px;
63+
background-color: $white;
64+
border: {
65+
bottom-style: solid;
66+
color: $orange1;
67+
width: 10px;
68+
}
5469
padding-left: 0px;
5570
font-weight: 600;
56-
color: #333333;
71+
color: $grey;
5772
}
5873

59-
.featured-project-card {
60-
background-color: #fff;
61-
border-left-color: #00b5da !important;
62-
border-left-width: 10px;
74+
@mixin style {
75+
background-orange3: $white;
76+
border: {
77+
left-orange3: $blue !important;
78+
left-width: 10px;
79+
}
6380
padding-left: 0px;
64-
min-width: 20rem;
65-
max-width: 20rem;
6681
}
6782

68-
.badge-featured-project {
69-
background-color: #00b5da;
70-
color: white;
71-
font-size: 0.8rem;
83+
.featuorange1-project-card {
84+
@include style();
85+
min-width: 20rem;
86+
max-width: 20rem;
7287
}
7388

7489
.project-idea-header {
75-
background-color: #fff;
76-
border-color: #00b5da;
77-
border-width: 10px;
78-
padding-left: 0px;
90+
@include style();
7991
font-size: 1.5em;
8092
}
8193

94+
.badge-featured-project {
95+
background-color: $blue;
96+
color: $white;
97+
font-size: 0.8rem;
98+
}
99+
82100
#back-to-top {
83101
cursor: pointer;
84102
position: fixed;
85103
bottom: 20px;
86104
right: 20px;
87105
display: none;
88-
background-color: #00b5da;
106+
background-color: $blue;
89107
border: none;
90108
}
91109

@@ -103,20 +121,20 @@ h2 {
103121
}
104122

105123
.nav-item:hover {
106-
background: #e15803 !important;
124+
background: $orange2 !important;
107125
}
108126

109127
.navbar-dark {
110128
.navbar-nav .nav-item .nav-link {
111129
color: white;
112130
line-height: 1rem;
113-
border-left: 1px solid rgba(255, 255, 255, 0.6);
131+
border-left: 1px solid $light_grey;
114132
}
115133
.navbar-toggler {
116-
border-color: rgba(255, 255, 255, 0.6);
134+
border-color: $white;
117135
}
118136
.navbar-nav .nav-item.active .nav-link {
119-
background: #e15803 !important;
137+
background: $orange2 !important;
120138
}
121139
}
122140

0 commit comments

Comments
 (0)