.page-header {
.github-edit {
color: $nav-child-link-color;
float: right;
&:hover {
color: $link-color;
svg {
fill: $link-color ;
}
}
svg {
display: inline;
vertical-align: top;
width: 1.5 * $spacing-unit;
height: 1.5 * $spacing-unit;
fill: $nav-child-link-color;
}
}
h1 {
margin-right: 3.5 * $spacing-unit;
}
}
.avatar {
border-radius: 50%;
width: 1.5 * $spacing-unit;
height: 1.5 * $spacing-unit;
}
ul.metadata {
flex-wrap: wrap;
list-style: none;
display: flex;
margin: 0!important;
padding: 0.125rem 0 0!important;
>li{
flex-basis: auto;
align-items: center;
list-style: none;
display: flex;
&:not(:last-of-type):not(:only-of-type)::after {
content: "•";
padding-left: 5px;
padding-right: 5px;
color: $grey-500;
}
&::before {
content: "";
}
}
}
[data-toogle] {
cursor: pointer;
}
.modal {
display: none;
position: fixed;
z-index: 100;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
.modal-content {
border: $border $border-color;
position: relative;
background-color: $body-background-color;
width: unquote("min(500px, calc(100vw - 40px))");
padding: 0;
margin: 40px auto;
animation-name: animatetop;
animation-duration: 0.4s;
.modal-header {
padding: 2px $spacing-unit;
margin-left: 1.5 * $spacing-unit;
h2, .close {
font-size: 1.5 * $spacing-unit !important;
margin-top: 1.5 * $spacing-unit;
margin-bottom: 1.5 * $spacing-unit;
line-height: 1;
}
h2 {
margin-right: 1.5 * $spacing-unit;
}
.close {
color: $nav-child-link-color;
float: right;
font-weight: bold;
cursor: pointer;
&:hover {
color: $link-color;
}
}
}
div.modal-body {padding: 2px $spacing-unit;}
.modal-footer {
padding: 2px $spacing-unit;
color: $body-text-color;
}
ul.modal-body {
padding: 0;
margin: 0;
>li{
padding: 10px;
margin: -1px;
border-width: 1px 1px 1px 3px;
border-style: solid;
border-color: $border-color;
&:hover {
border-left-color: $link-color;
}
&::before {
content: '';
}
>a {
color: $body-text-color;
text-decoration: none;
border: 0;
background: none;
display: flex;
align-items: center;
&:hover {
color: $link-color;
}
img {
margin-right: 10px;
}
}
}
}
}
}
/* Add Animation */
@keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 0; opacity: 1}
}
figure {
border: $border $border-color;
border-radius: $border-radius;
display: table;
figcaption {
background-color: $code-background-color;
padding: 8px;
}
img{
vertical-align: middle;
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
}
}
.ont-404 svg {
fill: $body-text-color;
width: 100%;
}
.site-button img {
height: 20px;
vertical-align: middle;
margin-left: 10px;
width: auto;
}
.site-button svg {
height: 20px;
vertical-align: middle;
margin-left: 10px;
width: 20px;
}
.animated {
svg {
width: 100px;
display: block;
margin: 40px auto 0;
}
&.pause {
svg .success, svg .error, svg .loading {
display: none;
}
}
&.success {
color: $green-500;
fill: $green-500;
svg .error, svg .loading, svg .pause {
display: none;
}
}
&.error {
color: $red-500;
fill: $red-500;
svg .success, svg .loading, svg .pause {
display: none;
}
}
&.loading {
svg .success, svg .error, svg .pause {
display: none;
}
svg .path {
stroke-dasharray: 269%;
stroke-dashoffset: 0;
-webkit-animation: loading 1s cubic-bezier(1,1,1,1) 0s infinite;
animation: loading 1s cubic-bezier(1,1,1,1) 0s infinite;
transform-origin: 50% 50%;
-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50px 50px;
}
}
&.complete {
svg .path {
stroke-dasharray: 314%;
stroke-dashoffset: 0;
}
}
.path {
stroke-dasharray: 1000;
stroke-dashoffset: 0;
&.circle {
-webkit-animation: dash .9s ease-in-out;
animation: dash .9s ease-in-out;
}
&.line {
stroke-dashoffset: 1000;
-webkit-animation: dash .9s .35s ease-in-out forwards;
animation: dash .9s .35s ease-in-out forwards;
}
&.check {
stroke-dashoffset: -100;
-webkit-animation: dash-check .9s .35s ease-in-out forwards;
animation: dash-check .9s .35s ease-in-out forwards;
}
}
p {
text-align: center;
margin: 20px 0 60px;
font-size: 1.25em;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes loading {
0% {
stroke-dasharray: 44% 269%;
stroke-dashoffset: 0%;
}
50% {
stroke-dasharray: 156%;
stroke-dashoffset: 156%;
}
100% {
stroke-dasharray: 44% 269%;
stroke-dashoffset: 314%;
}
}
@-webkit-keyframes dash {
0% {
stroke-dashoffset: 1000;
}
100% {
stroke-dashoffset: 0;
}
}
@keyframes dash {
0% {
stroke-dashoffset: 1000;
}
100% {
stroke-dashoffset: 0;
}
}
@-webkit-keyframes dash-check {
0% {
stroke-dashoffset: -100;
}
100% {
stroke-dashoffset: 900;
}
}
@keyframes dash-check {
0% {
stroke-dashoffset: -100;
}
100% {
stroke-dashoffset: 900;
}
}
@-webkit-keyframes check {
0% {
stroke-dashoffset: -110;
}
100% {
stroke-dashoffset: 0;
}
}
@keyframes check {
0% {
stroke-dashoffset: -110;
}
100% {
stroke-dashoffset: 0;
}
}
}