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

Look and Feel Updates #18

Open
wants to merge 1 commit into
base: QA
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added docs/assets/images/gsb-logo-color.webp
Binary file not shown.
Binary file added docs/assets/images/stanford-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
204 changes: 195 additions & 9 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,202 @@
/* get header font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Roboto+Slab:wght@300;400;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* theme color schemes */
:root {
--md-primary-fg-color: #820000
--md-primary-fg-color--light: #b1040ddc;
--md-primary-fg-color--dark: #820000;
--md-accent-fg-color: #b1040d9e;
--md-accent-fg-color--transparent: #b1040e0a;
}

/* accessibility requirement */
.md-typeset a {
border-bottom: .05rem dotted var(--md-primary-fg-color--light);
}

/* announce bar */
.md-banner a,
.md-banner a:focus,
.md-banner a:hover {
color: currentColor;
border-bottom: none;
}
.md-banner .icon {
margin-left: 0.2em;
}
.md-banner {
background-color: #006CB8;
color: #ffffff; /* text color */
}

.md-header-nav__button img {
height: 100px; /* Adjust based on your desired logo size */
width: auto; /* Maintain aspect ratio */
height: 100px; /* Adjust based on your desired logo size */
width: auto; /* Maintain aspect ratio */
}
.md-header__button.md-logo {
margin: 0;
padding: 0;
margin: 0;
padding: 0;
}
.md-header__button.md-logo img, .md-header__button.md-logo svg {
height: auto;
width: 10rem;
height: auto;
width: 10rem;
}

.md-header {
background-color: white;
color: black;
box-shadow: 10px 10px 20px rgba(63, 63, 63, 0.10); /* horizontal offset, vertical offset, blur radius, and color */

}

.md-search__form {
transition: background-color 0.3s; /* Smooth transition for the background color change */
transition: color 0.3s; /* Smooth transition for the background color change */
}

.md-search__form:hover {
background-color: #919191;
}

/* title style */
.md-header__title {
font-family: Source Sans Pro, sans-serif;
font-size: 1.2rem;
font-weight: 500;
color: black;
}
.md-header__title .md-ellipsis:after {
/* prevent text clipping */
content: '';
padding: 1px;
}

/* SITE TITLE */
.md-header__topic:first-child {
font-weight: 500;
color: black;
}

.md-tabs__item .md-tabs__link {
color: black; /* Sets the text color to black */
}

/* cookie consent link */
.md-footer-meta.md-typeset .consent {
color: var(--md-footer-fg-color--lighter);
}

/* don't cut words in code */
.md-typeset code { word-break: keep-all; }

/* Sherlock admonition */
.md-typeset .admonition.sherlock,
.md-typeset details.sherlock {
border-color: #8c1515;
}
.md-typeset .sherlock > .admonition-title,
.md-typeset .sherlock > summary {
background-color: #82000010;
border-color: #8c1515;
}
.md-typeset .sherlock > .admonition-title::before,
.md-typeset .sherlock > summary::before {
background-color: #8c1515;
-webkit-mask-image: var(--md-admonition-icon--sherlock);
mask-image: var(--md-admonition-icon--sherlock);
}

/* additional styles */
.chk_yes { color: darkgreen; }
.chk_no { color: darkred; }
.fl_left { float: left; }
.fl_right { float: right; }

.sw_mpi { color: darkblue; font-weight: bold; }
.sw_mpi:after { content: "mpi" }
.sw_gpu { color: darkgreen; font-weight: bold; }
.sw_gpu:after { content: "gpu" }
.sw_lic { color: darkred; font-weight: bold; }
.sw_lic:after { content: "lic" }
.sw_def { color: gray; font-weight: bold; }
.sw_def:after { content: "def" }

.number {
font-size: 1.2rem;
color: var(--md-primary-fg-color);
}
.number_desc {
font-size: 0.8em;
margin-top: -1em !important;
color: var(--md-default-fg-color--light);
}


/* pulsate */
@keyframes pulsate {
0%, 40%, 80%, 100% {
transform: scale(1);
}
20%, 60% {
transform: scale(1.15);
}
}
.pulsate {
color: #dd2e44;
animation: pulsate 1000ms infinite;
}

/* rotate */
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
.rotate {
animation: rotation 2s infinite linear;
}

/* Styling for the div element with specific padding and background color */
.pl-20 {
padding-left: 220px; /* For smaller screens or default */
}

.md:pl-30 {
padding-left: 30px; /* For medium screens and up */
}

.pt-5 {
padding-top: 5px;
}

.pb-1 {
padding-bottom: 1px;
}

.bg-cardinal-red {
background-color: #8c1515; /* Cardinal Red, commonly used in Stanford branding */
}

/* Styling for the anchor tag within the div */
.logo {
text-decoration: none; /* Removes underline from all states */
color: white; /* Text color for all states */
font-size: 20px; /* Font size */
line-height: 1; /* Leading (line height) as none */
}

/* Hover and focus states for the anchor tag */
.logo:hover, .logo:focus {
text-decoration: none; /* Keeps text underline removed on hover/focus */
}
.md-banner {
background-color: #8C1515; /* Set your desired color */
color: #ffffff; /* Adjust text color if needed */

/* Media query for applying medium-specific padding */
@media (min-width: 768px) { /* Adjusts breakpoint for medium devices */
.md:pl-30 {
padding-left: 30px;
}
}
Loading