Much styling

This commit is contained in:
2022-10-15 23:08:49 +02:00
parent 3cee6c9006
commit 6dd52770da
6 changed files with 84 additions and 26 deletions

View File

@ -1,11 +1,37 @@
#blogBody {
background: var(--blog_back-background);
color: var(--blog_color);
padding-bottom: 20px;
header {
position: sticky;
top: 10px;
z-index: 99;
}
main {
max-width: 900px;
margin: 40px auto;
max-width: 950px;
margin: 40px auto 0;
border: 1px solid var(--blog_border);
background: var(--blog_content-background);
padding: 50px;
backdrop-filter: blur(var(--blog_content-blur));
border-top-left-radius: 1em;
border-top-right-radius: 1em;
h1 {
margin-top: 0;
}
}
}
footer {
max-width: 950px;
margin: 5px auto 0;
border: 1px solid var(--blog_border);
background: var(--blog_content-background);
padding: 20px;
backdrop-filter: blur(10px);
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
}
}

View File

@ -9,7 +9,7 @@
margin: 5px;
&:hover {
box-shadow: 0px 0px 10px blue;
box-shadow: 0px 0px 10px var(--blog_color);
}
}

View File

@ -1,5 +1,6 @@
.contentList {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-evenly;
padding: 0;

View File

@ -2,34 +2,40 @@
display: block;
max-width: 1000px;
min-width: 300px;
box-shadow: 0px 2px 5px gray;
position: relative;
height: calc(1em + 40px);
margin: 0 auto;
padding: 20px;
font-size: 120%;
height: calc(1em + 40px);
/* height / 2 */
border-radius: calc((1em + 40px) / 2);
position: relative;
}
border: 1px solid var(--blog_nav-border);
background: var(--blog_nav-background);
backdrop-filter: blur(var(--blog_content-blur));
box-shadow: 0px 2px 5px gray;
.logo {
display: inline-block;
margin-top: -10px;
height: calc(1em + 40px - 20px);
position: absolute;
cursor: pointer;
}
.navLink {
display: inline-block;
transition: text-decoration 0.2s ease-in-out;
margin: auto 5px;
cursor: pointer;
&:nth-of-type(1) {
margin-left: calc((501 / 204) * (1em + 40px - 20px) + 15px);
.logo {
display: inline-block;
margin-top: -10px;
height: calc(1em + 40px - 20px);
position: absolute;
cursor: pointer;
}
&:hover {
text-decoration: underline;
.navLink {
display: inline-block;
transition: text-decoration 0.2s ease-in-out;
margin: auto 5px;
cursor: pointer;
&:nth-of-type(1) {
margin-left: calc((501 / 204) * (1em + 40px - 20px) + 15px);
}
&:hover {
text-decoration: underline;
}
}
}