Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cheatsheet for theme #23

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1ae25ed
docs(example): add cheatsheet for theme
adorade Nov 11, 2022
a907595
docs(pages): redirect GitHub Pages to `/docs`
adorade Nov 11, 2022
527a0a7
docs(cheat): update color swatches
adorade Nov 12, 2022
0fe6782
docs(pages): redirect to docs folder
adorade Nov 12, 2022
4727f32
docs(pages): redirect to docs folder
adorade Nov 12, 2022
0d20bf3
Merge remote-tracking branch 'origin/main' into cheatsheet
adorade Nov 14, 2022
140c0e4
docs(color): update colors swatch
adorade Nov 14, 2022
d3f082c
Merge remote-tracking branch 'origin/main' into cheatsheet
adorade Nov 22, 2022
6e06963
docs(pma): update pma cheatsheet
adorade Nov 23, 2022
6a6eb03
docs(bs): update bootstrap cheatsheet
adorade Nov 23, 2022
dcb6d56
Merge remote-tracking branch 'origin/main' into cheatsheet
adorade Nov 24, 2022
0204b80
docs(alert): update alerts cheatsheet
adorade Nov 25, 2022
bd523a1
docs(pagination): update pagination cheatsheet
adorade Nov 25, 2022
c20ffd8
docs(component): remove spinners from pma
adorade Nov 25, 2022
abb5973
fix(margin): add margin to table cheatsheet
adorade Nov 25, 2022
d6395a4
fix(article): update margins top and bottom
adorade Nov 25, 2022
581dd08
docs(buttons): update pma button cheatsheet
adorade Nov 29, 2022
6272983
docs(card): update pma card cheatsheet
adorade Nov 29, 2022
ecd2288
docs(dropdown): update pma dropdown cheatsheet
adorade Nov 30, 2022
7047509
docs(modal): update modal cheatsheet
adorade Nov 30, 2022
081a3fa
docs(navbar): update navbar cheatsheet
adorade Nov 30, 2022
b24b740
docs(style): fix typo errors
adorade Dec 1, 2022
b64521d
Merge remote-tracking branch 'origin/main' into cheatsheet
adorade Dec 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ To build the theme or customize it with your preferences you must have **Node**,

Have a bug or a feature request? Please search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/adorade/boodark/issues/new).

## Cheatsheet

In order to check the UI elements more easily, a cheatsheet containing the phpMyadmin UI can be found at [BooDark Cheatsheet](https://adorade.github.io/boodark/docs/) (WIP).

## License

BooDark Theme is licensed under [MIT](LICENSE)
1,956 changes: 1,956 additions & 0 deletions docs/bootstrap.html

Large diffs are not rendered by default.

192 changes: 192 additions & 0 deletions docs/css/cheatsheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
/* Basic */
body {
scroll-behavior: smooth;
}

/* Cheetsheet */
.bd-heading a::before {
display: inline-block;
width: 1em;
height: 1em;
margin-right: .25rem;
content: "";
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230dcaf0' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2h1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1H2a2 2 0 0 1 2-2z'/%3E%3Cpath d='M2 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H2zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H2zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H2z'/%3E%3Cpath fill-rule='evenodd' d='M8.646 5.646a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L10.293 8 8.646 6.354a.5.5 0 0 1 0-.708zm-1.292 0a.5.5 0 0 0-.708 0l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708L5.707 8l1.647-1.646a.5.5 0 0 0 0-.708z'/%3E%3C/svg%3E");
background-size: 1em;
}

/* stylelint-disable-next-line selector-max-universal */
.bd-heading + div > * + * {
margin-top: 3rem;
}

/* Table of contents */
.bd-aside a {
padding: .1875rem .5rem;
margin-top: .125rem;
margin-left: .3125rem;
color: rgba(255, 255, 255, .65);
text-decoration: none;
}

.bd-aside a:hover,
.bd-aside a:focus {
color: rgba(255, 255, 255, .85);
background-color: rgba(140, 179, 82, .1);
}

.bd-aside .active {
font-weight: 600;
color: rgba(255, 255, 255, .85);
}

.bd-aside .btn {
padding: .25rem .5rem;
font-weight: 600;
color: rgba(255, 255, 255, .65);
border: 0;
}

.bd-aside .btn:hover,
.bd-aside .btn:focus {
color: rgba(255, 255, 255, .85);
background-color: rgba(140, 179, 82, .1);
}

.bd-aside .btn:focus {
box-shadow: 0 0 0 1px rgba(140, 179, 82, .7);
}

.bd-aside .btn::before {
width: 1.25em;
line-height: 0;
content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230dcaf0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
transition: transform .35s ease;
transform-origin: .5em 50%;
}

.bd-aside .btn[aria-expanded="true"]::before {
transform: rotate(90deg);
}

/* Examples */
.bd-example {
padding: 1.5rem;
background-color: rgba(17, 21, 26, 0.8);
}

.scrollspy-example {
position: relative;
height: 200px;
margin-top: .5rem;
overflow: auto;
}

[id="buttons"] .bd-example .btn,
[id="modal"] .bd-example .btn,
[id="tooltips"] .bd-example .btn,
[id="dropdowns"] .bd-example .btn-group,
[id="dropdowns"] .bd-example .dropdown,
[id="dropdowns"] .bd-example .dropup,
[id="dropdowns"] .bd-example .dropend,
[id="dropdowns"] .bd-example .dropstart {
margin: 0 1rem;
}

[id="buttons"] .bd-example .btn:first-child,
[id="modal"] .bd-example .btn:first-child,
[id="tooltips"] .bd-example .btn:first-child,
[id="dropdowns"] .bd-example .btn-group:first-child,
[id="dropdowns"] .bd-example .dropdown:first-child,
[id="dropdowns"] .bd-example .dropup:first-child,
[id="dropdowns"] .bd-example .dropend:first-child,
[id="dropdowns"] .bd-example .dropstart:first-child {
margin-left: 0;
}

[id="buttons"] .bd-example .btn:last-child,
[id="modal"] .bd-example .btn:last-child,
[id="tooltips"] .bd-example .btn:last-child,
[id="dropdowns"] .bd-example .btn-group:last-child,
[id="dropdowns"] .bd-example .dropdown:last-child,
[id="dropdowns"] .bd-example .dropup:last-child,
[id="dropdowns"] .bd-example .dropend:last-child,
[id="dropdowns"] .bd-example .dropstart:last-child {
margin-right: 0;
}

/* Layout */
@media (min-width: 1200px) {
body {
display: grid;
gap: 1rem;
grid-template-columns: 1fr 4fr 1fr;
grid-template-rows: auto;
}

.bd-header {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
grid-column: 1 / span 3;
}

.bd-aside,
.bd-cheatsheet {
padding-top: 3.5rem;
}

.bd-aside {
grid-area: 1 / 3;
scroll-margin-top: 3.5rem;
}

/**
* 1. Too bad only Firefox supports subgrids ATM
*/
.bd-cheatsheet,
.bd-cheatsheet section,
.bd-cheatsheet article {
display: inherit; /* 1 */
gap: inherit; /* 1 */
grid-template-columns: 1fr 4fr;
grid-column: 1 / span 2;
grid-template-rows: auto;
}

.bd-cheatsheet section,
.bd-cheatsheet section > h2 {
top: 3.5rem;
scroll-margin-top: 3.5rem;
}

.bd-cheatsheet section > h2 {
color: #0dcaf0;
}

.bd-cheatsheet section > h2::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
content: "";
background-image: linear-gradient(to bottom, rgba(33, 37, 41, 1) calc(100% - 3rem), rgba(33, 37, 41, .01));
}

.bd-cheatsheet article,
.bd-cheatsheet .bd-heading {
top: 8rem;
scroll-margin-top: 8rem;
}

.bd-cheatsheet .bd-heading {
z-index: 1;
}

.bd-footer {
grid-column: 1 / span 3;
}
}
18 changes: 18 additions & 0 deletions docs/css/icons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.row-cols-24 > * {
flex: 0 0 auto;
width: 8.3333%;
}

.icon {
width: 32px;
height: 32px;
margin-left: 0;
padding: 2rem !important;
}

.pngs .icon {
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-size: 64px;
}
53 changes: 53 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
body {
scroll-behavior: smooth;
}

.bd-header {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}

.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
color: #0dcaf0;
}

.bd-colors {
background-color: #111519;
border-radius: 0.25rem;
}

.row-cols-10 > * {
flex: 0 0 auto;
width: 10%;
}

.swatch {
display: flex;
flex-wrap: wrap;
}

.swatch-item {
display: flex;
align-items: center;
justify-content: center;
width: 86px;
height: 86px;
margin: 0.5rem;
font-size: 0.875rem;
border-radius: 50%;
}

@media (min-width: 1400px) {
.swatch-item {
width: 104px;
height: 104px;
}
}

footer i {
color: #f50057;
}
Loading