Skip to content

Commit

Permalink
style!
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Heisig committed Apr 22, 2022
1 parent 252793b commit d560e1f
Show file tree
Hide file tree
Showing 9 changed files with 466 additions and 104 deletions.
48 changes: 48 additions & 0 deletions assets/scss/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.footer {
padding: 0px 20px 40px 20px;
flex-grow: 0;
color: $light-color-secondary;

&__inner {
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
width: 760px;
max-width: 100%;

@media #{$media-size-tablet} {
flex-direction: column;
}
}

&__content {
display: flex;
flex-direction: row;
align-items: center;
font-size: 1rem;
color: $light-color-secondary;

@media #{$media-size-tablet} {
flex-direction: column;
margin-top: 10px;
}

& > *:not(:last-child)::after {
padding: 0 5px;

@media #{$media-size-tablet} {
content: "";
padding: 0;
}
}

& > *:last-child {
padding: 0 0px;

@media #{$media-size-tablet} {
padding: 0;
}
}
}
}
44 changes: 44 additions & 0 deletions assets/scss/_logo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.logo {
display: flex;
align-items: center;
text-decoration: none;
font-weight: bold;
font-display: auto;
font-family: monospace, monospace;

img {
height: 44px;
}

&__mark {
font-size: 1.125rem;
margin-right: 5px;
}

&__text {
font-size: 1.125rem;
}

&__cursor {
display: inline-block;
width: 10px;
height: 1rem;
background: #fe5186;
margin-left: 5px;
border-radius: 1px;
animation: cursor 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
&__cursor {
animation: none;
}
}

}

@keyframes cursor {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
235 changes: 235 additions & 0 deletions assets/scss/_single.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
.post {
width: 100%;
max-width: 800px;
text-align: left;
padding: 20px;
margin: 20px auto;
@media #{$media-size-tablet} {
max-width: 600px;
}

&-date {
&:after {
content: '';
}
}

&-title {
font-size: 2.625rem;
margin: 0 0 20px;
@media #{$media-size-phone} {
font-size: 2rem;
}

a {
text-decoration: none;
}
}

&-tags {
display: block;
margin-bottom: 20px;
font-size: 1rem;
opacity: 0.5;

a {
text-decoration: none;
}
}

&-content {
margin-top: 30px;
}

&-cover {
border-radius: 8px;
margin: 40px -50px;
width: $max-width;
max-width: $max-width;
overflow: hidden;
@media #{$media-size-tablet} {
margin: 20px 0;
width: 100%;
}
}

&-excerpt {
color: grey;
font-style: italic;
}

&-info {
margin-top: 30px;
font-size: 0.8rem;
line-height: normal;
@include dimmed;

p {
margin: 0.8em 0;
}

a:hover {
border-bottom: 1px solid white;
}

svg {
margin-right: 0.8em;
}

.tag {
margin-right: 0.5em;

&::before {
content: "#";
}
}

.feather {
display: inline-block;
vertical-align: -.125em;
width: 1em;
height: 1em;
}
}

&-audio {
display: flex;
justify-content: center;
align-items: center;
padding-top: 20px;

audio {
width: 90%;
}
}

.flag {
border-radius: 50%;
margin: 0 5px;
}
}

.pagination {
margin-top: 20px;

&__title {
display: flex;
text-align: center;
position: relative;
margin: 20px 0;

&-h {
text-align: center;
margin: 0 auto;
padding: 5px 10px;
font-size: 0.8rem;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 0.1em;
z-index: 1;
// Default
background: $light-background;
color: $light-color-secondary;

@media (prefers-color-scheme: dark) {
background: $dark-background;
color: $dark-color-secondary;
}

@media (prefers-color-scheme: light) {
background: $light-background;
color: $light-color-secondary;
}

[data-theme=dark] & {
background: $dark-background;
color: $dark-color-secondary;
}

[data-theme=light] & {
background: $light-background;
color: $light-color-secondary;
}
}

hr {
position: absolute;
left: 0;
right: 0;
width: 100%;
margin-top: 15px;
z-index: 0;
}
}

&__buttons {
display: flex;
align-items: center;
justify-content: center;
padding-top: 35px;

a {
text-decoration: none;
font-weight: bold;
}
}
}

.button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1rem;
font-weight: 600;
border-radius: 8px;
max-width: 100%;
padding: 0;
cursor: pointer;
appearance: none;
// Default
background: $light-background-secondary;

@media (prefers-color-scheme: dark) {
background: $dark-background-secondary;
}

@media (prefers-color-scheme: light) {
background: $light-background-secondary;
}

[data-theme=dark] & {
background: $dark-background-secondary;
}

[data-theme=light] & {
background: $light-background-secondary;
}

+ .button {
margin-left: 10px;
}

a {
display: flex;
padding: 8px 16px;
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

&__text {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

&.next .button__icon {
margin-left: 8px;
}

&.previous .button__icon {
margin-right: 8px;
}
}
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ privacy:
disable: true

googleAnalytics:
disable: false
disable: true
anonymizeIP: true
respectDoNotTrack: true

Expand Down
2 changes: 1 addition & 1 deletion content/de/posts/Neo4j Graph View Editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ published: 2018-07-27
excludeFromSitemap: true

tags:
- neo4j
- Neo4j

categories:
- Open Source Projects
Expand Down
4 changes: 2 additions & 2 deletions content/de/posts/Thunderbird Taiga Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ published: 2018-03-06
excludeFromSitemap: true

tags:
- thunderbird
- taiga
- Thunderbird
- Taiga.io

categories:
- Open Source Projects
Expand Down
2 changes: 1 addition & 1 deletion content/en/posts/Neo4j Graph View Editor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ images:
- toolbar.png

tags:
- neo4j
- Neo4j

categories:
- Open Source Projects
Expand Down
8 changes: 4 additions & 4 deletions content/en/posts/Thunderbird Taiga Integration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ images:
- token-screencast.gif

tags:
- thunderbird
- taiga
- Thunderbird
- Taiga.io

categories:
- Open Source Projects

aliases:
- /post/thunderbird-taiga-integration/
- /posts/thunderbird-taiga-integration-englisch/
- /post/thunderbird-taiga-integration/
- /posts/thunderbird-taiga-integration-englisch/

---

Expand Down
Loading

0 comments on commit d560e1f

Please sign in to comment.