| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- /*************************************************
- * Wowchemy's Core Style
- **************************************************/
- html {
- font-family: $sta-font-body, sans-serif;
- font-size: #{$sta-font-size-small}px;
- color: rgba(0, 0, 0, 0.8);
- line-height: 1.65;
- // Offset anchor scrolling by height of desktop fixed header.
- scroll-padding-top: 70px;
- @include media-breakpoint-down(md) {
- // Offset anchor scrolling by height of mobile fixed header.
- scroll-padding-top: 50px;
- }
- }
- @media screen and (min-width: 58em) {
- html {
- font-size: #{$sta-font-size}px;
- }
- }
- body {
- font-family: inherit;
- font-size: 1rem;
- line-height: inherit;
- color: inherit;
- background-color: $sta-background;
- padding-top: 0;
- counter-reset: captions;
- // Prevent horizontal scrollbar in case a site admin adds fixed width content without applying `max-width: 100%`.
- overflow-x: hidden;
- // Offset body content by fixed navbar height.
- margin-top: 70px;
- @include media-breakpoint-down(md) {
- // Offset body content by fixed navbar height.
- margin-top: 50px;
- }
- }
- body.no-navbar {
- margin-top: 0 !important;
- scroll-padding-top: 0 !important;
- }
- // PAGE LAYOUT
- // Designed to push footer to bottom of viewport for short pages.
- .page-wrapper {
- // Min height = viewport height - navbar height
- min-height: calc(100vh - 70px);
- display: grid;
- grid-template-rows: auto 1fr auto;
- grid-template-columns: 100%;
- }
- @include media-breakpoint-down(md) {
- .page-wrapper {
- min-height: calc(100vh - 50px);
- }
- }
- .page-wrapper.no-navbar {
- min-height: 100vh;
- }
- .page-header,
- .page-footer {
- flex-shrink: 0;
- }
- .page-body {
- flex-grow: 1;
- }
- // UTILITIES
- .max-width-640 {
- max-width: 640px;
- }
- .margin-auto {
- margin-left: auto;
- margin-right: auto;
- }
- .center-text {
- text-align: center;
- }
- /* Body text */
- p {
- margin-top: 0;
- margin-bottom: 1rem;
- }
- /* Lists */
- ul,
- ol,
- dl {
- margin-top: 0;
- margin-bottom: 1rem;
- }
- li > p {
- // Override the default paragraph margin for paragraphs within lists.
- margin-bottom: 0;
- }
- ul.task-list {
- list-style: none;
- }
- ul.task-list li input[type='checkbox'] {
- margin-right: 0.5rem;
- }
- .emoji-list ul {
- list-style-type: none;
- }
- /* Navigation bar text */
- .navbar-light {
- font-family: $sta-font-nav, sans-serif;
- font-weight: 400;
- line-height: 1.25;
- text-rendering: optimizeLegibility;
- }
- /* Headings */
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- font-family: $sta-font-heading, sans-serif;
- font-weight: 400;
- margin-top: 1rem;
- margin-bottom: 0.5rem;
- line-height: 1.25;
- color: #313131;
- text-rendering: optimizeLegibility;
- /* Ensure long words do not overflow into content. */
- overflow-wrap: break-word;
- word-wrap: break-word;
- word-break: break-word;
- /* Add a hyphen where the word breaks (use `­` to insert a soft-hyphen in a word). */
- -webkit-hyphens: manual;
- -ms-hyphens: manual;
- hyphens: manual;
- }
- h1 {
- font-size: 2.25rem;
- }
- h2 {
- margin-top: 1rem;
- font-size: 1.5rem;
- }
- h3 {
- font-weight: 700;
- margin-top: 1.5rem;
- font-size: 1.25rem;
- }
- h4,
- h5,
- h6 {
- font-weight: 700;
- margin-top: 1rem;
- font-size: 1rem;
- }
- a,
- h3.article-title a:hover {
- color: $sta-link;
- text-decoration: none;
- transition: color 0.6s ease;
- }
- a:hover,
- a:focus {
- color: $sta-link-hover;
- }
- .dark a,
- .dark h3.article-title a:hover {
- color: $sta-dark-link;
- }
- .dark a:not(.btn):hover,
- .dark a:not(.btn):focus {
- color: $sta-dark-link-hover;
- }
- pre,
- code {
- font-family: $sta-font-mono, monospace;
- color: #c7254e;
- /* Match bg of default highlight theme. */
- background-color: rgb(248, 248, 248);
- }
- pre {
- margin: 0 0 1rem 0;
- /* Match bg of default highlight theme. */
- border-color: rgb(248, 248, 248);
- font-size: 0.7rem;
- border-radius: 4px;
- }
- pre code {
- white-space: pre; /* Override Bootstrap to preserve line breaks in code. */
- overflow-x: auto;
- }
- hr {
- border: 0;
- height: 1px;
- background: #333;
- background-image: linear-gradient(to right, #ccc, #333, #ccc);
- }
- /* Quotes */
- blockquote {
- padding: 0.5rem 1rem;
- margin: 0.8rem 0;
- color: #7a7a7a;
- border-left: 0.25rem solid #e5e5e5;
- }
- blockquote p:last-child {
- margin-bottom: 0;
- }
- @media (min-width: 30em) {
- blockquote {
- padding-right: 5rem;
- padding-left: 1.25rem;
- }
- }
- mark,
- .mark {
- // Inherit color for dynamic light/dark compatibility.
- color: inherit;
- }
- .space-below {
- margin-bottom: 50px;
- }
- @media screen and (max-width: 768px) {
- .space-below {
- margin-bottom: 10px;
- }
- }
- .universal-wrapper {
- margin: 0 auto;
- padding-right: 1rem;
- padding-left: 1rem;
- padding-top: 0.1rem;
- width: 100%;
- }
- @media only screen and (min-width: 1001px) {
- .universal-wrapper {
- width: 1000px;
- }
- }
- small,
- .small {
- font-size: 0.75em;
- }
- .responsive-wrap iframe {
- max-width: 100%;
- }
|