long time no update :o
This commit is contained in:
parent
33fb7cb34c
commit
c974ac8f1a
29 changed files with 280 additions and 147 deletions
|
@ -1,4 +1,5 @@
|
|||
footer {
|
||||
background-color: var(--border);
|
||||
color: var(--text-secondary);
|
||||
grid-area: footer;
|
||||
a { color: var(--text-secondary); }
|
||||
|
|
|
@ -12,29 +12,24 @@
|
|||
}
|
||||
}
|
||||
|
||||
#latest-posts {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1em;
|
||||
hyphens: auto;
|
||||
overflow-x: scroll;
|
||||
.post-group {
|
||||
background: var(--vriish-gradient);
|
||||
border-radius: .5em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-shadow: var(--vriish-gradient-shadow);
|
||||
min-width: 15em;
|
||||
width: 33.333%;
|
||||
.title {
|
||||
flex: auto;
|
||||
margin: 1em;
|
||||
section {
|
||||
position: relative;
|
||||
h2 {
|
||||
.more{
|
||||
font-size: .75em;
|
||||
font-weight: normal;
|
||||
hyphens: none;
|
||||
&::after {
|
||||
content: "\27F6";
|
||||
margin-left: .25em;
|
||||
transition: margin .5s;
|
||||
}
|
||||
&:hover::after {
|
||||
margin-left: .5em !important;
|
||||
}
|
||||
}
|
||||
aside {
|
||||
margin: 1em;
|
||||
&:hover .more::after {
|
||||
margin-left: .35em;
|
||||
}
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
1
assets/shortcodes/_index.scss
Normal file
1
assets/shortcodes/_index.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import "verticalposts";
|
31
assets/shortcodes/_verticalposts.scss
Normal file
31
assets/shortcodes/_verticalposts.scss
Normal file
|
@ -0,0 +1,31 @@
|
|||
.verticalposts {
|
||||
hyphens: auto;
|
||||
margin-top: 4em;
|
||||
.verticalposts-wrapper {
|
||||
border-radius: .5em;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1em;
|
||||
overflow-x: scroll;
|
||||
scroll-snap-type: x proximity;
|
||||
.post-group {
|
||||
background: var(--vriish-gradient);
|
||||
border-radius: .5em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
scroll-snap-align: start;
|
||||
min-width: 15em;
|
||||
width: 33.333%;
|
||||
.title {
|
||||
flex: auto;
|
||||
margin: 1em;
|
||||
}
|
||||
aside {
|
||||
margin: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
|
@ -8,15 +8,24 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
grid-area: sidebar;
|
||||
height: 100vh;
|
||||
margin-top: -2px;
|
||||
max-width: 300px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
gap: 1em;
|
||||
padding: 1em;
|
||||
@media (min-width: 921px) {
|
||||
bottom: 0;
|
||||
height: 100%;
|
||||
}
|
||||
header {
|
||||
text-align: center;
|
||||
padding: 2em 1em;
|
||||
user-select: none;
|
||||
#avatar {
|
||||
border-radius: 100%;
|
||||
width: calc(100% - 2em);
|
||||
max-width: 200px;
|
||||
}
|
||||
#name {
|
||||
margin: 0;
|
||||
font-weight: bold;
|
||||
|
@ -28,7 +37,7 @@
|
|||
}
|
||||
}
|
||||
#sidebar-menu {
|
||||
padding: 2em 1em;
|
||||
user-select: none;
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
@ -36,13 +45,12 @@
|
|||
}
|
||||
li {
|
||||
border-radius: .5em;
|
||||
margin: .25em 0;
|
||||
padding: .25em .5em;
|
||||
margin: .5em 0;
|
||||
position: relative;
|
||||
letter-spacing: .025em;
|
||||
a {
|
||||
text-shadow: 0 0 0 transparent;
|
||||
transition: text-shadow .5s;
|
||||
display: block;
|
||||
padding: .25em .5em;
|
||||
}
|
||||
::after {
|
||||
background: var(--vriish-gradient);
|
||||
|
@ -51,24 +59,21 @@
|
|||
content: "";
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
right: 100%;
|
||||
top: 0;
|
||||
transition: opacity .5s;
|
||||
transition: opacity .5s, width .5s;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
&.active {
|
||||
background: var(--vriish-gradient);
|
||||
a {
|
||||
text-shadow: var(--vriish-gradient-shadow);
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
a {
|
||||
text-shadow: var(--vriish-gradient-shadow);
|
||||
}
|
||||
::after {
|
||||
opacity: 1;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -76,4 +81,76 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
aside {
|
||||
bottom: 1em;
|
||||
position: absolute;
|
||||
left: 1em;
|
||||
right: 1em;
|
||||
@media (max-width: 920px) {
|
||||
position: initial;
|
||||
}
|
||||
#language-select {
|
||||
position: relative;
|
||||
pointer-events: none;
|
||||
&:hover {
|
||||
#languages {
|
||||
//display: block;
|
||||
bottom: 2em;
|
||||
opacity: 100%;
|
||||
pointer-events: all;
|
||||
* {
|
||||
pointer-events: all;
|
||||
}
|
||||
}
|
||||
}
|
||||
#language-icon {
|
||||
text-decoration: none;
|
||||
padding-top: 1em;
|
||||
pointer-events: all;
|
||||
&::after {
|
||||
content: attr(data-page-lang);
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
font-size: 0.6em;
|
||||
line-height: 1.5em;
|
||||
bottom: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
#languages {
|
||||
background-color: var(--background);
|
||||
border-radius: .5em;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
user-select: none;
|
||||
position: absolute;
|
||||
//display: none;
|
||||
bottom: 1em;
|
||||
opacity: 0%;
|
||||
transition: bottom .5s, opacity .5s;
|
||||
li {
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
padding: .25em .5em;
|
||||
position: relative;
|
||||
transition: background .5s;
|
||||
border-radius: .5em;
|
||||
margin: .2em;
|
||||
&:not(:last-of-type) {
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
&.active {
|
||||
background: var(--vriish-gradient);
|
||||
}
|
||||
&:hover {
|
||||
background: var(--vriish-gradient);
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
// general
|
||||
@import "variables";
|
||||
@import "shortcodes";
|
||||
|
||||
// site parts
|
||||
@import "sidebar";
|
||||
|
@ -34,13 +35,18 @@ html {
|
|||
"header header"
|
||||
"sidebar content"
|
||||
"sidebar footer";
|
||||
grid-template-columns: 250px 1fr;
|
||||
line-height: 1.7;
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
@media (max-width: 920px) {
|
||||
font-size: 1em;
|
||||
grid-template-areas:
|
||||
"header"
|
||||
"content"
|
||||
"sidebar"
|
||||
"footer";
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
line-height: 1em;
|
||||
|
@ -134,27 +140,9 @@ main {
|
|||
span { font-size: .8em; }
|
||||
}
|
||||
|
||||
#intro-heading {
|
||||
background-image: linear-gradient(180deg, var(--vriish-rose) 0%, var(--vriish-rose) 50%, var(--gold) 95%, var(--vriish-rose) 100%);
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
color: transparent;
|
||||
display: inline-block;
|
||||
margin: 0.55em 0;
|
||||
}
|
||||
|
||||
span[title="Freude"], span[title="happiness"] {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
p.date-published {
|
||||
margin-bottom: -1.5em;
|
||||
font-size: smaller;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
main {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
--background: hsl(0, 100%, 97.5%);
|
||||
--border: hsl(0, 100%, 90%);
|
||||
|
||||
--text: rgb(50, 40, 30);
|
||||
--text-2: rgb(90, 80, 70);
|
||||
--text: hsl(0, 100%, 5%);
|
||||
--text-2: hsl(0, 100%, 10%);
|
||||
|
||||
--sidebar-background: hsl(0, 100%, 95%);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue