cv-online/scss/section.scss

383 lines
6.0 KiB
SCSS
Raw Normal View History

2018-05-15 23:18:54 +00:00
$ArticleMaxWidth: 800px;
@keyframes UnwrapHeader {
from {
2018-05-17 09:41:09 +00:00
margin-left: 40%;
margin-right: 40%;
2018-05-15 23:18:54 +00:00
}
to {
margin-left: 40px;
margin-right: 40px;
}
}
2018-05-17 10:38:41 +00:00
$ArticleBorderWidth: 4px;
$ArticlePadding: 20px;
$ArticleBorderRadius: 20px;
$ArticleFinalMargins: #{$ArticleBorderWidth + $ArticleBorderRadius};
2018-05-15 23:18:54 +00:00
#section-main{
position: absolute;
left: 20px;
right: 0px;
2018-05-17 09:41:09 +00:00
transition-property: left;
transition-duration: 0.2s;
transition-delay: 0.1s;
2018-05-15 23:18:54 +00:00
header{
margin: 30px 30px 60px 30px;
color: $ClrWhite;
font-family: $FontText;
font-style: italic;
font-size: 1.3em;
text-align: center;
text-shadow: 0 0 10px $ClrTrueBlack;
border-style: solid;
border-width: 0 5px 0 5px;
border-color: $ClrWhite;
border-radius: 20px;
overflow: hidden;
2018-05-17 10:38:41 +00:00
animation: UnwrapHeader 1.5s;
2018-05-15 23:18:54 +00:00
white-space: nowrap;
}
article{
margin-left: auto;
margin-right: auto;
2018-05-17 10:38:41 +00:00
padding: $ArticlePadding;
2018-05-15 23:18:54 +00:00
padding-top: 0;
margin-bottom: 10vh;
color: $ClrBlack;
box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
border-style: solid;
2018-05-17 10:38:41 +00:00
border-width: $ArticleBorderWidth;
2018-05-15 23:18:54 +00:00
border-color: #FFFFFF;
2018-05-17 10:38:41 +00:00
border-radius: $ArticleBorderRadius;
2018-05-15 23:18:54 +00:00
background-color: $ClrWhite;
max-width: $ArticleMaxWidth;
font-size: 0.6em;
line-height: 1.3em;
2018-05-17 09:41:09 +00:00
transition-property: border-radius;
transition-duration: 0.5s;
2018-05-15 23:18:54 +00:00
h1:first-child{
margin: 0;
2018-05-17 10:38:41 +00:00
margin-top: -$ArticleFinalMargins;
margin-left: -$ArticleFinalMargins;
2018-05-15 23:18:54 +00:00
width: 100%;
2018-05-17 10:38:41 +00:00
padding: 0.6em $ArticleFinalMargins;
2018-05-15 23:18:54 +00:00
2018-05-17 10:38:41 +00:00
border-radius: $ArticleBorderRadius $ArticleBorderRadius 0 0;
2018-05-15 23:18:54 +00:00
background-color: #215D9C;
2018-05-17 09:41:09 +00:00
background-image: url("#{$ImgPath}/ui/stripes.png");
2018-05-15 23:18:54 +00:00
color: $ClrWhite;
font-family: $FontTitle;
font-weight: bold;
font-size: 1.7em;
text-align: left;
letter-spacing: -0.03em;
2018-05-17 09:41:09 +00:00
transition-property: border-radius;
transition-duration: 0.5s;
2018-05-15 23:18:54 +00:00
img{
border: none;
float: right;
display: inline;
margin: auto;
height: 1em;
}
}
h2{
2018-05-17 10:38:41 +00:00
margin: 0 -$ArticleFinalMargins;
padding: 0.4em $ArticleFinalMargins;
2018-05-15 23:18:54 +00:00
border-top: 1px solid #d5d5d5;
border-bottom: 1px solid #d5d5d5;
2018-05-17 09:41:09 +00:00
background-image: url("#{$ImgPath}/ui/stripes.png");
2018-05-15 23:18:54 +00:00
color: $ClrText;
font-family: $FontTitle;
// padding-left: 10px;
font-size: x-large;
a, a:visited{
color: $ClrText;
}
}
h3
{
color: $ClrText;
font-family: $FontTitle;
2018-05-17 10:38:41 +00:00
margin-bottom: 0.5em;
2018-05-15 23:18:54 +00:00
font-size: large;
}
2018-05-17 10:38:41 +00:00
h4
{
color: $ClrText;
font-family: $FontTitle;
margin-bottom: 0.5em;
}
2018-05-15 23:18:54 +00:00
hr
{
2018-05-17 10:38:41 +00:00
margin-left: -$ArticleFinalMargins;
width: calc(100% + #{$ArticleFinalMargins + $ArticleFinalMargins});
2018-05-15 23:18:54 +00:00
border-style: solid;
border-width: 5px;
border-color: rgba(0,0,0,0.1);
border-radius: 1px;
}
blockquote{
position:relative;
padding: 1px 20px;
margin: 10px;
background-color: #eee;
border-radius: 0.2em;
font-style: italic;
}
blockquote:after {
display:block;
position:absolute;
content:"";
width: 0;
top: 20px;
left: -20px;
border-style: solid;
border-width: 15px 20px 15px 0;
border-color: transparent #eee;
}
img, video, iframe{
&:not(.raw){
max-height: 150px;
width: auto;
vertical-align: middle;
margin: 5px;
border: 3px solid black;
border-radius: 2px;
transition-property: border-color;
transition-duration: 0.3s;
}
}
video{
width: 80%;
height: auto;
}
a{
color: #215D9C;
img:hover, video:hover, iframe:hover{
border-color: #808080;
}
}
a:hover{
color: #2B7ACC;
}
strong{
color: #2F3A45;
}
img.nostyle{
height: auto;
border: 0;
border-radius: 0;
}
img.fill{
width: 100%;
height: auto;
}
.cinema{
margin: 0;
2018-05-17 10:38:41 +00:00
margin-left: -$ArticleFinalMargins;
2018-05-15 23:18:54 +00:00
width: 100%;
2018-05-17 10:38:41 +00:00
padding: 10px $ArticleFinalMargins;
2018-05-15 23:18:54 +00:00
border-top: 1px solid #000;
border-bottom: 1px solid #000;
color: $ClrWhite;
2018-05-17 09:41:09 +00:00
background-image: url("#{$ImgPath}/ui/bgdark.png");
box-shadow: 0px 0px 10px #000 inset;
2018-05-15 23:18:54 +00:00
img, video, iframe{
border-width: 1px;
border-radius: 0;
margin: -1px 4px 0px -5px;
border-left: 5px solid #000;
border-right: 5px solid #000;
}
a{
img:hover, video:hover, iframe:hover{
border-color: #333;
}
}
2018-05-17 10:01:21 +00:00
&:first-child{
2018-05-17 10:38:41 +00:00
margin-top: -$ArticleFinalMargins;
2018-05-17 10:01:21 +00:00
padding-top: 20px;
border-radius: 20px 20px 0 0;
}
&:last-child{
2018-05-17 10:38:41 +00:00
margin-bottom: -$ArticleFinalMargins;
2018-05-17 10:01:21 +00:00
padding-bottom: 20px;
border-radius: 0 0 20px 20px;
}
2018-05-15 23:18:54 +00:00
}
2018-05-17 10:01:21 +00:00
code {
font-size: 0.9em;
2018-05-17 10:38:41 +00:00
padding: 0 0.3em;
2018-05-17 10:01:21 +00:00
border-radius: 5px;
background-color: #ccc;
border: 1px solid #888;
2018-05-15 23:18:54 +00:00
}
2018-05-17 10:01:21 +00:00
// Code blocks
2018-05-17 10:38:41 +00:00
pre {
2018-05-17 10:01:21 +00:00
border-top: 1px solid #000;
border-bottom: 1px solid #000;
2018-05-17 10:38:41 +00:00
padding: 0.5em;
border-radius: 10px;
display: inline-block;
vertical-align: top;
margin: 0;
2018-05-15 23:18:54 +00:00
2018-05-17 10:01:21 +00:00
color: $ClrWhite;
2018-05-15 23:18:54 +00:00
2018-05-17 10:01:21 +00:00
background-image: url("#{$ImgPath}/ui/bggray.png");
box-shadow: 0px 0px 10px #000 inset;
2018-05-15 23:18:54 +00:00
2018-05-17 10:01:21 +00:00
code, pre{
margin-bottom: 0px;
2018-05-17 10:38:41 +00:00
padding: 0;
border-radius: 0;
background: none;
border: none;
2018-05-15 23:18:54 +00:00
}
}
2018-05-17 10:38:41 +00:00
> pre{
display: block;
margin-left: -$ArticleFinalMargins;
width: 100%;
padding: 10px $ArticleFinalMargins;
}
2018-05-15 23:18:54 +00:00
2018-05-17 10:01:21 +00:00
2018-05-15 23:18:54 +00:00
figure{
margin-bottom: 15px;
figcaption{
font-size: small;
font-style: italic;
text-decoration: none;
}
}
ul{
margin-top: 5px
}
li{
margin-bottom: 5px;
}
a.gototop{
display: block;
width: 100%;
height: 28px;
2018-05-17 09:41:09 +00:00
background-image: url(#{$ImgPath}/ui/gototop.svg);
2018-05-15 23:18:54 +00:00
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
.center{
text-align: center;
}
.canvas-container {
display: flex;
width: 100%;
flex-wrap: wrap;
justify-content: space-around;
> * {
align-self: center;
}
}
img.avatar {
border: none;
border-radius: 100%;
max-height: 200px;
}
2018-05-15 23:18:54 +00:00
}
}
body[data-width="small"]{
#section-main{
article{
max-width: 100%;
border-radius: 0;
h1{
border-radius: 0;
}
}
}
}
.spacer
{
height: 60vh;
}