Skip to content

Commit

Permalink
css docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
whimsicallyson committed Sep 29, 2022
1 parent 597b592 commit 65416f8
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 241 deletions.
269 changes: 70 additions & 199 deletions docs/docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@
*/

.md-search-result__more summary {
color: #2196f3 !important;
color: #447099 !important;
}

.md-search-result mark {
color: #000000 !important;
font-weight: bold;
}

/* Search bar - black palette
*/

[data-md-color-primary=black] .md-search-result mark {
color: #fff !important;
font-weight: bold;
}

/* Global
*/
Expand Down Expand Up @@ -71,11 +78,22 @@
}

[data-md-color-primary=white] .md-typeset a {
color: #4c83b6;
color: #447099;
}

[data-md-color-primary=white] .md-typeset a:hover {
text-decoration: underline;
color: #447099;
}

[data-md-color-primary=black] .md-typeset a {
color: #447099;
font-weight: bold;
}

[data-md-color-primary=black] .md-typeset a:hover {
text-decoration: underline;
color: #447099;
}

.admonition-title {
Expand All @@ -87,11 +105,7 @@
}

.md-typeset .superfences-tabs>label:hover {
color: #4c83b6 !important;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
background-color: #4c83b6;
color: #447099 !important;
}

.md-footer {
Expand All @@ -107,51 +121,71 @@
.md-footer-meta {
background-color: #fdfdfd;
border-top: 1px solid rgba(0, 0, 0, 0.15);
color: #404040;
font-weight: 400;
}

.md-footer-copyright__highlight {
color: #6F6B6B;
font-weight: 400;
font-size: 0.65rem;
padding-top: 15px;
}

.md-footer-meta.md-typeset a {
color: #6F6B6B !important;
font-weight: 400;
}

.md-footer-nav {
background-color: #fff;
color: #000;
[data-md-color-primary=black] .md-footer {
background-color: #000 !important;
color: #fff !important;
}

.md-typeset .tabbed-set>label {
font-size: .64rem !important;
[data-md-color-primary=black] .md-footer__direction {
color: #fff;
font-size: .65rem;
}

.md-typeset .tabbed-set>label:hover {
color: #4c83b6 !important;
[data-md-color-primary=black] .md-footer-meta {
background-color: #000;
border-top: 1px solid #fff;
font-weight: 400;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
background-color: #4c83b6;
[data-md-color-primary=black] .md-footer-copyright__highlight {
color: #fff;
font-weight: 400;
}

[data-md-color-primary=black] .md-footer-meta.md-typeset a {
color: #fff !important;
font-weight: 400;
}

.md-typeset .tabbed-set>label {
font-size: .64rem !important;
}

.md-typeset .tabbed-set>label:hover {
color: #447099 !important;
}

/* Sidebar
*/

.md-nav__link:focus, .md-nav__link:hover, .md-nav__link:active, .md-nav__link--active, .md-nav__link:active {
color: #4c83b6 !important;
color: #447099 !important;
}

.md-nav__link--active {
font-weight: bold;
}

[data-md-color-primary=black] .md-nav {
color: #fff;
}

[data-md-color-primary=white] .md-nav__link--active, [data-md-color-primary=white] .md-nav__link:active {
color: #2196f3;
color: #447099;
}


Expand All @@ -169,148 +203,32 @@ h2.divider {
max-width: 650px;
}

/* Home page grid
*/

.feature-list {
list-style: none;
padding: 0;
margin: 0;
font-size: 0;
}

.feature-list li.item {
display: inline-block;
background: white;
vertical-align: top;
width: 200px;
height: 153px;
padding: 0;
margin: 0 10px;
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}


.feature-btn {
display: block;
height: 100%;
width: 100%;
text-align: center;
position: relative;
}

.aligner {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
min-height: 24em;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}

.aligner-item {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}


.aligner-item--fixed {
-webkit-box-flex: 0;
-webkit-flex: none;
-ms-flex: none;
flex: none;
max-width: 100%;
}


.feature-btn .front {
width: 100%;
padding: 0 10px;
/* vertical-align: center; */
}

.feature-btn .front img {
height: 40px;
}

.feature-btn .front h3 {
text-transform: uppercase;
font-size: 16px;
color: #222b37;
line-height: 22px;
margin: 20px 0 0;
}

.feature-btn .back {
background-color: #75AADB;
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
padding: 10px;
opacity: 0;
transition: opacity 200ms ease;
}

.feature-btn:hover .back {
opacity: 1;
transition: opacity 200ms ease;
}

.feature-btn .back h4 {
font-size: 16px;
font-weight: 400;
color: white;
text-transform: uppercase;
line-height: 22px;
padding-bottom: 23px;
margin: 0;
padding: 0;
}

.feature-btn .back ul {
color: white;
font-size: 16px;
list-style: disc;
text-align: left;
/* margin: 0px 20px; */
font-weight: 400;
}

.feature-btn .back ul li {
margin-bottom: 0;
}

/* Code blocks
*/

p.code-title {
color: #3c3c3c;
background-color: rgba(219, 219, 219, 0.8);
margin: 1em 0 -1.2em;
padding: 0.1em 1em;
font-size: 0.9em;
font-family: "Roboto Mono","Courier New",Courier,monospace;
}

div.code-title {
color: #3c3c3c;
.code-title {
background-color: rgba(219, 219, 219, 0.8);
margin: 1em 0 -1.2em;
border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);
border-top-left-radius: 0.1rem;
border-top-right-radius: 0.1rem;
display: block;
font-size: 0.85em;
font-weight: 400;
font-family: 'Roboto Mono';
margin-top: 1em;
padding: 0.1em 1em;
font-size: 0.9em;
font-family: "Roboto Mono","Courier New",Courier,monospace;
position: relative;
}

[data-md-color-primary=black] .code-title {
background-color: black !important;
}

pre .code-noselect {
Expand All @@ -323,54 +241,7 @@ pre .code-noselect {
}

pre code::-webkit-scrollbar-thumb:hover, .codehilite pre::-webkit-scrollbar-thumb:hover {
background-color: #4c83b6 !important;
}

/* Drivers logo grid
*/

.driver-grid-row {
display: flex;
flex-direction: row;
margin: 0 50px;
}

figure.driver-card {
display: flex;
flex-direction: column;
align-items: center;
width: 300px;
margin: 20px 20px;
}

.driver-card img {
max-width: 55px;
margin: auto;
vertical-align: middle;
}

.driver-card figcaption {
color: #676767;
font-size: 13px;
text-align: center;
margin-top: 10px;
}

.faux-footer-text {
font-size: 10pt !important;
font-style: italic !important;
border-top: .05rem solid #00000012 !important;
padding: 5px 10px 0px 5px !important;
display: inline-block !important;
margin-top: 20px !important;
}

.md-typeset ul li ul {
list-style-type: circle;
}

.md-typeset ul li ul li ul {
list-style-type: square;
background-color: #447099 !important;
}

/* Permalinks
Expand Down Expand Up @@ -454,4 +325,4 @@ img.border {
margin-right: auto;
display: block;
position: relative;
}
}
4 changes: 2 additions & 2 deletions docs/docs/css/external-link-alt-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 65416f8

Please sign in to comment.