epiphany/style/index.scss

102 lines
No EOL
1.4 KiB
SCSS

@import "vars";
html {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
body {
background: $bg;
background-repeat: no-repeat;
background-size: cover;
font-family: $font;
font-size: $fsize;
letter-spacing: $lspacing;
width: 60%;
height: 70%;
margin-left: 300px;
margin-top: 75px;
display: grid;
gap: 10px 10px; grid-gap: 10px 10px;
grid-template-columns: 230px auto;
grid-template-rows: 1fr 2fr 240px;
grid-template-areas:
"banner banner"
"nav main"
"cbox main";
& > div, & > iframe { height: 100%; width: 100%; }
.scroll { overflow-y: auto; }
}
div#banner {
grid-area: banner;
display: grid;
gap: 0; grid-gap: 0;
grid-template-columns: 60% 40%;
grid-template-rows: 100%;
grid-template-areas: "title nav";
align-items: end;
div#title {
grid-area: title;
z-index: 1;
position: relative;
img {
position: absolute;
bottom: -10px;
right: 0;
}
}
div#site-nav {
grid-area: nav;
margin-bottom: 10px;
}
}
#main {
grid-area: main;
& > iframe {
width: 100%;
height: 100%;
}
}
#nav {
grid-area: nav;
}
#cbox {
grid-area: cbox;
position: relative;
}
#footer {
grid-area: foot;
text-align: center;
}
.transparent {
background: rgba(255,255,255,0.70);
}
a {
text-decoration: none;
color: $accent1;
&:hover {
text-decoration: underline;
color: $accent2;
}
}