Skip to content

Commit

Permalink
buttons implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowDreagon committed Dec 16, 2023
1 parent 20a759c commit 50638cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions kotkt.nl/themes/kotkt/assets/css/_button.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.button {
.button-ext {
display: inline-block;
border-radius: 4px;
background-color: #0a9425;
Expand All @@ -20,11 +20,11 @@
}
}

.button:hover {
.button-ext:hover {
background-color: #075b18
}

.button span:after {
.button-ext span:after {
content: '\00bb';
position: absolute;
opacity: 0;
Expand All @@ -33,11 +33,11 @@
transition: 0.5s;
}

.button:hover span {
.button-ext:hover span {
padding-right: 25px;
}

.button:hover span:after {
.button-ext:hover span:after {
opacity: 1;
right: 0;
}
8 changes: 4 additions & 4 deletions kotkt.nl/themes/kotkt/assets/css/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
margin-left: -50vw;

display: flex;
flex-direction: column;
justify-content: flex-end;

.header-title {
.header-horizontal {
display: flex;
// justify-content: space-between;
flex-direction: column;
justify-content: space-between;
}
}

Expand Down
5 changes: 3 additions & 2 deletions kotkt.nl/themes/kotkt/layouts/shortcodes/articleimage.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div class="header header-full" style='
background: #222222 url({{ .Get "url" }}) center/cover;
'>
<div class="header-title">
<div class="header-horizontal">

<div>
<h1>{{ .Get "title" }}</h1>
<h4>{{ .Get "subtitle" }}</h4>
Expand All @@ -11,4 +12,4 @@ <h4>{{ .Get "subtitle" }}</h4>
{{ .Inner }}
</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion kotkt.nl/themes/kotkt/layouts/shortcodes/button.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<a href='{{ .Get "link" }}' target="_blank" class="button" style="vertical-align:middle">
<a href='{{ .Get "link" }}' target="_blank" class="button-ext" style="vertical-align:middle">
<span>{{ .Get "text" }} </span>
</a>

0 comments on commit 50638cb

Please sign in to comment.