Improved sidebar, Added misc rules and options

Update index.php, sidebar.php, and 6 more files...
This commit is contained in:
Herwin Bozet (NibblePoker) 2024-11-21 18:20:19 +01:00
parent b4dce500fe
commit d584aa9732
8 changed files with 188 additions and 137 deletions

View File

@ -85,8 +85,8 @@
<!-- Lists > Base -->
<?php include("./parts/lists_base.php"); ?>
<!-- Lists > Composed -->
<?php include("./parts/lists_composed.php"); ?>
<!-- Lists > Composed
<?php include("./parts/lists_composed.php"); ?>-->
<!-- Grids -->
<?php include("./parts/grids.php"); ?>

View File

@ -5,16 +5,20 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
}
?>
<nav id="sidebar" class="sidebar p-m pt-l">
<nav id="sidebar" class="sidebar">
<div class="p-m pt-l">
<a href="/" class="no-select">
<img class="logo-sidebar-v2"
src="/img/logo-large-fluent-unshaded.svg"
alt="Website's logo"
draggable="false">
</a>
<hr class="subtle">
</div>
<p class="t-bold t-size-14 py-xxs t-half-muted _t-underline t-center">Text</p>
<details class="by t-noselect" open>
<summary class="p-xs bkgd-grid20 t-w-bold t-size-14">Core</summary>
<div class="p-xs bt bkgd-grey">
<a class="a-hidden" href="#text-weights">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-text-height pr-xs t-size-12 t-half-muted"></i>
@ -72,55 +76,57 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
<a class="a-hidden" href="#lists-basic">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-list pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Basic</span>
<span class="t-size-12">Lists</span>
</p>
</a>
<a class="a-hidden" href="#lists-composed">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-ellipsis pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Composed</span>
</p>
</a>
<hr class="subtle">
<a class="a-hidden" href="#grids">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-table-cells-large pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Grids</span>
</p>
</a>
<a class="a-hidden" href="#tables">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-table pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Tables</span>
</p>
</a>
</div>
</details>
<hr class="subtle">
<details class="by t-noselect" open>
<summary class="p-xs bkgd-grid20 t-w-bold t-size-14">Site</summary>
<div class="p-xs bt bkgd-grey">
<a class="a-hidden" href="#horizontal-rulers">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-ruler pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Horizontal Rulers</span>
</p>
</a>
<hr class="subtle">
<a class="a-hidden" href="#backgrounds">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-paint-roller pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Backgrounds</span>
</p>
</a>
<a class="a-hidden" href="#buttons">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-stop pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Buttons</span>
</p>
</a>
</div>
</details>
<details class="by t-noselect" open>
<summary class="p-xs bkgd-grid20 t-w-bold t-size-14">Examples</summary>
<div class="p-xs bt bkgd-grey">
<a class="a-hidden" href="#lists-composed">
<p class="t-size-18 t-w-500 py-xs sidebar-entry">
<i class="fa-solid fa-ellipsis pr-xs t-size-12 t-half-muted"></i>
<span class="t-size-12">Composed</span>
</p>
</a>
</div>
</details>
</nav>

View File

@ -1,6 +1,29 @@
# NibblePoker's CSS Theme (W.I.P.)
A simple and minimalist CSS stylesheet used across all my websites and web-based applications.
## Structure
This stylesheet is composed of 4 major parts that all work together towards a common goal
all the while staying independent and usable individually if you ever wished to.
### External
The *External* rules regroup every external CSS stylesheets that are included in this one.\
Currently, [reset.css](https://meyerweb.com/eric/tools/css/reset/) is the only such stylesheet.
**See:** [scss/external/](scss/external)
### Core
The *Core* rules define mostly universal and portable CSS rules and other utilities for text,
spacing and whatnot. \
Internally, they are defined after everything else in order to let them override rules
applied to the custom elements and site-centric rules.
**See:** [scss/core/](scss/core)
### Site
### Custom
## License
The code in this repository is released under [CC0 1.0 Universal (CC0 1.0) (Public Domain)](LICENSE-CC0)

View File

@ -1,8 +1,15 @@
// NibblePoker CSS Theme - CC0 1.0 (Public Domain)
// Add the "w-000px"/"h-000px" classes.
/* Config > NibbleCSS */
// Toggles the inclusion of pixel-based sizing utility classes. ("w-000px", "h-000px", ...)
// See: core/sizing.scss
$add-px-sizing-rules: false;
$nibblepoker-background-root: "./";
// Toggles the inclusion of the ".bkgd-grid" background rules.
// See: site/backgrounds.scss
$include-grid-backgrounds: true;
$use-b64-backgrounds: true;

View File

@ -21,12 +21,20 @@
.w-half {
width: 50%;
}
.wm-half {
max-width: 50%;
}
.h-half {
height: 50%;
}
.hm-half {
max-height: 50%;
}
// Pixels Sizing (Deprecated, disabled by default, use custom rules !)
// Pixels Sizing
// These rules are deprecated and disabled by default.
// You should preferably use custom site-specific or app-specific rules instead !
@if($add-px-sizing-rules) {
// 50, 100, ..., 250 px
@for $_ from 1 through 5 {

View File

@ -166,3 +166,7 @@ s, .t-strikethrough {
// Should be 35% TBH
opacity: 45%;
}
.t-noselect {
user-select: none;
}

View File

@ -14,6 +14,7 @@
background: $color-background-main;
}
@if($include-grid-backgrounds) {
// The element rules override rules in `base.scss ~94`
.bkgd-grid10, .bkgd-surround, header, nav, footer {
//background: #{$color-background-surround};
@ -36,13 +37,12 @@
}
.bkgd-grid40, .bkgd-grid {
background:
#{$color-background-surround}
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAKlBMVEUAAABlZWVYWFhTU1NRUVFQUFBPT09PT09OTk4WFhZOTk5OTk5NTU1NTU1IbxM8AAAADnRSTlMABAgMEBQYHCElJSktNNvaVJcAAAjfSURBVHhepVfNdtpIFgZ2tTOwqh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c/FqEdsE3bnEUx0ISmoNlB33/XPyxy+ApA3fpxiXxO88Doyv226O2ljBapv4C+YW/FXPXI4w+u6ggz6tC05zIat2mDjX+xK673R/5K3OuVvbajlgg+7kvsRzFMbP0M1rzzz6AVuSukLCLHbzmRvLm4TDs8RPE4Vpg+v7SzuxTgfaZRgkJ1GGYUwc7d0392mYGIgMEES95CojMXsQK1TdU96AnA5cynFqPzJkDD47ax8TtT57DiDnEDeh6dbZ9U8Smeg+b85Rf9uS6+p7qhT1FQM3ygBGNeZZHtoRwCg5ixapCBV9fehJyW3dUA3/BZ5/6R85YIDMf0Y2X0hy/J/f5zK5owNgm+NtuQhltfUx/frt48pC7+3tevkBueWkjgqx45lFqTuEDG38D42gdEpVh4O4JxoTsHvPEvsX4HNLYTfkWvh+ZrR+4P3P7YSfr0cdcynKcj8X2Sz5mTBk158CACW7j1/6huOM2ychrkszqhj5YepfuQ/FW9mA9sg2TcEoRpHWVy2gFRIelpOvmADJAJRYcaPgkBTozmb+GYVz5rCitvaQpWKf+nz25rkM7kE0fTjbgDXL4AfVrqDo+CenUrNwlMlvzhZmWkpZFER585tp0yROf+S0/+ZTOqIuROyjnJfZnmyHIC77mUsoat0Q8wpd9FzPE5O6KiEOCeUA35xQafMt9+5SndkKVcRznY0sG4VUqk4yW7oYiCpDB/oU3eClwU49YPBSmdObQJp3aOsKbCMNAlrU7AaCyI3EEgbRwYCCzNKR5tVqzGEXo1nYNE/8L7/nVVfVn2+vR3HWOy+XfT93jnVJm+GEAAAAASUVORK5CYII=")
repeat scroll center center;
background: #{$color-background-surround}
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAKlBMVEUAAABlZWVYWFhTU1NRUVFQUFBPT09PT09OTk4WFhZOTk5OTk5NTU1NTU1IbxM8AAAADnRSTlMABAgMEBQYHCElJSktNNvaVJcAAAjfSURBVHhepVfNdtpIFgZ2tTOwqh3I7pxTu8YC+tytkeRT2wCiK8sAIte9jA0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ApA3fpxiXxO88Doyv226O2ljBapv4C+YW/FXPXI4w+u6ggz6tC05zIat2mDjX+xK673R/5K3OuVvbajlgg+7kvsRzFMbP0M1rzzz6AVuSukLCLHbzmRvLm4TDs8RPE4Vpg+v7SzuxTgfaZRgkJ1GGYUwc7d0392mYGIgMEES95CojMXsQK1TdU96AnA5cynFqPzJkDD47ax8TtT57DiDnEDeh6dbZ9U8Smeg+b85Rf9uS6+p7qhT1FQM3ygBGNeZZHtoRwCg5ixapCBV9fehJyW3dUA3/BZ5/6R85YIDMf0Y2X0hy/J/f5zK5owNgm+NtuQhltfUx/frt48pC7+3tevkBueWkjgqx45lFqTuEDG38D42gdEpVh4O4JxoTsHvPEvsX4HNLYTfkWvh+ZrR+4P3P7YSfr0cdcynKcj8X2Sz5mTBk158CACW7j1/6huOM2ychrkszqhj5YepfuQ/FW9mA9sg2TcEoRpHWVy2gFRIelpOvmADJAJRYcaPgkBTozmb+GYVz5rCitvaQpWKf+nz25rkM7kE0fTjbgDXL4AfVrqDo+CenUrNwlMlvzhZmWkpZFER585tp0yROf+S0/+ZTOqIuROyjnJfZnmyHIC77mUsoat0Q8wpd9FzPE5O6KiEOCeUA35xQafMt9+5SndkKVcRznY0sG4VUqk4yW7oYiCpDB/oU3eClwU49YPBSmdObQJp3aOsKbCMNAlrU7AaCyI3EEgbRwYCCzNKR5tVqzGEXo1nYNE/8L7/nVVfVn2+vR3HWOy+XfT93jnVJm+GEAAAAASUVORK5CYII=") repeat scroll center center;
//background: #{$color-background-main-headings} url("#{$nibblepoker-background-root}/3px-tile-0.4.png") repeat scroll center center;
}
}
.bkgd-transparent {
background: rgba(0, 0, 0, 0);

View File

@ -9,7 +9,10 @@ scrolling utilities
media
modal
code
borders
custom elements
* wedge
* ???
bkgd color if grid disabled