splitted scss in multiple files
This commit is contained in:
parent
91b1509c4b
commit
21cb981141
8 changed files with 233 additions and 227 deletions
|
@ -35,7 +35,7 @@ function getFooter(){
|
||||||
<p class="center">
|
<p class="center">
|
||||||
<a href="https://www.instagram.com/jonasled1/"><i class="fa fa-instagram fa-2x"></i></a><i class="footerIconSpacer"></i>
|
<a href="https://www.instagram.com/jonasled1/"><i class="fa fa-instagram fa-2x"></i></a><i class="footerIconSpacer"></i>
|
||||||
<a href="https://www.thingiverse.com/jonasled/designs/"><i class="fa fa-cubes fa-2x"></i></a><i class="footerIconSpacer"></i>
|
<a href="https://www.thingiverse.com/jonasled/designs/"><i class="fa fa-cubes fa-2x"></i></a><i class="footerIconSpacer"></i>
|
||||||
<a href="https://paypal.me/jonasled/"><i class="fa fa-paypal fa-2x"></i></a>
|
<a href="https://paypal.me/jonasled/"><i class="fa fa-paypal fa-2x"></i></a><i class="footerIconSpacer"></i>
|
||||||
<a href="https://matrix.jonasled.de/invite/#/@jonasled:jonasled.de"><i class="fa fa-matrix-org fa-2x"></i></a>
|
<a href="https://matrix.jonasled.de/invite/#/@jonasled:jonasled.de"><i class="fa fa-matrix-org fa-2x"></i></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
64
scss/_comments.scss
Normal file
64
scss/_comments.scss
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
|
||||||
|
#newComment {
|
||||||
|
form {
|
||||||
|
input, textarea{
|
||||||
|
width: 100%;
|
||||||
|
background-color: $back-color;
|
||||||
|
color: $text-color;
|
||||||
|
border: solid $back-color-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus, textarea:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea{
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=submit]{
|
||||||
|
background-color: $accent-color;
|
||||||
|
color: #fff;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 15px;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: 0;
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
&:HOVER{
|
||||||
|
background-color: $accent-color-2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment{
|
||||||
|
display: flex;
|
||||||
|
img{
|
||||||
|
margin-right: 10px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.commentTitle{
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.commentArticle{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.commentText{
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.emailBox {
|
||||||
|
display: inline;
|
||||||
|
}
|
37
scss/_content.scss
Normal file
37
scss/_content.scss
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#content{
|
||||||
|
background-color: $back-color;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px 20%;
|
||||||
|
img {
|
||||||
|
max-width: 40%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
article{
|
||||||
|
border: 2px solid $accent-color;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 10px;
|
||||||
|
margin-right: 20px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
h2{
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child{
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#blog{
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#homeImage{
|
||||||
|
float: left;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
39
scss/_footer.scss
Normal file
39
scss/_footer.scss
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
footer{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#footerContent{
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
div{
|
||||||
|
border-right: #3d3d3d 1px solid;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerIconSpacer{
|
||||||
|
margin-left: 10px;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#blueBar{
|
||||||
|
height: 5px;
|
||||||
|
width: 100%;
|
||||||
|
background-color: $content-footer-div-color;
|
||||||
|
}
|
|
@ -3,76 +3,9 @@ body {
|
||||||
background-color: $back-color-2;
|
background-color: $back-color-2;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
font-family: 'Source Sans Pro', sans-serif;
|
font-family: 'Source Sans Pro', sans-serif;
|
||||||
}
|
|
||||||
#content{
|
|
||||||
background-color: $back-color;
|
|
||||||
width: 100%;
|
|
||||||
padding: 20px 20%;
|
|
||||||
img {
|
|
||||||
max-width: 40%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#blueBar{
|
width: calc(100% - 1px);
|
||||||
height: 5px;
|
|
||||||
width: 100%;
|
|
||||||
background-color: $content-footer-div-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a{
|
|
||||||
padding: 0;
|
|
||||||
color: $accent-color;
|
|
||||||
text-decoration:underline;
|
|
||||||
|
|
||||||
&:HOVER{
|
|
||||||
color: $accent-color-2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.footerIconSpacer{
|
|
||||||
margin-left: 10px;
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.red {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.center{
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
article{
|
|
||||||
border: 2px solid $accent-color;
|
|
||||||
border-radius: 20px;
|
|
||||||
padding: 10px;
|
|
||||||
margin-right: 20px;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
h2{
|
|
||||||
text-align: center;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#blog{
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
article:last-child{
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button{
|
button{
|
||||||
|
@ -89,174 +22,24 @@ button{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#homeImage{
|
|
||||||
float: left;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.spacer{
|
.spacer{
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footerContent{
|
a{
|
||||||
width: 100%;
|
padding: 0;
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
div{
|
|
||||||
border-right: #3d3d3d 1px solid;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: $text-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cookieinfo{
|
|
||||||
position: fixed;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
height: auto;
|
|
||||||
min-height: 21px;
|
|
||||||
z-index: 2147483647;
|
|
||||||
line-height: 21px;
|
|
||||||
padding: 8px 18px;
|
|
||||||
font-family: verdana, arial, sans-serif;
|
|
||||||
font-size: 14px;
|
|
||||||
text-align: center;
|
|
||||||
bottom: 0;
|
|
||||||
opacity: 1;
|
|
||||||
background-color: $back-color;
|
|
||||||
color: $text-color;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.cookieinfo-close{
|
|
||||||
float: right;
|
|
||||||
display: block;
|
|
||||||
padding: 5px 8px;
|
|
||||||
min-width: 100px;
|
|
||||||
margin-left: 5px;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: $accent-color;
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
&:HOVER{
|
|
||||||
background-color: $accent-color-2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cookieinfo-text {
|
|
||||||
display:block;
|
|
||||||
padding:5px 0 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cookieinfo-link{
|
|
||||||
text-decoration: none;
|
|
||||||
color: $accent-color;
|
color: $accent-color;
|
||||||
|
text-decoration:underline;
|
||||||
|
|
||||||
&:HOVER{
|
&:HOVER{
|
||||||
color: $accent-color-2;
|
color: $accent-color-2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#newComment {
|
|
||||||
form {
|
|
||||||
input, textarea{
|
|
||||||
width: 100%;
|
|
||||||
background-color: $back-color;
|
|
||||||
color: $text-color;
|
|
||||||
border: solid $back-color-2;
|
|
||||||
}
|
|
||||||
|
|
||||||
input:focus, textarea:focus {
|
.red {
|
||||||
outline: none;
|
color: red;
|
||||||
}
|
|
||||||
|
|
||||||
textarea{
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type=submit]{
|
|
||||||
background-color: $accent-color;
|
|
||||||
color: #fff;
|
|
||||||
text-transform: uppercase;
|
|
||||||
padding: 15px;
|
|
||||||
font-size: 14px;
|
|
||||||
cursor: pointer;
|
|
||||||
outline: 0;
|
|
||||||
border: 0;
|
|
||||||
|
|
||||||
&:HOVER{
|
|
||||||
background-color: $accent-color-2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment{
|
.center{
|
||||||
display: flex;
|
text-align: center;
|
||||||
img{
|
|
||||||
margin-right: 10px;
|
|
||||||
width: 100px;
|
|
||||||
height: 100px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.commentTitle{
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.commentArticle{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.commentText{
|
|
||||||
margin: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.emailBox {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
|
||||||
#homeImage{
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
#content{
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
|
||||||
#blog{
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
article {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
#banner {
|
|
||||||
a {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
img {
|
|
||||||
max-width: none;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#newestPost{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
29
scss/_mobile.scss
Normal file
29
scss/_mobile.scss
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
#homeImage{
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
#content{
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
#blog{
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
article {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
#banner {
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
max-width: none;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#newestPost{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
49
scss/cookieinfo.scss
Normal file
49
scss/cookieinfo.scss
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
.cookieinfo{
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: auto;
|
||||||
|
min-height: 21px;
|
||||||
|
z-index: 2147483647;
|
||||||
|
line-height: 21px;
|
||||||
|
padding: 8px 18px;
|
||||||
|
font-family: verdana, arial, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
bottom: 0;
|
||||||
|
opacity: 1;
|
||||||
|
background-color: $back-color;
|
||||||
|
color: $text-color;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookieinfo-close{
|
||||||
|
float: right;
|
||||||
|
display: block;
|
||||||
|
padding: 5px 8px;
|
||||||
|
min-width: 100px;
|
||||||
|
margin-left: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: $accent-color;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
&:HOVER{
|
||||||
|
background-color: $accent-color-2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookieinfo-text {
|
||||||
|
display:block;
|
||||||
|
padding:5px 0 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookieinfo-link{
|
||||||
|
text-decoration: none;
|
||||||
|
color: $accent-color;
|
||||||
|
|
||||||
|
&:HOVER{
|
||||||
|
color: $accent-color-2;
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,3 +7,8 @@
|
||||||
@import "prism";
|
@import "prism";
|
||||||
@import "sourcesanspro";
|
@import "sourcesanspro";
|
||||||
@import "header";
|
@import "header";
|
||||||
|
@import "cookieinfo";
|
||||||
|
@import "comments";
|
||||||
|
@import "mobile";
|
||||||
|
@import "footer";
|
||||||
|
@import "content";
|
Loading…
Reference in a new issue