portfolios_lea-jean/assets/sass/academia/_root.scss
2022-02-02 16:09:48 +01:00

642 lines
11 KiB
SCSS

/*************************************************
* academia'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;
}
@media screen and (max-width: 1200px) { /* Match max-width of .nav-bar query. */
body {
margin-top: 50px; /* Offset body content by navbar height. */
}
}
.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;
}
/* 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;
}
img,
video {
height: auto;
max-width: 100%;
display: block;
}
video {
width: 100%;
height: auto;
max-height: 400px;
}
.img-responsive {
/* Extend Bootstrap declaration with centering. */
margin: 0 auto;
}
figcaption {
display: block;
margin-top: 0.75em;
line-height: 1.25;
font-size: 1rem;
margin-bottom: 1.65rem;
font-family: $sta-font-heading, sans-serif;
}
figcaption.numbered:before {
font-weight: 700;
text-transform: uppercase;
content: attr(data-pre) counter(captions) attr(data-post);
}
figcaption.numbered {
counter-increment: captions;
}
figcaption h4 {
display: inline;
font-size: 1rem;
font-weight: 400;
margin: 0;
}
pre,
code {
font-family: $sta-font-mono, monospace;
color: #c7254e;
background-color: #f9f2f4;
}
pre {
margin: 0 0 1rem 0;
background-color: rgb(248, 248, 248); /* Match 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;
max-width: 100%;
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;
}
/*************************************************
* Footer
**************************************************/
footer {
padding: 2rem 0;
width: 100%;
}
footer p {
font-size: 0.75rem;
}
site-footer,
footer a#back_to_top i {
color: rgba(0,0,0,0.54);
}
.dark site-footer,
.dark footer a#back_to_top i,
.dark .docs .body-footer {
color: rgba(255,255,255,0.54);
}
/**************************************************
* 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: .5;
border-radius: .3rem;
&:focus{
box-shadow: none !important;
}
}
.btn-primary{
color: $white;
}
.btn-outline-primary{
&:hover{
color: $white;
}
}
.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-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;
}
/*************************************************
* Alerts
**************************************************/
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;
}
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';
}
div.alert a {
color: currentColor;
text-decoration: none;
border-bottom: solid 1px currentColor;
}
.alert-note {
color: #12537e;
background-color: #f6fbfe;
border-color: #209cee;
}
.alert-warning {
color: #cd0930;
background-color: #fff5f7;
border-color: #ff3860;
}
/* homepage */
.hero-img{
border: 10px solid #fff;
box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px 0px;
}
/* about */
.network-icon{
a{
height: 40px;
width: 40px;
line-height: 40px;
display: block;
text-align: center;
border-radius: 50%;
background: transparent;
transition: .3s ease;
&:hover{
background: rgb(235, 235, 235);
}
}
}
.progress-bar{
position: absolute;
height: 10%;
background: $sta-primary;
left: 0;
bottom: 0;
z-index: -1;
}
.card .card-text{
padding-left: 0 !important;
}
.section-heading h1{
position: relative;
text-transform: uppercase;
letter-spacing: 4px;
display: inline-block;
font-size: 30px;
&::before{
content: '';
position: absolute;
z-index: 99;
background-color: $sta-primary;
width: 6px;
height: 6px;
border-radius: 100%;
left: -17px;
top: 15px;
}
&::after{
content: '';
position: absolute;
z-index: 99;
background-color: $sta-primary;
width: 6px;
height: 6px;
border-radius: 100%;
right: -17px;
top: 15px;
}
}
.section-heading p{
text-transform: uppercase;
}