Skip to content

Commit f75d90d

Browse files
committed
restructure css to use scss
1 parent 131191c commit f75d90d

File tree

7 files changed

+22
-12
lines changed

7 files changed

+22
-12
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"kortez",
34
"Reqnroll",
45
"Tricentis"
56
]

_includes/head.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
{%- seo -%}
1111
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@latest/css/all.min.css">
12-
<link rel="stylesheet" href="{{ '/assets/css/legacy.css' | relative_url }}">
13-
<link rel="stylesheet" href="{{ '/assets/kortez-fse/style.css' | relative_url }}">
14-
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
12+
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
1513
{%- feed_meta -%}
1614
{%- if jekyll.environment == 'production' and site.google_analytics -%}
1715
{%- include google-analytics.html -%}
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
---
2-
# Only the main Sass file needs front matter (the dashes are enough)
3-
---
4-
1+
$site_url: "" !default;
52

63
.wp-block-site-logo {
74
box-sizing: border-box;
@@ -2176,39 +2173,39 @@ img:is([sizes="auto" i], [sizes^="auto," i]) {
21762173
font-style: normal;
21772174
font-weight: 300;
21782175
font-display: fallback;
2179-
src: url('{{ site.url }}/assets/kortez-fse/fonts/manrope/Manrope-Light.ttf') format('truetype');
2176+
src: url($site_url + '/assets/kortez-fse/fonts/manrope/Manrope-Light.ttf') format('truetype');
21802177
}
21812178

21822179
@font-face {
21832180
font-family: Manrope;
21842181
font-style: normal;
21852182
font-weight: 400;
21862183
font-display: fallback;
2187-
src: url('{{ site.url }}/assets/kortez-fse/fonts/manrope/Manrope-Regular.ttf') format('truetype');
2184+
src: url($site_url + '/assets/kortez-fse/fonts/manrope/Manrope-Regular.ttf') format('truetype');
21882185
}
21892186

21902187
@font-face {
21912188
font-family: Manrope;
21922189
font-style: normal;
21932190
font-weight: 500;
21942191
font-display: fallback;
2195-
src: url('{{ site.url }}/assets/kortez-fse/fonts/manrope/Manrope-Medium.ttf') format('truetype');
2192+
src: url($site_url + '/assets/kortez-fse/fonts/manrope/Manrope-Medium.ttf') format('truetype');
21962193
}
21972194

21982195
@font-face {
21992196
font-family: Manrope;
22002197
font-style: normal;
22012198
font-weight: 600;
22022199
font-display: fallback;
2203-
src: url('{{ site.url }}/assets/kortez-fse/fonts/manrope/Manrope-SemiBold.ttf') format('truetype');
2200+
src: url($site_url + '/assets/kortez-fse/fonts/manrope/Manrope-SemiBold.ttf') format('truetype');
22042201
}
22052202

22062203
@font-face {
22072204
font-family: Manrope;
22082205
font-style: normal;
22092206
font-weight: 700;
22102207
font-display: fallback;
2211-
src: url('{{ site.url }}/assets/kortez-fse/fonts/manrope/Manrope-Bold.ttf') format('truetype');
2208+
src: url($site_url + '/assets/kortez-fse/fonts/manrope/Manrope-Bold.ttf') format('truetype');
22122209
}
22132210

22142211
.termly-styles-module-primary-c2e506 {

_sass/post-collection.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// style for paged post lists in index and in /news
2+
3+
.missing-image {
4+
background-color: rgb(220, 220, 220);height: 200px;width: 100%;
5+
}

_sass/style.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$site_url: "" !default;
2+
@use "../assets/kortez-fse/style.css";
3+
@use "legacy2";
4+
@use "legacy1" with ($site_url: $site_url);
5+
@use "post-collection.scss";

assets/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
# do not remove the dashes
3+
---
4+
@use "style" with ($site_url: "{{site.url}}");

0 commit comments

Comments
 (0)