-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow hidden CSS src in tabbed examples (#989)
* Allow hidden CSS src in tabbed examples * prettier
- Loading branch information
1 parent
7ec7f6c
commit 50a2473
Showing
6 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@font-face { | ||
font-family: molot; | ||
src: url("/media/fonts/molot.woff2") format("woff2"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<table> | ||
<caption> | ||
He-Man and Skeletor facts | ||
</caption> | ||
<tr> | ||
<td> </td> | ||
<th scope="col" class="heman">He-Man</th> | ||
<th scope="col" class="skeletor">Skeletor</th> | ||
</tr> | ||
<tr> | ||
<th scope="row">Role</th> | ||
<td>Hero</td> | ||
<td>Villain</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Weapon</th> | ||
<td>Power Sword</td> | ||
<td>Havoc Staff</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Dark secret</th> | ||
<td>Expert florist</td> | ||
<td>Cries at romcoms</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
caption { | ||
padding: 10px; | ||
caption-side: bottom; | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
border: 2px solid rgb(200, 200, 200); | ||
letter-spacing: 1px; | ||
font-family: sans-serif; | ||
font-size: 0.8rem; | ||
} | ||
|
||
td, | ||
th { | ||
border: 1px solid rgb(190, 190, 190); | ||
padding: 7px 5px; | ||
} | ||
|
||
th { | ||
background-color: rgb(235, 235, 235); | ||
} | ||
|
||
td { | ||
text-align: center; | ||
} | ||
|
||
tr:nth-child(even) td { | ||
background-color: rgb(250, 250, 250); | ||
} | ||
|
||
tr:nth-child(odd) td { | ||
background-color: rgb(240, 240, 240); | ||
} | ||
|
||
.heman { | ||
font: 1.4rem molot; | ||
text-shadow: 1px 1px 1px #fff, 2px 2px 1px #000; | ||
} | ||
|
||
.skeletor { | ||
font: 1.7rem rapscallion; | ||
letter-spacing: 3px; | ||
text-shadow: 1px 1px 0 #fff, 0 0 9px #000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"pages": { | ||
"dialog": { | ||
"exampleCode": "live-examples/html-examples/table-content/caption.html", | ||
"cssExampleSrc": "live-examples/html-examples/table-content/css/caption.css", | ||
"cssHiddenSrc": "live-examples/fonts/molot.css", | ||
"fileName": "caption.html", | ||
"title": "HTML Demo: <caption>", | ||
"type": "tabbed", | ||
"height": "tabbed-taller" | ||
} | ||
} | ||
} |