setto.basspistol.com/_sass/_elements.scss

334 lines
6.1 KiB
SCSS
Raw Normal View History

2020-08-03 21:40:11 +02:00
// Basic Elements
h1, h2, h3, h4, h5, h6 {
font-family: _font(title);
}
h1 {
font-size: 2.5em;
}
h2 {
2020-09-11 19:02:26 +02:00
font-size: 1.75em;
2020-08-03 21:40:11 +02:00
}
h3 {
font-size: 1.5em;
}
strong {
2020-09-11 19:02:26 +02:00
font-weight: 500;
2020-08-03 21:40:11 +02:00
}
a {
text-decoration-style: wavy;
text-decoration-color: transparent;
color: var(--accent2);
2020-09-11 19:02:26 +02:00
-moz-transition: all var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
-webkit-transition: all var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
-ms-transition: all var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
transition: all var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
2020-08-03 21:40:11 +02:00
}
a:hover {
color: var(--accent1);
2020-08-03 21:40:11 +02:00
text-decoration-style: wavy;
text-decoration-color: unset;
}
.center {
text-align: center;
}
2020-08-03 21:40:11 +02:00
// Buttons
.button {
background-color: var(--accent2);
2020-08-03 21:40:11 +02:00
padding: 1em;
2020-09-11 19:02:26 +02:00
display: inline-block;
border-radius: var(--border-radius);
2020-08-03 21:40:11 +02:00
text-align: center;
text-decoration: none;
text-transform: uppercase;
font-weight: 500;
2020-09-11 19:02:26 +02:00
color: var(--bg);
-webkit-box-shadow: 0px 0px 0px -3px var(--border-alt);
-moz-box-shadow: 0px 0px 0px -3px var(--border-alt);
box-shadow: 0px 0px 0px -3px var(--border-alt);
-webkit-transition: all var(--anim-speed) ease-in-out;
-moz-transition: all var(--anim-speed) ease-in-out;
-ms-transition: all var(--anim-speed) ease-in-out;
transition: all var(--anim-speed) ease-in-out;
2020-08-03 21:40:11 +02:00
}
.button:hover {
background-color: var(--accent1);
color: var(--bg);
2020-09-11 19:02:26 +02:00
-webkit-box-shadow: 0px 11px 10px -3px var(--border-alt);
-moz-box-shadow: 0px 11px 10px -3px var(--border-alt);
box-shadow: 0px 11px 10px -3px var(--border-alt);
-webkit-transition: all var(--anim-speed) ease-in-out;
-moz-transition: all var(--anim-speed) ease-in-out;
-ms-transition: all var(--anim-speed) ease-in-out;
transition: all var(--anim-speed) ease-in-out;
}
.button:active {
-webkit-box-shadow: 0px 0px 0px -3px var(--border-alt);
-moz-box-shadow: 0px 0px 0px -3px var(--border-alt);
box-shadow: 0px 0px 0px -3px var(--border-alt);
2020-08-03 21:40:11 +02:00
}
2020-09-11 19:02:26 +02:00
.normal-section {
2020-08-03 21:40:11 +02:00
display:flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
2020-09-11 19:02:26 +02:00
-webkit-box-shadow: unset;
-moz-box-shadow: unset;
box-shadow: unset;
2020-08-03 21:40:11 +02:00
h2 {
flex: 0 0 100%;
margin: 20px;
}
2020-09-11 19:02:26 +02:00
p {
margin-top: 20px;
}
ul{
width: 100%;
}
.icon {
flex: 0 0 100px;
margin: 0 0 20px 0;
display: inline-block;
width: 100px;
height: 100px;
border-radius: 200px;
font-size: 40px;
line-height: 100px;
text-align: center;
}
2020-08-03 21:40:11 +02:00
img {
width:100%;
height: 100%;
object-fit: cover;
2020-09-11 19:02:26 +02:00
border-radius: var(--border-radius);
2020-08-03 21:40:11 +02:00
}
}
// icon
.label {
display: none;
}
.icon {
flex: 0 0 45px;
margin:20px;
font-size: 45px;
border-radius: 100px;
width: 100px;
height: 100px;
line-height: 100px;
border: 1px solid var(--accent2);
2020-08-03 21:40:11 +02:00
text-align: center;
text-decoration: none;
2020-09-11 19:02:26 +02:00
-moz-transition: border var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
-webkit-transition: border var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
-ms-transition: border var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
transition: border var(--anim-speed) ease-in-out, color var(--anim-speed) ease-in-out;
2020-08-03 21:40:11 +02:00
}
.icon:hover {
border: 1px solid var(--accent1);
2020-08-03 21:40:11 +02:00
}
.small {
border-radius: 80px;
width: 70px;
height: 70px;
line-height: 70px;
font-size: 45px;
margin-left: 0;
}
.smaller {
border-radius: 30px;
width: 30px;
height: 30px;
line-height: 30px;
font-size: 18px;
margin: 10px 10px 10px 0;
}
// Content Author
#author {
flex: 0 0 280px;
margin: 0;
2020-08-03 21:40:11 +02:00
.date {
font-size:.85em;
}
.author-image {
margin-right: 10px;
background-repeat: no-repeat;
background-size:cover;
border-radius:150px;
width:150px;
height:150px;
}
}
2020-09-11 19:02:26 +02:00
.info{
2020-08-03 21:40:11 +02:00
padding: 40px;
2020-09-11 19:02:26 +02:00
margin: auto;
.info-pages {
padding-top: 40px;
max-width: var(--max-width);
2020-08-03 21:40:11 +02:00
margin: auto;
}
p {
margin: 20px 0;
}
2020-08-04 12:07:59 +02:00
h2, h3, h4, h5, h6 {
text-align: left;
}
}
.news, .links {
margin-top: 40px;
padding: 0;
display: flex;
flex-wrap: wrap;
h2 {
flex: 0 0 100%;
margin-bottom: 20px;
}
> div {
background-size: cover;
2020-09-11 19:02:26 +02:00
background-repeat: no;
2020-08-04 12:07:59 +02:00
background-position: center center;
flex: 1 1 512px;
min-height: 80vh;
padding: 40px;
box-sizing: border-box;
text-align: left;
}
.description {
h2, p, a {
text-align: center;
}
p {
margin-top: 20px;
}
p:last-child {
2020-08-04 17:52:38 +02:00
margin-bottom: 40px;
2020-08-04 12:07:59 +02:00
}
min-height: unset;
}
}
.news:nth-child(even), .links:nth-child(even) {
flex-direction: row-reverse;
}
.links {
> div {
min-height: unset;
}
2020-08-04 17:52:38 +02:00
2020-08-04 12:07:59 +02:00
}
.linksbg {
background-size: 100%;
background: var(--bg);
background: linear-gradient(180deg, var(--bg) 26%, var(--accent2-alt) 100%);
2020-08-04 12:07:59 +02:00
2020-09-11 19:02:26 +02:00
}
.front-section {
flex-direction: row-reverse;
-webkit-box-shadow: unset;
-moz-box-shadow: unset;
box-shadow: unset;
padding: 0;
display: flex;
flex-wrap: wrap;
p, h1, h2, h3, h4 {
text-align: left;
margin-top: 20px;
max-width: 570px;
}
p:last-child {
margin-bottom: 40px;
}
> div {
background-size: cover;
background-repeat: no;
background-position: center center;
flex: 1 1 380px;
min-height: 50vh;
padding: 20px;
box-sizing: border-box;
text-align: left;
}
.description {
min-height: unset;
}
.container {
max-width: 460px;
margin: 0 20px 0 auto;
}
@media only screen and (max-width: 1080px) {
.container {
margin: 0 20px 0 20px;
}
}
}
.front-section:nth-child(even) {
flex-direction: row;
.container {
margin: 0 auto 0 20px;
}
@media only screen and (max-width: 1000px) {
.container {
margin: 0 20px 0 20px;
}
}
}
#contact {
padding: 20px;
> div {
max-width: var(--max-width);
margin: auto;
padding: 40px 20px;
}
h2 {
padding-top: 20px;
}
}
.normal-section {
display:flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
-webkit-box-shadow: unset;
-moz-box-shadow: unset;
box-shadow: unset;
2020-08-03 21:40:11 +02:00
}