@natachah/vanilla-frontend 0.1.1 → 0.1.2
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.
- package/docs/pages/base/media.html +11 -1
- package/docs/pages/components/card.html +6 -4
- package/docs/pages/components/list.html +1 -1
- package/docs/src/js/doc-layout.js +1 -1
- package/natachah-vanilla-frontend-0.1.2.tgz +0 -0
- package/package.json +1 -1
- package/scss/base/_reset.scss +1 -1
- package/scss/components/_card.scss +18 -11
- package/natachah-vanilla-frontend-0.1.1.tgz +0 -0
|
@@ -87,6 +87,11 @@
|
|
|
87
87
|
<h2>Video</h2>
|
|
88
88
|
<p>Use the default <code><video></code> and <code><source></code> tags.</p>
|
|
89
89
|
<p>By default the video take 100% width and have a ratio of 16:9.</p>
|
|
90
|
+
<doc-demo>
|
|
91
|
+
<video width="320" height="240" controls>
|
|
92
|
+
<source src="..." type="video/mp4">
|
|
93
|
+
</video>
|
|
94
|
+
</doc-demo>
|
|
90
95
|
<div class="code-group">
|
|
91
96
|
<div role="tablist">
|
|
92
97
|
<button role="tab" aria-controls="html">HTML</button>
|
|
@@ -94,7 +99,7 @@
|
|
|
94
99
|
</div>
|
|
95
100
|
<doc-code id="html" data-type="html" role="tabpanel">
|
|
96
101
|
<video width="320" height="240" controls>
|
|
97
|
-
<source src="http://
|
|
102
|
+
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
|
|
98
103
|
</video>
|
|
99
104
|
</doc-code>
|
|
100
105
|
<doc-code id="css" data-type="css" role="tabpanel">
|
|
@@ -108,6 +113,11 @@
|
|
|
108
113
|
<h2>Audio</h2>
|
|
109
114
|
<p>Use the default <code><audio></code> and <code><source></code> tags.</p>
|
|
110
115
|
<p>By default the audio take 100% width.</p>
|
|
116
|
+
<doc-demo>
|
|
117
|
+
<audio controls>
|
|
118
|
+
<source src="http://codeskulptor-demos.commondatastorage.googleapis.com/GalaxyInvaders/theme_01.mp3" type="audio/mpeg">
|
|
119
|
+
</audio>
|
|
120
|
+
</doc-demo>
|
|
111
121
|
<div class="code-group">
|
|
112
122
|
<div role="tablist">
|
|
113
123
|
<button role="tab" aria-controls="html">HTML</button>
|
|
@@ -105,7 +105,8 @@
|
|
|
105
105
|
<ul class="list">
|
|
106
106
|
<li>List D</li>
|
|
107
107
|
<li><a>List E</a></li>
|
|
108
|
-
<li><
|
|
108
|
+
<li><span>List F</span><button>Button</button></li>
|
|
109
|
+
<li><a href="#" role="button">List F</a></li>
|
|
109
110
|
</ul>
|
|
110
111
|
</div>
|
|
111
112
|
</doc-demo>
|
|
@@ -122,7 +123,8 @@
|
|
|
122
123
|
<ul class="list">
|
|
123
124
|
<li>List D</li>
|
|
124
125
|
<li><a>List E</a></li>
|
|
125
|
-
<li><
|
|
126
|
+
<li><span>List F</span><button>Button</button></li>
|
|
127
|
+
<li><a href="#" role="button">List F</a></li>
|
|
126
128
|
</ul>
|
|
127
129
|
</div>
|
|
128
130
|
</doc-code>
|
|
@@ -147,7 +149,7 @@
|
|
|
147
149
|
</doc-code>
|
|
148
150
|
<doc-code id="scss" data-type="scss" role="tabpanel">
|
|
149
151
|
$outline-variations: (
|
|
150
|
-
|
|
152
|
+
card
|
|
151
153
|
);
|
|
152
154
|
</doc-code>
|
|
153
155
|
</div>
|
|
@@ -172,7 +174,7 @@
|
|
|
172
174
|
</doc-code>
|
|
173
175
|
<doc-code id="scss" data-type="scss" role="tabpanel">
|
|
174
176
|
$color-variations: (
|
|
175
|
-
|
|
177
|
+
card: (primary)
|
|
176
178
|
);
|
|
177
179
|
</doc-code>
|
|
178
180
|
</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.2
|
|
22
22
|
</span>
|
|
23
23
|
</li>
|
|
24
24
|
<li>
|
|
Binary file
|
package/package.json
CHANGED
package/scss/base/_reset.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
////
|
|
11
11
|
|
|
12
12
|
// Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
13
|
-
*:where(:not(iframe, canvas, img,
|
|
13
|
+
*:where(:not(iframe, canvas, img, video, abbr, b, strong, i, em, cite, s, u, sub, sup, mark, code, svg, defs, g, path, rect, circle, line, text)) {
|
|
14
14
|
all: unset;
|
|
15
15
|
display: revert;
|
|
16
16
|
}
|
|
@@ -74,22 +74,29 @@ $customCardProperties: map.merge(default.$item-properties, $customCard);
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
> .list {
|
|
77
|
+
> .list > * {
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
&:not(:has(a[role=button]:only-child, button:only-child)),
|
|
80
|
+
&:has(a[role=button]:only-child, button:only-child) > * {
|
|
81
81
|
border-inline: none !important;
|
|
82
|
-
border-radius: inherit !important;
|
|
83
82
|
}
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
&:not(:only-child) {
|
|
85
|
+
|
|
86
|
+
&:first-child,
|
|
87
|
+
&:first-child > :only-child {
|
|
88
|
+
border-top: none !important;
|
|
89
|
+
border-start-start-radius: inherit !important;
|
|
90
|
+
border-start-end-radius: inherit !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:last-child,
|
|
94
|
+
&:last-child > :only-child {
|
|
95
|
+
border-bottom: none !important;
|
|
96
|
+
border-end-start-radius: inherit !important;
|
|
97
|
+
border-end-end-radius: inherit !important;
|
|
98
|
+
}
|
|
89
99
|
|
|
90
|
-
> *:last-child,
|
|
91
|
-
> *:last-child > a {
|
|
92
|
-
border-bottom: none !important;
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
}
|
|
Binary file
|