-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.scss
More file actions
171 lines (158 loc) · 4.44 KB
/
Copy pathstyle.scss
File metadata and controls
171 lines (158 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
Theme Name: Link Me Up
Theme URI: https://nextab.de
Author: nexTab – Oliver Gehrmann
Author URI:
Description: Basic Gutenberg based WordPress theme to list links to your favorite sites on the net
Requires at least: 6.0
Tested up to: 6.8.2
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: link-me-up
Tags:
*/
/* #region Colors */
:root {
--color-text: var(--wp--preset--color--custom-text-color, #191616);
--color-bg: var(--wp--preset--color--custom-background-color, #fff);
--primary: var(--wp--preset--color--custom-primary, #d10707);
--secondary: var(--wp--preset--color--custom-secondary, #2ea3f2);
}
/* #endregion Colors */
/* #region Font Sizes */
$small: var(--wp--preset--font-size--small, 0.875rem);
$normal: var(--wp--preset--font-size--normal, 1rem);
$medium: var(--wp--preset--font-size--medium, clamp(1.125rem, calc(.2857vw + 1.0536rem), 1.25rem));
$large: var(--wp--preset--font-size--large, clamp(1.25rem, calc(.5714vw + 1.1071rem), 1.5rem));
$larger: var(--wp--preset--font-size--larger, clamp(1.25rem, calc(1.1429vw + .9643rem), 1.75rem));
$xxl: var(--wp--preset--font-size--xxl, clamp(1.375rem, calc(1.4286vw + 1.0179rem), 2rem));
$ultra: var(--wp--preset--font-size--ultra, clamp(1.375rem, calc(2vw + .875rem), 2.25rem));
/* #endregion Font Sizes */
/* #region Masks */
%mask {
background-color: currentColor;
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;
}
/* #endregion Masks */
/* #region Placeholder Mixin */
@mixin placeholder ($color: var(--color-text), $opacity: 0.8) {
&::-webkit-input-placeholder { // Chrome/Opera/Safari
color: $color;
opacity: $opacity;
}
&::-moz-placeholder { // Firefox 19+
color: $color;
opacity: $opacity;
}
&:-ms-input-placeholder { // IE 10+
color: $color;
opacity: $opacity;
}
&:-moz-placeholder { // Firefox 18-
color: $color;
opacity: $opacity;
}
}
/* #endregion Placeholder Mixin */
/* #region Widths */
$regular: var(--wp--style--global--content-size, 700px);
$wide: var(--wp--style--global--wide-size, 1260px);
$narrow: var(--wp--style--global--narrow-size, 600px);
/* #endregion Widths */
/* #region Containers */
$container-width: 90%;
$container-padding-bottom: 4rem;
$container-padding-top: 4rem;
/* #endregion Containers */
/* #region Normalization */
* {
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth !important;
}
body {
-webkit-font-smoothing: antialiased;
color: var(--color-text);
font-size: 100%;
line-height: 1.5;
}
%container {
width: $container-width;
margin-left: auto;
margin-right: auto;
max-width: $wide;
}
.fullheight {
min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)) !important;
}
.fullwidth {
max-width: 100% !important;
width: 100% !important;
}
/* #region Overwrite Gutenberg Special Crap */
:where(.wp-site-blocks) > * {
margin-block-start: 0;
}
:where(.wp-block-cover-image.is-light:not(.has-text-color)), :where(.wp-block-cover.is-light:not(.has-text-color)) {
color: var(--color-text);
}
.align_flex_start.is-layout-flex {
align-items: flex-start;
}
.wp-block-buttons.is-content-justification-center.is-layout-flex {
justify-content: center;
width: 100%;
}
/* #endregion Overwrite Gutenberg Special Crap */
/* #endregion Normalization */
/* #region Typography */
h1, h2, h4, h5, h6 {
line-height: 1.2;
text-wrap: balance;
}
/* #endregion Typography */
/* #region Button Styles */
.wp-block-button {
&__link {
// Default pill-shaped buttons
border-radius: 50px;
border: 2px solid transparent;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
padding: 0.75rem 1.5rem;
font-weight: 600;
text-align: center;
cursor: pointer;
}
// Outline style - border only
&.is-style-outline-button .wp-block-button__link {
background-color: transparent !important;
border: 2px solid currentColor;
color: var(--wp--preset--color--primary, var(--primary));
}
// Square corners - no border radius
&.is-style-square-button .wp-block-button__link {
border-radius: 0;
}
// Minimal border radius (4px)
&.is-style-minimal-button .wp-block-button__link {
border-radius: 4px;
}
// Ripped paper style using inverted SVG mask
&.is-style-ripped-paper-button .wp-block-button__link {
@extend %mask;
border-radius: 0;
mask-image: url('assets/img/ripped-paper-mask.svg');
mask-repeat: repeat-x;
position: relative;
padding: 1rem 2rem;
}
}
/* #endregion Button Styles */