safing-web/_sass/_global.scss
2020-07-30 16:11:32 +02:00

413 lines
6.7 KiB
SCSS

* {
font-family: "Roboto";
}
body {
overflow-x: hidden;
}
footer {
background-image: url('/assets/img/footer.png');
}
.not-allowed {
cursor: not-allowed;
}
.spn-shadow {
box-shadow: 0 0px 90px 0 rgba(59, 93, 199, 0.1), 0 0px 5px 0 rgba(0, 0, 0, 0);
}
.hover:hover {
box-shadow: 0 0px 90px 0 rgba(59, 93, 199, 0.1), 0 0px 5px 0 rgba(0, 0, 0, 0);
}
.shake-horizontal {
-webkit-animation: shake-horizontal .8s cubic-bezier(.455, .03, .515, .955) both;
animation: shake-horizontal .8s cubic-bezier(.455, .03, .515, .955) both
}
@-webkit-keyframes shake-horizontal {
0%, 100% {
-webkit-transform: translateX(0);
transform: translateX(0)
}
10%, 30%, 50%, 70% {
-webkit-transform: translateX(-10px);
transform: translateX(-10px)
}
20%, 40%, 60% {
-webkit-transform: translateX(10px);
transform: translateX(10px)
}
80% {
-webkit-transform: translateX(8px);
transform: translateX(8px)
}
90% {
-webkit-transform: translateX(-8px);
transform: translateX(-8px)
}
}
@keyframes shake-horizontal {
0%, 100% {
-webkit-transform: translateX(0);
transform: translateX(0)
}
10%, 30%, 50%, 70% {
-webkit-transform: translateX(-10px);
transform: translateX(-10px)
}
20%, 40%, 60% {
-webkit-transform: translateX(10px);
transform: translateX(10px)
}
80% {
-webkit-transform: translateX(8px);
transform: translateX(8px)
}
90% {
-webkit-transform: translateX(-8px);
transform: translateX(-8px)
}
}
.spin {
animation-name: spin;
animation-duration: 21000ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.heart {
// animation: .8s infinite beatHeart;
}
@keyframes beatHeart {
0% {
transform: scale(1);
}
25% {
transform: scale(1.1);
}
40% {
transform: scale(1);
}
60% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
#menu-toggle:checked+#menu {
display: block;
}
.wiggle {
animation: wiggle .6s infinite alternate;
}
@keyframes wiggle {
0% {
transform: rotate(4deg);
}
100% {
transform: rotate(10deg);
}
}
.line {
width:100%;
text-align:center;
border-bottom: 2px solid rgba(0, 0, 0, 0.2);
line-height:0.1em;
margin:10px 0 20px;
}
.line span {
background:#fff;
padding:0 25px;
}
.support p{
color: #7d7d7d;
}
a.link {
--text-opacity: 1;
color: #667eea;
color: rgba(102, 126, 234, var(--text-opacity));
text-decoration: inherit;
background-color: transparent;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
&:hover{
opacity: .5;
transition-duration: 150ms;
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
}
.opacity-55 {
opacity: 0.55;
}
.hover\:opacity-55:hover {
opacity: 0.55;
}
.card{
max-width: auto;
}
.shadowthing{
box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0), 0 0px 90px 0 rgba(59, 93, 199, 0.1);
}
.blogwrapper{
display: grid;
grid-template-columns: repeat(1, auto);
grid-template-rows: auto;
grid-row-gap: 3px;
grid-auto-flow: row;
margin-left: auto;
margin-right: auto;
max-width: 1350px;
}
@media (min-width: 640px) {
.blogwrapper{
grid-template-columns: repeat(1, auto);
}
#icon{
margin-top: 2rem;
}
}
.nextwrapper{
display: grid;
grid-template-columns: repeat(1, auto);
grid-template-rows: auto;
grid-row-gap: 10px;
grid-auto-flow: row;
margin-left: auto;
margin-right: auto;
max-width: 1350px;
}
@media (min-width: 640px) {
.nextwrapper{
grid-template-columns: repeat(1, auto);
}
}
@media (min-width: 1024px) {
.nextwrapper{
grid-template-columns: repeat(3, minmax(auto, 445px));
.card{
max-width: 445px;
}
}
}
.dropinput {
position: absolute;
opacity: 0;
z-index: -1;
}
.tabs {
border-radius: 8px;
overflow: visible;
}
.tab {
width: 100%;
color: black;
overflow: hidden;
&-label {
display: flex;
justify-content: space-between;
padding: 1em;
background: transparent;
font-weight: bold;
cursor: pointer;
&:hover {
background: transparent;
}
&::after {
content: " ";
width: 1em;
height: 1em;
text-align: center;
transition: all .0s;
transition-timing-function: ease;
transform: rotate(-90deg);
}
}
&-content {
max-height: 0;
padding: 0 1em;
color: black;
background: transparent;
transition: all .3s;
transition-timing-function: ease-in-out;
}
&-close {
display: flex;
justify-content: flex-end;
padding: 1em;
font-size: 0.75em;
background: transparent;
cursor: pointer;
&:hover {
background: transparent;
}
}
}
#icon {
width: 35px;
position: fixed;
}
#icontwo {
width: 35px;
}
input:checked {
+ label #icon {
transform: rotate(180deg);
}
+ label #icontwo {
transform: rotate(180deg);
}
~ .tab-content {
max-height: 100vh;
padding: 1em;
}
}
.dot {
position: absolute;
right: 0;
height: 5px;
width: 5px;
background-color: #6188ff;
border-radius: 50%;
display: inline-block;
}
[tooltip] {
position: relative;
}
[tooltip]::before,
[tooltip]::after {
text-transform: none;
font-size: .9em;
line-height: 1;
user-select: none;
pointer-events: none;
position: absolute;
display: none;
opacity: 0;
}
[tooltip]::before {
content: '';
border: 5px solid transparent;
z-index: 1001;
}
[tooltip]::after {
content: attr(tooltip);
font-family: Helvetica, sans-serif;
text-align: center;
min-width: 3em;
max-width: 21em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 1ch 2ch;
border-radius: 100px;
box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
background: #333;
color: #fff;
z-index: 1000;
}
[tooltip]:hover::before,
[tooltip]:hover::after {
display: block;
}
[tooltip='']::before,
[tooltip='']::after {
display: none !important;
}
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
bottom: 100%;
border-bottom-width: 0;
border-top-color: #333;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
bottom: calc(100% + 5px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
left: 50%;
transform: translate(-50%, -.5em);
}
@keyframes tooltips-vert {
to {
opacity: .9;
transform: translate(-50%, 0);
}
}
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after {
animation: tooltips-vert 300ms ease-out forwards;
}