Skip to content

Commit

Permalink
Merge pull request #8 from pselfin/rsschool-cv-html
Browse files Browse the repository at this point in the history
fix: css mobile
  • Loading branch information
pselfin authored Jul 4, 2024
2 parents e3915a9 + 91798bb commit f83eafb
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 12 deletions.
32 changes: 31 additions & 1 deletion css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 49 additions & 10 deletions scss/styles.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
@mixin row {
display: flex;
align-items: center;
max-width: 600px;
margin: 0 auto;
justify-content: space-around;
}




body {
margin: 0;
scroll-behavior: smooth;
box-sizing: border-box;
}

header {

background-color: blue;
width: 100%;

.row {
display: flex;
margin: 0 auto;
max-width: 600px;
justify-content: space-around;
@include row;
}

ul {
display: flex;
margin: 0;
align-content: baseline;
flex-direction: row;

li {
padding: 10px 15px;
Expand Down Expand Up @@ -48,10 +59,12 @@ header {
main {
margin: 0 auto;
max-width: 600px;
padding: 0 10px;

div.row {
display: flex;
gap: 20px;
flex-direction: column;
}
}

Expand All @@ -65,14 +78,11 @@ pre {
footer {
color: #fff;
background-color: gray;
padding: 15px 0;
padding: 15px;

.row {
display: flex;
align-items: center;
max-width: 600px;
margin: 0 auto;
justify-content: space-around;
@include row;

}

a {color: #fff;}
Expand All @@ -82,4 +92,33 @@ footer {
height: auto;

}
}

@media (max-width:600px) {
@mixin row {
display: flex;
align-items: center;
min-width: 320px;
margin: 0 auto;
justify-content: center;
flex-direction: column;
width: 100%;
}

main {
min-width: 320px;
padding: 0 10px;
}

.logo {display: none;}

header {
ul {flex-direction: column;}
}
footer {
.row {
@include row;

}
}
}

0 comments on commit f83eafb

Please sign in to comment.