mdhub/app/application/resources/site/scss/layout.scss
2024-06-18 22:35:54 +05:00

127 lines
2.2 KiB
SCSS

html,
body {
height: 100%;
}
body {
font-family: "Roboto", sans-serif;
margin: 0;
}
hr {
background: #eee;
height: 1px;
border: 0;
margin-top: 15px;
margin-bottom: 15px;
}
#main-container {
display: flex;
flex-direction: column;
position: relative;
min-height: 100vh;
}
#menu {
display: none;
ul {
padding: 0;
margin: 0;
list-style: none;
li {
padding-left: 20px;
}
}
a {
display: block;
text-decoration: none;
font-size: 16px;
padding-top: 10px;
padding-bottom: 10px;
color: #0a0e17;
transition: opacity 0.2s ease-out;
}
a:hover {
opacity: 0.65;
}
a.active {
font-weight: bold;
}
.menu__profile {
padding-top: 0;
padding-left: 0;
border-bottom: 1px solid rgba(0,0,0,0.1);
}
.menu__profile__logout {
color: rgba(143, 28, 28, 100);
cursor: pointer;
border: 0;
background: none;
transition: color 0.2s ease-out;
display: block;
font-size: 16px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 0;
}
.menu__profile__logout:hover {
color: rgba(143, 28, 28, 0.65);
}
}
.container-width {
padding-left: 15px;
padding-right: 15px;
}
.section-content {
h1 {
font-size: 27px;
font-weight: bold;
padding-bottom: 10px;
margin-bottom: 10px;
border-bottom: 1px solid #eee;
}
}
@media (min-width: 1000px) {
.container-width {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
padding-left: 24px;
padding-right: 24px;
}
.section-content {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 200px 1fr;
grid-template-areas: "section-menu section-content";
}
#menu {
background: none;
grid-area: section-menu;
display: block;
padding-right: 20px;
padding-top: 14px;
ul {
padding-left: 0;
}
}
.menu__title {
display: none;
}
#content {
grid-area: section-content;
}
}