Files
spring-net/website/src/styles/_bulma.scss
Marko Lahma 909481644d Add website (#234)
* Add website

* update packages

* remove references to obsolete services

* build reference documentation

* tweaks

* new tweaks
2023-12-16 11:08:23 +02:00

260 lines
4.6 KiB
SCSS

// Bulma Overrides
.has-background-light {
background-color: $backgroundLight !important;
}
.navbar {
padding: 5px 0;
}
.navbar-menu {
font-weight: 500;
font-family: $fontFamilySpecial;
.navbar-link {
font-size: 0.95rem;
color: $color;
}
.navbar-link:not(.is-arrowless) {
padding-right: 2rem;
}
.navbar-link:not(.is-arrowless)::after {
border-left: 2px solid $color;
border-bottom: 2px solid $color;
border-radius: 1px;
height: 0.5rem;
width: 0.5rem;
}
.navbar-dropdown {
font-family: $fontFamily;
font-size: 1rem;
border: 0 none;
padding: 1rem;
box-shadow: 0 5px 30px 0 rgb(108 135 135 / 50%);
}
.navbar-item {
color: $color;
}
.is-link {
color: $linkColor;
}
div.navbar-item {
font-size: 0.8rem;
}
}
.navbar.is-transparent .navbar-dropdown a.navbar-item:focus,
.navbar.is-transparent .navbar-dropdown a.navbar-item:hover {
color: $secondaryColor;
}
a.navbar-item:focus,
a.navbar-item:focus-within,
a.navbar-item:hover,
a.navbar-item.is-active {
color: $secondaryColor;
}
.has-dropdown {
& > a.navbar-item:focus,
& > a.navbar-item:focus-within,
& > a.navbar-item:hover,
& > a.navbar-item.is-active {
color: $color;
}
}
// Extend Bulma
.box.no-shadow {
box-shadow: none !important;
}
.has-bigest-border-top {
border-top: 4px solid $backgroundLight;
}
.has-big-border-top {
border-top: 2px solid $borderColor;
}
.has-big-border-bottom {
border-bottom: 2px solid $borderColor;
}
.has-big-border-bottom-light {
border-bottom: 2px solid $backgroundLight;
}
.has-border-top {
border-top: 1px solid $borderColor;
}
.has-border-bottom {
border-bottom: 1px solid $borderColor;
}
.has-big-border-dark-top {
border-top: 2px solid $color;
}
.has-bigest-border-light {
border: 4px solid $backgroundLight;
}
.has-text-secondary {
color: $secondaryColor;
}
h1.has-icon {
position: relative;
padding-left: 50px;
padding-bottom: 14px;
img {
position: absolute;
left: 0;
top: -0px;
}
}
a.is-special-link {
font-weight: 500;
color: $linkColor;
&:hover {
color: $color;
}
}
.is-link {
color: $linkColor;
}
.button.is-spring {
overflow: hidden;
position: relative;
z-index: 0;
border: 2px solid $color;
border-radius: 0;
font-weight: bold;
text-transform: uppercase;
font-size: 0.9rem;
// height: 52px;
padding: 15px 30px;
line-height: 20px;
height: auto;
display: inline-block;
background: transparent;
transition: color 0.2s ease-in-out;
color: $color;
&:before {
z-index: -1;
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #191e1e;
transition: 0.2s ease-in-out;
transform: translateX(-101%);
}
&:hover {
color: $colorInverse;
&:before {
transform: translateX(0);
}
}
&.is-small {
padding: 4px 10px;
font-size: 0.75rem;
}
}
.button.is-white-spring {
color: $linkColor;
text-transform: uppercase;
font-weight: bold;
font-size: 0.9rem;
.icon {
margin-right: 2px !important;
height: 16px;
}
}
a.box.is-special {
position: relative;
box-shadow: none;
border-top: 6px solid $highlightColor;
border-top-left-radius: 0;
border-top-right-radius: 0;
padding: 0;
color: $color;
padding: 40px;
display: block;
transition: all 0.2s;
transform: translateY(0);
box-shadow: 0 0 0 rgb(108 135 135 / 20%);
&:focus,
&:hover {
transform: translateY(-3px);
top: -3px;
box-shadow: 0 10px 20px 0 rgb(108 135 135 / 20%);
}
}
input.input.is-special,
input.input.is-special:hover {
border: 2px solid $inputBorder;
border-radius: 0;
font-family: $fontFamily;
height: 48px;
&:focus {
border-color: $secondaryColor;
box-shadow: none;
}
&::placeholder {
color: rgb(0 0 0 / 50%);
}
}
.button.is-special {
height: 48px;
background-color: $color;
color: $colorInverse;
border: 0 none;
font-weight: bold;
text-transform: uppercase;
font-size: 0.9rem;
padding: 0 2.5rem;
border-radius: 0;
&:hover {
background-color: $secondaryColor;
}
}
.columns.is-space-between {
justify-content: space-between;
}
.tabs {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 10px;
padding-bottom: 0;
border: 0 none;
ul {
border: 0 none;
}
ul li a {
border: 0 none;
font-weight: bold;
text-transform: uppercase;
color: $color;
font-family: $fontFamilySpecial2;
font-size: 0.95rem;
padding: 14px 20px 14px;
}
li.is-active a {
background: white;
border: 0;
border-top: 4px solid $secondaryColor;
color: $color;
padding: 10px 20px 14px;
}
}