123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- /*************************************************
- * Academic's Core
- **************************************************/
- 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;
- }
- @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;
- margin-top: 70px; /* Offset body content by navbar height. */
- padding-top: 0;
- counter-reset: captions;
- }
- @include media-breakpoint-down(md) { /* Match max-width of .nav-bar query. */
- body {
- margin-top: 50px; /* Offset body content by navbar height. */
- }
- }
- body.no-navbar {
- margin-top: 0 !important;
- }
- .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;
- }
- /* 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: .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:hover,
- .dark a:focus {
- color: $sta-dark-link-hover;
- }
- img,
- video {
- height: auto;
- max-width: 100%;
- display: block;
- }
- audio {
- width: 100%;
- margin-bottom: 20px
- }
- video {
- width: 100%;
- height: auto;
- max-height: 400px;
- }
- .img-responsive {
- /* Extend Bootstrap declaration with centering. */
- margin: 0 auto;
- }
- // Center all figure images by default.
- figure img {
- @extend .margin-auto;
- }
- // Center all figure captions by default.
- figcaption {
- display: block;
- margin-top: 0.75em;
- margin-bottom: 1.65rem;
- line-height: 1.4;
- font-size: 0.76rem;
- text-align: center;
- }
- figcaption.numbered:before {
- font-weight: 700;
- text-transform: uppercase;
- content: attr(data-pre) counter(captions) attr(data-post);
- }
- figcaption.numbered {
- counter-increment: captions;
- }
- 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: .5rem 1rem;
- margin: .8rem 0;
- color: #7a7a7a;
- border-left: .25rem solid #e5e5e5;
- }
- blockquote p:last-child {
- margin-bottom: 0;
- }
- @media (min-width: 30em) {
- blockquote {
- padding-right: 5rem;
- padding-left: 1.25rem;
- }
- }
- .markup-quote {
- background-color: transparent;
- background-image: linear-gradient(to bottom, rgba(233, 231, 245, 1), rgba(233, 231, 245, 1));
- }
- .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: .75em;
- }
- .responsive-wrap iframe {
- max-width: 100%;
- }
- /*************************************************
- * Modals.
- **************************************************/
- .modal-content {
- background: $sta-background;
- }
- .modal-title {
- margin: 0; /* Override default h5 margin. */
- }
- .modal-content pre {
- margin: 0;
- }
- .modal-header {
- border: 0;
- color: rgba(0,0,0,0.8);
- }
- .modal-footer {
- border: 0;
- }
- #modal-error {
- color: red;
- }
- /*************************************************
- * Gallery.
- **************************************************/
- .gallery {
- margin: 0.5em -4px 1.5em -4px;
- font-size: 0;
- }
- a[data-fancybox] {
- text-decoration: none;
- cursor: zoom-in;
- }
- .gallery a[data-fancybox] img {
- height: 250px;
- width: auto;
- max-width: inherit;
- display: inherit;
- margin: 0;
- padding: 4px;
- box-shadow: none;
- vertical-align: inherit;
- }
- .fancybox-caption {
- font-size: 1rem;
- line-height: 1.5rem;
- text-align: center;
- }
- /*************************************************
- * Pager.
- **************************************************/
- .post-nav {
- margin-top: 1rem;
- font-size: 0.8rem;
- }
- .post-nav-item {
- hyphens: auto;
- word-wrap: break-word;
- padding: 11px 0 12px;
- width: 100%;
- }
- .post-nav-item a {
- color: #2b2b2b;
- line-height: 1.7;
- text-transform: none;
- }
- .post-nav-item .meta-nav {
- color: #767676;
- font-weight: 900;
- line-height: 2;
- text-transform: uppercase;
- }
- .dark .post-nav-item a {
- color: #ddd;
- }
- /**************************************************
- * Tags/Labels
- **************************************************/
- .badge-light {
- border: none;
- color: rgba(0,0,0,.68);
- background: rgba(0,0,0,.05);
- font-weight: normal;
- border-radius: 3px;
- padding: 5px 10px;
- margin-right: 8px;
- margin-bottom: 8px;
- }
- .article-tags > .badge-light:last-child {
- margin-right: 0;
- }
- .badge-light[href]:focus,
- .badge-light[href]:hover {
- background: rgba(0,0,0,.1);
- }
- a.badge:focus,
- a.badge:hover {
- color: rgba(0,0,0,.68);
- }
- .tag-cloud a {
- display: inline-block;
- position: relative;
- margin: 5px 10px;
- word-wrap: break-word;
- transition-duration: .2s;
- transition-property: transform;
- transition-timing-function: ease-out;
- }
- .tag-cloud a:active,
- .tag-cloud a:focus,
- .tag-cloud a:hover {
- color: $sta-primary-dark;
- transform: scale(1.2);
- }
- .dark .tag-cloud a:active,
- .dark .tag-cloud a:focus,
- .dark .tag-cloud a:hover {
- color: $sta-primary-light;
- }
- /*************************************************
- * Button size override
- *************************************************/
- .btn {
- padding: .5rem;
- font-size: .8rem;
- line-height: .9; // Anything less and multiline button text may overlap.
- border-radius: .3rem;
- }
- .btn-links .btn {
- padding: 5px .5rem 5px .5rem;
- line-height: 1;
- }
- .btn.btn-sm {
- padding: 5px .4rem 5px .4rem;
- font-size: .6rem;
- border-radius: .2rem;
- }
- /*************************************************
- * Toolbar Buttons
- **************************************************/
- .btn-toolbar .btn {
- font-size: 0.9rem;
- padding: 10px 14px 9px;
- border: none;
- }
- .btn-toolbar .btn:first-child {
- border-radius: 6px 0 0 6px;
- }
- .btn-toolbar .btn:last-child {
- border-radius: 0 6px 6px 0;
- }
- .btn-toolbar .btn.btn-primary:hover,
- .btn-toolbar .btn.btn-primary:focus {
- background-color: $sta-primary-light !important;
- }
- .btn-toolbar .btn.btn-primary:active,
- .btn-toolbar .btn.btn-primary.active {
- background-color: $sta-primary-dark !important;
- }
- .btn-primary:not(:disabled):not(.disabled).active:focus,
- .btn-primary:not(:disabled):not(.disabled):active:focus,
- .show > .btn-primary.dropdown-toggle:focus {
- box-shadow: 0 0 0 .2rem $sta-primary-light;
- }
- /*************************************************
- * Tables
- **************************************************/
- /* Based on Bootstrap's `table-responsive` style. */
- table {
- display: block;
- width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- margin-bottom: 1rem;
- font-size: 0.8rem;
- }
- table > thead > tr > th,
- table > tbody > tr > th,
- table > tfoot > tr > th,
- table > thead > tr > td,
- table > tbody > tr > td,
- table > tfoot > tr > td {
- padding: 8px;
- line-height: 1.43;
- vertical-align: top;
- border-top: 1px solid #ddd;
- }
- table > thead > tr > th {
- vertical-align: bottom;
- border-bottom: 2px solid #ddd;
- }
- table > caption + thead > tr:first-child > th,
- table > colgroup + thead > tr:first-child > th,
- table > thead:first-child > tr:first-child > th,
- table > caption + thead > tr:first-child > td,
- table > colgroup + thead > tr:first-child > td,
- table > thead:first-child > tr:first-child > td {
- border-top: 0;
- }
- table > tbody + tbody {
- border-top: 2px solid #ddd;
- }
- table table {
- background-color: #fff;
- }
- /* Table Striped */
- table > tbody > tr:nth-child(odd) > td,
- table > tbody > tr:nth-child(odd) > th {
- background-color: #f9f9f9;
- }
- /* Table Hover */
- table > tbody > tr:hover > td,
- table > tbody > tr:hover > th {
- background-color: #e5e5e5;
- }
- /*************************************************
- * Article Alerts (Shortcode) and Asides (Mmark)
- **************************************************/
- /* Style asides as Bootstrap alerts. */
- .article-style aside {
- @extend .alert;
- }
- /* Asides use <p> block element whereas alerts use <div>. */
- .article-style aside p,
- div.alert > div {
- position: relative;
- display: block;
- font-size: 1rem;
- margin-left: 2rem;
- margin-top: 0;
- margin-bottom: 0;
- }
- div.alert div > * {
- margin-bottom: .5rem; /* Use smaller paragraph spacing than usual. */
- }
- div.alert div > :last-child {
- margin-bottom: 0;
- }
- .article-style aside p::before,
- div.alert > div:first-child::before {
- position: absolute;
- top: -0.5rem;
- left: -2rem;
- font-size: 1.5rem;
- color: #209cee;
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- content: '\f05a';
- width: 1.5rem;
- text-align: center;
- }
- div.alert-warning > div:first-child::before {
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- color: #ff3860;
- content: '\f071';
- }
- .article-style aside a,
- div.alert a {
- color: currentColor;
- text-decoration: none;
- border-bottom: solid 1px currentColor;
- }
- .article-style aside,
- .alert-note {
- color: #12537e;
- background-color: #f6fbfe;
- border-color: #209cee;
- }
- .alert-warning {
- color: #cd0930;
- background-color: #fff5f7;
- border-color: #ff3860;
- }
|