feat: ✨ add new Post wrapper and Blog overview page
This commit is contained in:
parent
b420a6eafa
commit
a2c6842b71
8 changed files with 384 additions and 6 deletions
81
www/static/article_blop.css
Normal file
81
www/static/article_blop.css
Normal file
|
@ -0,0 +1,81 @@
|
|||
|
||||
|
||||
.article_blop {
|
||||
position: relative;
|
||||
overflow: clip;
|
||||
z-index: 0;
|
||||
|
||||
background: var(--bg_2);
|
||||
|
||||
margin: 2rem;
|
||||
padding: 0;
|
||||
|
||||
border-radius: 1rem;
|
||||
|
||||
box-shadow: 0px 5px 5px 0px #00000040;
|
||||
transition: 0.3s;
|
||||
|
||||
min-height: 10rem;
|
||||
}
|
||||
|
||||
.article_blop_bg {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
|
||||
opacity: 0.2;
|
||||
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.article_blop:hover {
|
||||
box-shadow: 0px 8px 8px 0px #00000040;
|
||||
}
|
||||
|
||||
.article_blop_content {
|
||||
padding: 1rem;
|
||||
padding-top: 5rem;
|
||||
}
|
||||
|
||||
.article_blop_tags {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.2rem;
|
||||
|
||||
width: 40%;
|
||||
height: auto;
|
||||
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-flow: row wrap;
|
||||
|
||||
justify-content: right;
|
||||
}
|
||||
.article_blop_tags :first-child {
|
||||
margin-left: auto;
|
||||
}
|
||||
.article_blop_tags li {
|
||||
margin-right: 0.4rem;
|
||||
margin-bottom: 0.4rem;
|
||||
|
||||
padding-left: 0.2rem;
|
||||
padding-right: 0.2rem;
|
||||
|
||||
font-size: 0.8rem;
|
||||
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
|
||||
background-color: var(--highlight_1);
|
||||
border-radius: 0.3rem;
|
||||
color: var(--bg_2);
|
||||
|
||||
|
||||
}
|
|
@ -16,6 +16,7 @@ body {
|
|||
--bg_2: #2c2943;
|
||||
--bg_3: #3f4148;
|
||||
|
||||
--highlight_0: #ee9015b1;
|
||||
--highlight_1: #ee9015;
|
||||
--highlight_2: #edd29e;
|
||||
|
||||
|
@ -185,6 +186,7 @@ a:hover {
|
|||
z-index: 5;
|
||||
}
|
||||
|
||||
|
||||
#post_file_titles {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
@ -194,13 +196,35 @@ a:hover {
|
|||
padding: 0px;
|
||||
}
|
||||
|
||||
#post_file_titles * {
|
||||
padding: 0.5rem;
|
||||
#post_file_titles li {
|
||||
padding: 0.2rem 0.8rem;
|
||||
|
||||
font-style: bold;
|
||||
font-size: 1.3rem;
|
||||
|
||||
background: var(--highlight_1);
|
||||
}
|
||||
#post_file_titles li:hover {
|
||||
background: var(--highlight_0) !important;
|
||||
}
|
||||
|
||||
#post_file_bar_dirbtn {
|
||||
margin-left: 0.15rem;
|
||||
background: var(--bg_2) !important;
|
||||
}
|
||||
#post_file_bar #dir_collapse {
|
||||
display: none;
|
||||
}
|
||||
#post_file_bar #dir_collapse:checked + #post_file_bar_dirbtn {
|
||||
background: var(--highlight_1) !important;
|
||||
}
|
||||
|
||||
.directory {
|
||||
display: none;
|
||||
}
|
||||
#dir_collapse:checked ~ .directory {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#post_file_path {
|
||||
width: 100%;
|
||||
|
@ -223,7 +247,7 @@ a:hover {
|
|||
padding-right: 0.2rem;
|
||||
}
|
||||
|
||||
#main_content_wrapper article {
|
||||
article {
|
||||
background: var(--bg_3);
|
||||
|
||||
border-radius: 0rem 0rem 0.8rem 0.8rem;
|
||||
|
@ -232,7 +256,7 @@ a:hover {
|
|||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
#main_content_wrapper article img {
|
||||
article img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue