Skip to content

Commit

Permalink
Fix layout details
Browse files Browse the repository at this point in the history
  • Loading branch information
sheilagomes committed Dec 12, 2023
1 parent 6cb5206 commit 3efbbad
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 84 deletions.
16 changes: 10 additions & 6 deletions styles/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@

@font-face {
font-family: "VTEXTrust Regular";
src: url(./fonts/VTEXTrust-Regular.otf);
src: url(../fonts/VTEXTrust-Regular.otf);
}

:root {
--bg-1: #FFFFFF
/* #F8F7FC; */
--bg-2: #1155CC;
--bg-3: #F71963;
--bg-4: #5E6E84;
Expand Down Expand Up @@ -203,16 +202,14 @@ aside {
}

/* Tablet and medium size screens */
@media only screen and (min-width: 615px) and (max-width: 1279px) {
@media only screen and (min-width: 768px) and (max-width: 1279px) {
aside {
display: none;
}

}

/* HD monitors*/
@media only screen and (min-width: 1280px) and (max-width: 1919px) {

body {
height: 100vh;
}
Expand All @@ -234,6 +231,10 @@ aside {
height: calc(100% - 60px);
}

aside {
display: block;
}

.aside-content {
grid-area: 1 / 2 / span 1 / span 1;
padding: 0.5rem 1rem 3rem;
Expand Down Expand Up @@ -291,7 +292,6 @@ aside {

/* Full HD monitors and above */
@media only screen and (min-width: 1920px) {

body {
height: 100vh;
}
Expand Down Expand Up @@ -321,6 +321,10 @@ aside {
text-align: center;
}

aside {
display: block;
}

.aside-content {
grid-area: 1 / 2 / span 1 / span 1;
padding: 0.5rem 1rem 3rem;
Expand Down
93 changes: 21 additions & 72 deletions styles/internal.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,24 @@ body {
margin-left: -1rem;
}

body.active .wrapper .sidebar {
body .wrapper .sidebar {
left: -85%;
}

body .wrapper .section {
margin-left: 0;
width: 100%;
}

body .wrapper .main-doc {
margin-left: 0;
transition: all 0.5s ease;
}

body.active .wrapper .sidebar {
left: 0;
}

body.active .wrapper .section {
margin-left: 0;
width: 100%;
Expand All @@ -121,7 +135,6 @@ body.active .wrapper .main-doc {
}

.main-doc {
/* margin-top: 15%; */
margin-left: 33ch;
transition: all 0.5s ease;
}
Expand Down Expand Up @@ -170,7 +183,6 @@ header {
text-align: left;
font-size: var(--fs-6);
margin-left: 2rem;
/* padding-top: 1rem; */
}

header a {
Expand Down Expand Up @@ -205,40 +217,20 @@ header a:hover {
/* Tablet and medium size screens */
@media only screen and (min-width: 768px) and (max-width: 1279px) {
.wrapper .sidebar {
position: fixed;
top: 0;
left: 0;
width: 75ch;
height: 100%;
padding: 1rem 0;
transition: all 0.5s ease;
background-color: var(--bg-1);
}

.wrapper .section {
width: calc(100% - 73ch);
margin-left: 73ch;
transition: all 0.5s ease;
}

.wrapper .section .top_navbar .hamburger a {
font-size: var(--fs-3);
}

.wrapper .section .top_navbar .hamburger a:hover {
color: var(--bg-5);
}

.top_navbar {
margin-left: -1rem;
}

body.active .wrapper .sidebar {
left: -73ch;
}

.main-doc {
margin-left: 0;
margin-left: 33ch;
transition: all 0.5s ease;
}

Expand All @@ -247,55 +239,33 @@ header a:hover {
}

.header-text {
display: inline-block;
position: relative;
border-bottom: 5px solid var(--bg-5);
text-align: left;
font-size: var(--fs-5);
margin-left: 1.5rem;
/* padding-top: 6rem; */
}

.header-subtext {
margin-left: 1.5rem;
padding-top: 1rem;
font-size: var(--fs-2);
}
}

/* HD monitors*/
@media only screen and (min-width: 1280px) and (max-width: 1919px) {
.header-text {
display: inline-block;
position: relative;
border-bottom: 5px solid var(--bg-5);
text-align: left;
font-size: var(--fs-6);
margin-left: 18rem;
padding-top: 1.5rem;
}

.header-subtext {
margin-left: 17.5rem;
padding-top: 1rem;
}

.toggleMenu {
margin-left: -1.5rem;
}

iframe {
/* margin: 0 1%; */
/* iframe {
width: 80%;
}
} */

.wrapper .sidebar {
width: 30.5ch;
}

.main-doc {
/* .main-doc {
margin-left: 17ch;
}
} */
}

/* Full HD monitors and above */
Expand All @@ -319,7 +289,6 @@ header a:hover {
display: block;
margin: 0 auto;
margin-bottom: 3rem;
/* margin-top: 1rem; */
}

.wrapper .sidebar ul li a {
Expand Down Expand Up @@ -357,17 +326,7 @@ header a:hover {
}

body.active .wrapper .sidebar {
left: -33ch;
}

body.active .wrapper .section {
margin-left: 0;
width: 100%;
}

body.active .wrapper .main-doc {
margin-left: 0;
transition: all 0.5s ease;
left: 0;
}

.menu {
Expand All @@ -376,7 +335,6 @@ header a:hover {
}

.main-doc {
/* margin-left: 15%; */
margin-left: 33ch;
transition: all 0.5s ease;
}
Expand Down Expand Up @@ -407,13 +365,6 @@ header a:hover {
color: var(--bg-5);
}

.toggleMenu {
color: var(--fc-1);
margin: 0.5rem;
margin-left: 1rem;
scale: 1.3;
}

header {
height: 30vh;
}
Expand All @@ -424,7 +375,6 @@ header a:hover {
border-bottom: 5px solid var(--bg-5);
text-align: left;
font-size: var(--fs-6);
/* 4rem; */
margin-left: 20rem;
padding-top: 3rem;
}
Expand All @@ -435,7 +385,6 @@ header a:hover {
margin-top: 1.5rem;
color: var(--fc-1);
font-size: var(--fs-1);
/* 0.9rem; */
border: 1px solid var(--fc-1);
border-radius: 40px;
padding: 0.3rem;
Expand Down
8 changes: 6 additions & 2 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ p {
align-items: center;
width: 100%;
background-color: #FFF3F6;
padding-bottom: 3rem;
padding: 3rem 0;
}

.card {
Expand Down Expand Up @@ -221,12 +221,16 @@ footer {
text-align: center;
}

footer:last-child {
padding-bottom: 2rem;
}

.line {
opacity: 0.1;
}

.credits {
font-size: 0.8rem;
font-size: var(--fs-1);
}

/* Tablet and medium size screens */
Expand Down
4 changes: 0 additions & 4 deletions styles/style_guides.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ header {
h1 {
display: inline-block;
font-size: var(--fs-6);
/* 4rem; */
padding-top: 3rem;
margin-left: 3rem;
position: relative;
Expand Down Expand Up @@ -101,9 +100,6 @@ h6 {

/* Tablet and medium size screens */
@media only screen and (min-width: 768px) and (max-width: 1279px) {
/* Tem alguma coisa no internal.css que está forçando a página inteira pra baixo, deixando um espaço no topo... */
/* Alguma coisa também está deixando o logo fora da tela... */

body .wrapper .sidebar {
left: -33ch;
}
Expand Down

0 comments on commit 3efbbad

Please sign in to comment.