Skip to content

Commit 59b4fa2

Browse files
committed
feat(feed-directory): present form for dynamic params [wip]
Signed-off-by: Gil Desmarais <git@desmarais.de>
1 parent 8945974 commit 59b4fa2

File tree

7 files changed

+296
-294
lines changed

7 files changed

+296
-294
lines changed

_includes/head_custom.html

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,46 @@
6363
async
6464
src="//gc.zgo.at/count.js"
6565
></script>
66-
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
67-
<symbol id="copy-icon" viewBox="0 0 16 16">
66+
<div class="svg-defs-hidden">
67+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="rss-icon">
68+
<rect
69+
width="512"
70+
height="512"
71+
x="-512"
72+
y="-512"
73+
rx="70"
74+
ry="70"
75+
style="fill: #ea7819; fill-opacity: 1; stroke: none"
76+
transform="scale(-1)"
77+
/>
78+
<path
79+
d="M81.056 267.05c43.705 0 84.79 17.072 115.665 48.124 30.931 31.051 47.961 72.411 47.961 116.44h67.35c0-127.885-103.62-231.921-230.976-231.921zm.106-119.4c155.76 0 282.488 127.42 282.488 284.049H431C431 237.925 274.054 80.301 81.162 80.301zm93.135 236.998c0 25.757-20.892 46.649-46.649 46.649-25.756 0-46.648-20.885-46.648-46.649C81 358.878 101.885 338 127.641 338c25.757 0 46.656 20.878 46.656 20.878"
80+
style="fill: #fff"
81+
/>
82+
</svg>
83+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="edit-icon">
84+
<path
85+
fill="currentColor"
86+
d="M3 17.25V21h3.75L18.75 9.75l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
87+
/>
88+
</svg>
89+
<svg
90+
xmlns="http://www.w3.org/2000/svg"
91+
width="800"
92+
height="800"
93+
viewBox="0 0 32 32"
94+
id="settings-icon"
95+
>
96+
<path
97+
d="M28 13V8a2 2 0 0 0-2-2h-3v2h3v5a3.98 3.98 0 0 0 1.382 3A3.98 3.98 0 0 0 26 19v5h-3v2h3a2 2 0 0 0 2-2v-5a2 2 0 0 1 2-2v-2a2 2 0 0 1-2-2"
98+
/>
6899
<path
69-
d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"
100+
d="m17 9-.857 3h2L19 9h2l-.857 3H22v2h-2.428l-1.143 4H21v2h-3.143L17 23h-2l.857-3h-2L13 23h-2l.857-3H10v-2h2.429l1.143-4H11v-2h3.143L15 9Zm.572 5h-2l-1.143 4h2Z"
101+
style="fill-rule: evenodd"
70102
/>
71103
<path
72-
d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zM9 2H7v.5a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V2z"
104+
d="M6 13V8h3V6H6a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2v2a2 2 0 0 1 2 2v5a2 2 0 0 0 2 2h3v-2H6v-5a3.98 3.98 0 0 0-1.382-3A3.98 3.98 0 0 0 6 13"
73105
/>
74-
</symbol>
75-
</svg>
106+
<path d="M0 0h32v32H0z" style="fill: none" />
107+
</svg>
108+
</div>

_sass/custom/_feed-directory.scss

Lines changed: 0 additions & 85 deletions
This file was deleted.

assets/css/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
// @import files directly from the sass/ directory:;
99

1010
@import "base";
11-
11+
@import "feed-directory";
1212
// Don't write any SCSS in this file as stylelint does not fix it,
1313
// just use the sass directory.

assets/css/sass/base.scss

Lines changed: 14 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,22 @@
1616
--transition-shadow: box-shadow 0.2s ease-in-out;
1717
}
1818

19-
#configs input[name="instance"],
20-
#configs input[name="search"] {
21-
width: 100%;
19+
details {
20+
transition: all 0.2s ease-in-out;
21+
}
22+
23+
summary {
24+
cursor: pointer;
25+
outline: none;
2226
}
2327

24-
.js__copy-element {
25-
position: fixed;
26-
top: 0;
27-
left: 0;
28-
width: 0;
29-
height: 0;
30-
pointer-events: none;
31-
user-select: text;
32-
opacity: 0;
28+
summary:hover {
29+
color: var(--link-color);
3330
}
3431

35-
.js__copy-element::selection {
36-
background-color: transparent;
32+
#configs input[name="instance"],
33+
#configs input[name="search"] {
34+
inline-size: 100%;
3735
}
3836

3937
.noscript {
@@ -44,95 +42,6 @@
4442
border: 1px solid var(--color-error);
4543
}
4644

47-
button[data-bind-click="copy"] {
48-
padding: var(--button-padding-y) var(--button-padding-x);
49-
font: inherit;
50-
line-height: 1.2;
51-
color: var(--color-text);
52-
cursor: pointer;
53-
border: 2px solid transparent;
54-
border-radius: var(--border-radius-sm);
55-
transition: var(--transition-border), var(--transition-shadow);
56-
}
57-
58-
button[data-bind-click="copy"]:focus-visible {
59-
outline: 2px dashed var(--color-accent);
60-
outline-offset: 2px;
61-
}
62-
63-
button[data-bind-click="copy"].copied,
64-
button[data-bind-click="copy"].copied:hover,
65-
button[data-bind-click="copy"].copied:active {
66-
border-color: var(--color-accent);
67-
box-shadow: inset 0 2px 4px var(--color-accent-bg);
68-
}
69-
70-
.card-deck {
71-
display: flex;
72-
flex-wrap: wrap;
73-
}
74-
75-
.card {
76-
width: 100%;
77-
}
78-
.card-header {
79-
padding: 0.75rem 1.25rem;
80-
margin-bottom: 0;
81-
background-color: var(--table-background-color);
82-
border-bottom: 1px solid var(--border-color);
83-
position: relative;
84-
}
85-
86-
.card-body {
87-
padding: 1.25rem;
88-
}
89-
.badge {
90-
position: absolute;
91-
right: 0;
92-
animation: 0;
93-
94-
display: inline-block;
95-
padding: 0.2em 0.4em;
96-
font-size: 75%;
97-
border-radius: 0.25rem;
98-
vertical-align: middle;
99-
white-space: nowrap;
100-
}
101-
102-
.btn-icon {
103-
padding: 0.1rem 0.2rem;
104-
font-size: 0.8rem;
105-
line-height: 1;
106-
border-radius: var(--border-radius);
107-
background-color: transparent;
108-
border: 1px solid transparent;
109-
color: var(--link-color);
110-
}
111-
112-
.btn-icon svg {
113-
width: 1em;
114-
height: 1em;
115-
vertical-align: -0.125em;
116-
fill: currentColor;
117-
}
118-
119-
.d-flex-justify-content-between {
120-
display: flex;
121-
justify-content: space-between;
122-
align-items: center;
123-
}
124-
125-
details {
126-
transition: all 0.2s ease-in-out;
127-
}
128-
129-
summary {
130-
cursor: pointer;
131-
outline: none;
132-
}
133-
134-
summary:hover {
135-
color: var(--link-color);
45+
.svg-defs-hidden {
46+
display: none;
13647
}
137-
138-
@import "custom/feed-directory";

0 commit comments

Comments
 (0)