-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.scss
More file actions
176 lines (143 loc) · 2.77 KB
/
Copy pathstyle.scss
File metadata and controls
176 lines (143 loc) · 2.77 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
172
173
174
175
176
$break-small: 600px;
@mixin break-small() {
@media (min-width: #{ ($break-small) }) {
@content;
}
}
ul.wp-block-dss-jobbnorge {
// The ul is needed for specificity to override the reset styles in the editor.
list-style: none;
padding: 0;
// This needs extra specificity due to the reset mixin on the parent:
// See: https://github.com/WordPress/gutenberg/blob/a250e9e5fe00dd5195624f96a3d924e7078951c3/packages/edit-post/src/style.scss#L54
&.wp-block-dss-jobbnorge {
box-sizing: border-box;
}
&.alignleft {
/*rtl:ignore*/
margin-right: 2em;
}
&.alignright {
/*rtl:ignore*/
margin-left: 2em;
}
li {
margin: 0 0 1em 0;
}
&.is-grid {
display: flex;
flex-wrap: wrap;
padding: 0;
list-style: none;
li {
margin: 0 1em 1em 0;
width: 100%;
}
}
@include break-small {
@for $i from 2 through 6 {
&.columns-#{ $i } li {
width: calc((100% / #{ $i }) - 1em);
}
}
}
}
.wp-block-dss-jobbnorge__item-title {
font-size: 1.125em;
font-weight: 600;
margin: 0 0 0.25em 0;
}
.wp-block-dss-jobbnorge__item-meta {
margin: 0 0 0.25em 0;
padding: 0;
}
.wp-block-dss-jobbnorge__item-employer,
.wp-block-dss-jobbnorge__item-deadline,
.wp-block-dss-jobbnorge__item-scope {
display: block;
font-weight: 600;
font-size: 0.8125em;
}
// Pagination styles
.wp-block-dss-jobbnorge {
&__pagination {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 2rem;
padding: 1rem 0;
border-top: 1px solid #e0e0e0;
@include break-small {
flex-direction: row;
justify-content: space-between;
align-items: center;
}
}
&__pagination-info {
font-size: 0.875rem;
color: #666;
margin: 0;
}
&__pagination-controls {
display: flex;
gap: 0.5rem;
align-items: center;
button {
padding: 0.5rem 1rem;
border: 1px solid #ddd;
background: #fff; // replaced named color per stylelint
cursor: pointer;
border-radius: 4px;
font-size: 0.875rem;
transition: all 0.2s ease;
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
&:hover:not(:disabled) {
background: #f5f5f5;
border-color: #999;
}
}
.wp-block-dss-jobbnorge__pagination-info {
font-size: 0.875rem;
color: #333;
margin: 0 0.5rem;
}
}
// Loading state
&__loading {
opacity: 0.6;
pointer-events: none;
&::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid #ccc;
border-top-color: #333;
border-radius: 50%;
animation: spin 1s linear infinite;
}
}
// Error message
&__error {
margin: 1rem 0;
padding: 0.75rem;
background: #ffebe8;
border: 1px solid #d63638;
border-radius: 4px;
color: #d63638;
p {
margin: 0;
}
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}