💄 style: redesign post listing and other minor changes
This commit is contained in:
@@ -41,44 +41,3 @@
|
||||
gap: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.bloglist-title{
|
||||
display: block;
|
||||
font-size: 1.2em;
|
||||
margin-top: 1.2em;
|
||||
margin-bottom: 0.83em;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bloglist-table-row {
|
||||
padding: 2%;
|
||||
background-color: var(--navbar-color);
|
||||
transition: 300ms;
|
||||
width: 28%;
|
||||
margin-right: 1%;
|
||||
margin-top: 1%;
|
||||
}
|
||||
.bloglist-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
.bloglist-table-row:hover {
|
||||
box-shadow: 0.5rem 0.5rem 0 var(--border-color);
|
||||
}
|
||||
.bloglist-links {
|
||||
text-decoration: none;
|
||||
}
|
||||
.bloglist-table-row-data {
|
||||
padding: 10px;
|
||||
}
|
||||
.bloglist-table-row-date {
|
||||
font-size: 12px;
|
||||
}
|
||||
@media only screen and (max-width: 600px) {
|
||||
.bloglist-table-row {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
@@ -56,13 +56,13 @@ header {
|
||||
justify-content: right;
|
||||
color: var(--text-color);
|
||||
padding: 0.66rem;
|
||||
transition: 100ms;
|
||||
}
|
||||
|
||||
.home-title {
|
||||
font-size: 1.7em;
|
||||
font-weight: 450;
|
||||
padding-right: 0.33rem;
|
||||
padding: 0.12rem;
|
||||
margin-left: -0.12rem;
|
||||
border: none;
|
||||
color: var(--accent-color);
|
||||
text-decoration: none;
|
||||
|
@@ -24,7 +24,7 @@
|
||||
.home-banner-header {
|
||||
margin-bottom: 1rem;
|
||||
font-size: 2.8rem;
|
||||
font-weight: 600;
|
||||
font-weight: 550;
|
||||
}
|
||||
|
||||
#banner-home-subtitle {
|
||||
@@ -36,7 +36,7 @@
|
||||
}
|
||||
|
||||
#banner-home-subtitle p {
|
||||
font-family: 'Inter', Arial, Helvetica, sans-serif;
|
||||
font-family: var(--sans-serif-font);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
|
@@ -40,10 +40,13 @@ ul {
|
||||
}
|
||||
|
||||
.title-container {
|
||||
border-bottom: var(--secondary-color) solid 0.5px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.bottom-divider {
|
||||
border-bottom: var(--secondary-color) solid 0.5px;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
background: var(--primary-color);
|
||||
color: var(--hover-color);
|
||||
@@ -77,21 +80,33 @@ blockquote {
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--text-color);
|
||||
text-decoration-color: var(--links);
|
||||
font-weight: 580;
|
||||
}
|
||||
|
||||
p a {
|
||||
color: var(--accent-color);
|
||||
text-decoration: inherit;
|
||||
font-weight: inherit;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--hover-color);
|
||||
}
|
||||
|
||||
a:not(.no-hover-padding)::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: -0.15em;
|
||||
right: -0.15em;
|
||||
z-index: -1;
|
||||
background-color: var(--primary-color);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
a:not(.no-hover-padding):hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Remove post list padding */
|
||||
@media screen and (max-width: 600px) {
|
||||
.list > ul {
|
||||
|
79
sass/parts/_posts_list.scss
Normal file
79
sass/parts/_posts_list.scss
Normal file
@@ -0,0 +1,79 @@
|
||||
.bloglist-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.bloglist-row {
|
||||
background-color: var(--navbar-color);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
padding: 2.5rem 0;
|
||||
|
||||
.date {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 300;
|
||||
color: var(--meta-color);
|
||||
width: 14.5rem;
|
||||
}
|
||||
|
||||
.bloglist-tags {
|
||||
margin-top: -0.5rem;
|
||||
|
||||
.tag {
|
||||
margin-right: 0.7rem;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
.bloglist-content {
|
||||
flex: 1;
|
||||
|
||||
|
||||
.bloglist-title {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
|
||||
a {
|
||||
color: var(--text-color-high-contrast);
|
||||
font-weight: 550;
|
||||
|
||||
&:hover {
|
||||
color: var(--hover-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 0.5rem 0 1rem;
|
||||
color: var(--text-color);
|
||||
font-family: var(--sans-serif-font);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 250;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.all-posts {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 350;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1100px) {
|
||||
.bloglist-row {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.date {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bloglist-content {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user