Skip to content

Commit a645073

Browse files
committed
Modernize sass file structure and syntax
1 parent 9619676 commit a645073

File tree

7 files changed

+28
-30
lines changed

7 files changed

+28
-30
lines changed

_includes/contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
<button class="form-body-submit" type="submit">SEND</button>
2727
</form>
2828
</div>
29-
</div>
29+
</div>

css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sass/_contact.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
font-size: var(--step-1);
3737
align-self: center;
3838
grid-template-areas: "mail mail mail" "linkedin linkedin linkedin" "github github github";
39-
@include for-tablet-landscape-down{
40-
grid-template-areas: "github github github" "linkedin linkedin linkedin" "mail mail mail";
41-
}
4239
grid-auto-rows: auto;
4340
justify-items: center;
4441
align-items: center;
42+
@include for-tablet-landscape-down{
43+
grid-template-areas: "github github github" "linkedin linkedin linkedin" "mail mail mail";
44+
}
4545
}
4646

4747
.contact-div .contact-socials .email-contact{
@@ -121,9 +121,6 @@
121121

122122
.form-body-submit{
123123
width: 15%;
124-
@include for-phone-only{
125-
width:20%;
126-
}
127124
grid-area: submit;
128125
margin-top: calc(10px / var(--size-divisor));
129126
font-size: var(--step-1-5);
@@ -133,6 +130,9 @@
133130
box-shadow: 10px 10px 8px 10px #070707;
134131
transform: translateX(0) translateY(0);
135132
color: black;
133+
@include for-phone-only{
134+
width:20%;
135+
}
136136

137137
}
138138
.form-body button{
@@ -164,4 +164,4 @@
164164
background-repeat: no-repeat;
165165
background-origin: border-box;
166166
padding: 1.5rem;
167-
}
167+
}

sass/_home.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,16 @@
7575
font-weight: 500;
7676
line-height: 1.3;
7777
text-align: center;
78-
79-
@supports (text-justify:inter-word) {
80-
text-justify: inter-word
81-
}
82-
8378
letter-spacing: -0.02em;
8479
padding-inline: 15%;
8580
@include for-tablet-landscape-down{
8681
text-justify: auto;
8782
padding-left: 7%;
8883
padding-right: 5%;
8984
}
90-
85+
@supports (text-justify:inter-word) {
86+
text-justify: inter-word
87+
}
9188
}
9289

9390

@@ -120,4 +117,4 @@
120117
align-self: last baseline;
121118
}
122119

123-
/*END HOME SECTION STYLES*/
120+
/*END HOME SECTION STYLES*/

sass/_mixins.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use 'sass:math';
2+
13
@mixin for-phone-only {
24
@media (max-width: 599px) { @content; }
35
}
@@ -44,9 +46,8 @@
4446
cursor: pointer;
4547
outline: inherit;
4648
}
47-
4849
@mixin blurry-background {
49-
background: hsl(0, 0%, 0% / 0.5);
50+
background: hsl(0, 0%, math.div(0%, 0.5));
5051

5152
@supports (backdrop-filter: blur(1rem)) or (-webkit-backdrop-filter: blur(1rem)) {
5253
background: hsla(0, 0%, 100%, 0.1);
@@ -90,4 +91,4 @@
9091
@include for-phone-only() {
9192
padding: $smallpadding;
9293
}
93-
}
94+
}

sass/_projects.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@
113113

114114

115115
.swiper-slide {
116+
width: 40%;
117+
height: 85%;
118+
text-align: center;
119+
font-size: 18px;
120+
justify-content: center;
121+
align-items: center;
116122
@include for-tablet-landscape-down{
117123
width: 80%;
118124
height: 65%;
119125
}
120-
width: 40%;
121-
height: 85%;
122-
text-align: center;
123-
font-size: 18px;
124-
justify-content: center;
125-
align-items: center;
126126
}
127127

128128
.project-card{
@@ -293,4 +293,4 @@
293293
.youtube-icon:hover{
294294

295295
opacity: 1;
296-
}
296+
}

sass/_skills.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
.skill-cloud{
2121
width: 100%;
2222
height: 500px;
23-
@include for-tablet-landscape-down{
24-
height: 400px;
25-
}
2623
grid-area: cloud;
2724
margin: 0;
2825
padding: 0;
2926
display: flex;
3027
justify-items: center;
3128
align-items: center;
3229
position: relative;
30+
@include for-tablet-landscape-down{
31+
height: 400px;
32+
}
3333
}
3434

3535
.skill-canvas {
@@ -154,4 +154,4 @@
154154
margin: 1.5vw;
155155
}
156156

157-
/*END SKILLS SECTION STYLES*/
157+
/*END SKILLS SECTION STYLES*/

0 commit comments

Comments
 (0)