Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
3fbf08aea6 | |||
f2833469dc | |||
fba4c20b47 | |||
ecf86920e7 |
59
.github/workflows/sass-compile.yml
vendored
Normal file
59
.github/workflows/sass-compile.yml
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
name: Compile SASS
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: cicd-docs
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Git submodules
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'latest'
|
||||||
|
|
||||||
|
- name: Install SASS Compiler
|
||||||
|
run: |
|
||||||
|
npm install -g html-minifier sass
|
||||||
|
|
||||||
|
- name: Compile SASS
|
||||||
|
run: |
|
||||||
|
cd htdocs/css/
|
||||||
|
sass "../../scss/nibblepoker.scss" -q --no-source-map > "nibblepoker.css"
|
||||||
|
sass "../../scss/nibblepoker.scss" -q --no-source-map --style compressed > "nibblepoker.min.css"
|
||||||
|
sass "../../scss/debugger.scss" -q --no-source-map > "debugger.css"
|
||||||
|
sass "../../scss/debugger.scss" -q --no-source-map --style compressed > "debugger.min.css"
|
||||||
|
|
||||||
|
- name: Upload `.css` build artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: ${{ github.actor == 'aziascreations' }}
|
||||||
|
with:
|
||||||
|
name: nibblepoker.css
|
||||||
|
path: "./htdocs/css/nibblepoker.css"
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: 90
|
||||||
|
compression-level: 9
|
||||||
|
|
||||||
|
- name: Upload `.min.css` build artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: ${{ github.actor == 'aziascreations' }}
|
||||||
|
with:
|
||||||
|
name: nibblepoker.min.css
|
||||||
|
path: "./htdocs/css/nibblepoker.min.css"
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: 90
|
||||||
|
compression-level: 9
|
BIN
htdocs/img/maki-03.jpg
Normal file
BIN
htdocs/img/maki-03.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<header class="w-full p-m pl-s">
|
<header class="w-full p-m pl-s">
|
||||||
<h1 class="t-size-17 t-w-500">
|
<h1 class="t-size-17 t-w-500">
|
||||||
<i class="fa-brands fa-css3-alt mr-s"></i>NibbleCSS Documentation
|
<i class="fa-brands fa-css3-alt mr-s"></i>NibbleCSS Documentation v0.0.1
|
||||||
<a href="https://github.com/aziascreations/CSS-NibblePoker" class="f-right a-bland"><i class="fa-brands fa-github"></i></a>
|
<a href="https://github.com/aziascreations/CSS-NibblePoker" class="f-right a-bland"><i class="fa-brands fa-github"></i></a>
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
@ -105,6 +105,9 @@
|
|||||||
|
|
||||||
<!-- Tables -->
|
<!-- Tables -->
|
||||||
<?php include("./parts/tables_site.php"); ?>
|
<?php include("./parts/tables_site.php"); ?>
|
||||||
|
|
||||||
|
<!-- Tables -->
|
||||||
|
<?php include("./parts/examples/cards.php"); ?>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="d-flex flex-align-center w-full p-s py-xs">
|
<footer class="d-flex flex-align-center w-full p-s py-xs">
|
||||||
|
47
htdocs/parts/examples/cards.php
Normal file
47
htdocs/parts/examples/cards.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
// Making sure the file is included and not accessed directly.
|
||||||
|
if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
||||||
|
header('HTTP/1.1 403 Forbidden');
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<a id="examples-cards"></a>
|
||||||
|
<div class="p-xs b r-s bkgd-grid mt-m">
|
||||||
|
<h2 class="t-w-500 t-size-14">Cards
|
||||||
|
<i class="fa-solid fa-address-card f-right"></i>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<section class="p-s">
|
||||||
|
|
||||||
|
<h3 class="t-w-500 t-size-12 my-s mt-xxs">Vertical Card</h3>
|
||||||
|
<div class="px-s">
|
||||||
|
<p class="mb-xxs">
|
||||||
|
Tables can quickly be styled by simply using the <span class="code">.table-stylish</span> class.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="my-s border r-l bkgd-dark grid d-inline-block">
|
||||||
|
<div class="bb">
|
||||||
|
<img src="/img/maki-03.jpg" alt="Hungry Kitty Cat" class="r-r p-s px-l" height="128px">
|
||||||
|
</div>
|
||||||
|
<div class="bkgd-gray t-center">
|
||||||
|
<p>Hungry Cat</p>
|
||||||
|
<p>
|
||||||
|
This kitty needs kibbles to stay healthy and
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-col-3">
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<code class="d-block p-xxs border r-s mt-s">
|
||||||
|
table<b>.table-stylish.table-p-s.border.r-l</b><br>
|
||||||
|
thead>th>td*2<br>
|
||||||
|
tbody>tr*2>td*2
|
||||||
|
</code>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
@ -112,11 +112,12 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
|||||||
<details class="by t-noselect" open>
|
<details class="by t-noselect" open>
|
||||||
<summary class="p-xs bkgd-grid20 t-w-bold t-size-13">Examples</summary>
|
<summary class="p-xs bkgd-grid20 t-w-bold t-size-13">Examples</summary>
|
||||||
<div class="p-xs px-m bt bkgd-grey t-size-11">
|
<div class="p-xs px-m bt bkgd-grey t-size-11">
|
||||||
<a class="a-hidden" href="#lists-composed">
|
<a class="a-hidden" href="#examples-cards">
|
||||||
<p class="t-w-500 py-xs sidebar-entry">
|
<p class="t-w-500 py-xs sidebar-entry">
|
||||||
<i class="fa-solid fa-ellipsis pr-xs t-half-muted"></i>Composed
|
<i class="fa-solid fa-address-card pr-xs t-half-muted"></i>Cards
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -44,7 +44,7 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<code class="d-block p-xxs border r-s mt-s">
|
<code class="d-block p-xxs border r-s mt-s">
|
||||||
table<b>.table-stylish.table-p-s.border.o-hidden</b><br>
|
table<b>.table-stylish.table-p-s.border.r-l</b><br>
|
||||||
thead>th>td*2<br>
|
thead>th>td*2<br>
|
||||||
tbody>tr*2>td*2
|
tbody>tr*2>td*2
|
||||||
</code>
|
</code>
|
||||||
|
@ -20,9 +20,14 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><p class="t-bold">No wrap</p></td>
|
<td><p class="t-bold">No wrap</p></td>
|
||||||
<td><p class="t-nowrap">Cannot really be shown</p></td>
|
<td><p class="t-nowrap">Cannot really be demonstrated</p></td>
|
||||||
<td><span class="code">.t-nowrap</span></td>
|
<td><span class="code">.t-nowrap</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><p class="t-bold">No Select</p></td>
|
||||||
|
<td><p class="t-noselect">Cannot be selected</p></td>
|
||||||
|
<td><span class="code">.t-noselect</span></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><p class="t-bold">Half muted</p></td>
|
<td><p class="t-bold">Half muted</p></td>
|
||||||
<td><p class="t-half-muted">Half muted</p></td>
|
<td><p class="t-half-muted">Half muted</p></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user