Skip to content

Commit 63e26e5

Browse files
authored
Merge pull request #38 from carsonSgit/code-formatting
style: Code formatting
2 parents 3754fbf + 1db8061 commit 63e26e5

File tree

2 files changed

+15
-33
lines changed

2 files changed

+15
-33
lines changed

src/Components/Home/Hero/Hero.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ $font-color: #a2aa94;
5353
padding: 160px 0px 0px 40px; /* top, right, bottom, left */
5454
}
5555

56-
@media (max-width: 992px){
56+
@media (max-width: 992px) {
5757
flex: 0 0 60%;
5858
padding: 210px 0px 0px 40px; /* top, right, bottom, left */
5959
}
6060

61-
@media (max-width: 430px){
61+
@media (max-width: 430px) {
6262
flex: 0 0 50%;
6363
padding: 60px 40px 0px 40px; /* top, right, bottom, left */
6464
}
@@ -72,7 +72,6 @@ $font-color: #a2aa94;
7272
flex: 0 0 55%;
7373
padding: 20px 40px 0px 40px; /* top, right, bottom, left */
7474
}
75-
7675
}
7776

7877
/* Right Container */
@@ -252,7 +251,7 @@ p {
252251
}
253252
}
254253

255-
@media (max-width: 360px){
254+
@media (max-width: 360px) {
256255
h1 {
257256
font-size: 2.5em;
258257
margin-bottom: -0.2em;

src/Components/Projects/Projects.scss

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,16 @@ a {
2222
min-height: 100vh;
2323
text-align: center;
2424

25+
@media (max-width: 767px) {
26+
padding: 0px 10px;
27+
}
28+
2529
@media (min-width: 768px) and (max-width: 1200px) {
2630
padding: 0px 30px;
27-
margin-left: 0;
2831
}
2932

3033
@media (min-width: 1200px) {
3134
padding: 0px 40px;
32-
margin-left: 0;
33-
}
34-
35-
@media (max-width: 767px) {
36-
padding: 0px 10px;
37-
margin-left: 0;
3835
}
3936
}
4037

@@ -67,14 +64,6 @@ a {
6764
-webkit-background-clip: text;
6865
animation: gradientAnimation 5s ease infinite;
6966
font-size: inherit;
70-
71-
@media (min-width: 768px) and (max-width: 1200px) {
72-
font-size: inherit;
73-
}
74-
75-
@media (min-width: 1200px) {
76-
font-size: inherit;
77-
}
7867
}
7968

8069
@keyframes gradientAnimation {
@@ -103,15 +92,19 @@ a {
10392
position: relative;
10493
color: #fff;
10594
min-height: 200px;
106-
transition:
107-
transform 0.3s ease,
108-
box-shadow 0.3s ease;
95+
transition: transform 0.3s ease, box-shadow 0.3s ease;
10996

11097
&:hover {
11198
transform: scale(1.05);
11299
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.417);
113100
}
114101

102+
@media (max-width: 767px) {
103+
width: 90%;
104+
height: auto;
105+
min-height: 200px;
106+
}
107+
115108
@media (min-width: 768px) and (max-width: 1200px) {
116109
height: auto;
117110
min-height: 400px;
@@ -121,14 +114,6 @@ a {
121114
width: 75%;
122115
height: auto;
123116
min-height: 500px;
124-
margin-left: 0;
125-
}
126-
127-
@media (max-width: 767px) {
128-
width: 90%;
129-
height: auto;
130-
background-size: cover;
131-
min-height: 200px;
132117
}
133118
}
134119

@@ -191,9 +176,7 @@ a {
191176
color: #fff;
192177
text-decoration: none;
193178
border-radius: 5px;
194-
transition:
195-
background-color 0.3s,
196-
transform 0.3s;
179+
transition: background-color 0.3s, transform 0.3s;
197180

198181
svg {
199182
margin-right: 5px;

0 commit comments

Comments
 (0)