File: /var/www/tana/frontend/src/assets/style/shared/_misc.scss
// Additional columns 1/5
.col-xs-1-5,
.col-sm-1-5,
.col-md-1-5,
.col-lg-1-5 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-1-5 {
width: 20%;
float: left;
}
@media (min-width: 768px) {
.col-sm-1-5 {
width: 20%;
float: left;
}
}
@media (min-width: 992px) {
.col-md-1-5 {
width: 20%;
float: left;
}
}
@media (min-width: 1200px) {
.col-lg-1-5 {
width: 20%;
float: left;
}
}
.full-wrapper {
height: 100%;
}
.v-center {
display: inline-block;
vertical-align: middle;
float: none;
}
.aspectratio {
position: relative;
height: 0;
width: 100%;
display: block;
&__item {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
&--spaced {
margin-top: 20px;
@include breakpoint-min($tablet-breakpoint) {
margin-top: 40px;
}
}
&[data-ratio="1:1"] {
padding-top: 100%;
}
&[data-ratio="10:9"] {
padding-top: 90%;
}
&[data-ratio="9:4"] {
padding-top: 44.44%;
}
&[data-ratio="16:9"] {
padding-top: 56.25%;
}
&[data-ratio="100:48"] {
padding-top: 48%;
}
&[data-ratio="100:99"] {
padding-top: 99%;
}
&[data-ratio="110:53"] {
padding-top: 48.1818%;
}
}
body {
overflow-x: hidden !important;
&.menu-open {
.menu-toggle__line1 {
transform: rotate(-45deg) translate(-3px, 3px)
}
.menu-toggle__line2 {
opacity: 0;
}
.menu-toggle__line3 {
transform: rotate(45deg) translate(-4px, -4px);
}
.navbar-nav__container {
display: block;
background-color: $primary-bg-color;
}
}
}
.transition-circle {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: z-index(transitionCircle);
overflow:hidden;
&::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) scale(2);
border-radius: 100%;
width: 75vw;
height: 75vw;
box-shadow: 0px 0px 0px 2000px $transition-circle-color;
transition: 0.6s all $easeOutCubic;
}
}
.content-wrapper,
.content-wrapper-second {
@include breakpoint-min($tablet-breakpoint) {
position: absolute;
top: 0;
left: 0;
width: 100%;
min-height: 100vh;
height: 99vh;
transition: 0.6s transform $easeInOutQuad;
}
}
.content-wrapper-second {
transform: translateX(100%);
display: none;
}
body.page-transition-starting {
.transition-circle {
&::after {
@include breakpoint-min($desktop-breakpoint) {
transform: translate(-50%, -50%) scale(1.6)
}
@include breakpoint-min($desktop-breakpoint) {
transform: translate(-50%, -50%) scale(1)
}
}
}
}
.sticky-follow {
.logo--secondary {
display: none;
}
@include breakpoint-min($tablet-breakpoint) {
position: sticky;
top: 20px;
&.js-is-sticky,
&.js-is-stuck {
.logo--secondary {
display: block;
}
}
}
}
a[href^="mailto"] {
transition: $transition-time color;
&:hover {
color: $primary-accent-color;
}
}
.full-height {
height: 100%;
}
.full-height--adjusted {
height: calc(100% - 50px);
}
.flex-center-vh {
display: flex;
align-items: center;
justify-content: center;
> div {
flex: 1;
}
}
.full-page__circle {
border: 10px solid $primary-accent-color;
background: none;
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
// html {
// height: 100%;
// }
body {
min-height: 100%;
}
#fullPageCircle {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
display: none;
@include breakpoint-min($desktop-breakpoint) {
display: block;
}
> svg {
width: 100%;
height: 100%;
}
}
.circle-part {
&--top {
transform: rotate(180deg);
}
&--bottom {
margin-top: 30px;
}
}
// Services page logo needs to be on top, otherwise it cannot be clicked because of the map going over it.
.tana-logo-alternate {
position: relative;
z-index: 2;
}
body:not([class*="theme-"]) {
@include breakpoint-min($tablet-breakpoint) {
overflow: hidden;
}
}
body.single-post,
body.blog,
body.page-template-subpage,
body.page-template-subpage-contact {
overflow: auto;
}
// Wider container on higher resolutions
.container {
@include breakpoint-min(1300) {
width: 1264px;
}
@include breakpoint-max($tablet-breakpoint) {
padding-left: 24px;
padding-right: 24px;
}
}