@natachah/vanilla-frontend 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<p>To make them full width add the class <code>.flush</code></p>
|
|
97
97
|
|
|
98
98
|
<doc-demo>
|
|
99
|
-
<div class="card">
|
|
99
|
+
<div class="card" style="--card-border-color:#000;">
|
|
100
100
|
<h3>Mycard</h3>
|
|
101
101
|
<p>Content of the card</p>
|
|
102
102
|
<div class="group flush">
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
<p>Content of the card</p>
|
|
107
107
|
<ul class="list flush">
|
|
108
|
+
<li><a href="#" role="button">List F</a></li>
|
|
108
109
|
<li>List D</li>
|
|
109
110
|
<li><a>List E</a></li>
|
|
110
111
|
<li><span>List F</span><button>Button</button></li>
|
|
@@ -114,7 +115,7 @@
|
|
|
114
115
|
</doc-demo>
|
|
115
116
|
|
|
116
117
|
<doc-code>
|
|
117
|
-
<div class="card">
|
|
118
|
+
<div class="card" style="--card-border-color:#000">
|
|
118
119
|
<h3>Mycard</h3>
|
|
119
120
|
<p>Content of the card</p>
|
|
120
121
|
<div class="group flush">
|
|
@@ -151,7 +152,7 @@
|
|
|
151
152
|
</doc-code>
|
|
152
153
|
<doc-code id="scss" data-type="scss" role="tabpanel">
|
|
153
154
|
$outline-variations: (
|
|
154
|
-
|
|
155
|
+
card
|
|
155
156
|
);
|
|
156
157
|
</doc-code>
|
|
157
158
|
</div>
|
|
@@ -176,7 +177,7 @@
|
|
|
176
177
|
</doc-code>
|
|
177
178
|
<doc-code id="scss" data-type="scss" role="tabpanel">
|
|
178
179
|
$color-variations: (
|
|
179
|
-
|
|
180
|
+
card: (primary)
|
|
180
181
|
);
|
|
181
182
|
</doc-code>
|
|
182
183
|
</div>
|
|
@@ -18,7 +18,7 @@ class DocLayout extends HTMLElement {
|
|
|
18
18
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin-angle" viewBox="0 0 16 16">
|
|
19
19
|
<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>
|
|
20
20
|
</svg>
|
|
21
|
-
0.1.
|
|
21
|
+
0.1.14
|
|
22
22
|
</span>
|
|
23
23
|
</li>
|
|
24
24
|
<li>
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -129,14 +129,14 @@
|
|
|
129
129
|
margin: 0;
|
|
130
130
|
text-align: var(--list-text-align, left);
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
&:has(> a[role=button]:only-child, > button:only-child) > * {
|
|
133
133
|
display: block;
|
|
134
134
|
width: 100%;
|
|
135
135
|
text-align: var(--list-text-align, left);
|
|
136
136
|
@include as-item($name, $states, $properties);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
&:not(:has(a[role=button]:only-child, button:only-child)) {
|
|
139
|
+
&:not(:has(> a[role=button]:only-child, > button:only-child)) {
|
|
140
140
|
@include as-item($name, (), $properties);
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -62,6 +62,10 @@ $customCardProperties: map.merge(default.$item-properties, $customCard);
|
|
|
62
62
|
border-bottom: var(--card-divider-size, var(--card-border-size, var(--border-size))) var(--card-divider-style, var(--card-border-style, var(--border-style))) var(--card-divider-color, var(--card-border-color, transparent));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
> .flush {
|
|
66
|
+
border-radius: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
65
69
|
> picture.flush {
|
|
66
70
|
max-width: inherit;
|
|
67
71
|
overflow: hidden;
|
|
@@ -73,12 +77,12 @@ $customCardProperties: map.merge(default.$item-properties, $customCard);
|
|
|
73
77
|
|
|
74
78
|
> .flush.list > * {
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
border-inline: none !important;
|
|
81
|
+
|
|
82
|
+
&:has(> a[role=button]:only-child, > button:only-child) > * {
|
|
78
83
|
border-inline: none !important;
|
|
79
84
|
}
|
|
80
85
|
|
|
81
|
-
|
|
82
86
|
&:first-child,
|
|
83
87
|
&:first-child > :only-child {
|
|
84
88
|
border-top: none !important;
|
|
@@ -93,8 +97,6 @@ $customCardProperties: map.merge(default.$item-properties, $customCard);
|
|
|
93
97
|
border-end-end-radius: inherit !important;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
|
-
|
|
97
|
-
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
> .flush.group {
|
|
Binary file
|