theme/src/main.scss

323 lines
6.2 KiB
SCSS
Raw Normal View History

2019-02-02 16:17:50 +00:00
*, *:hover, *:active, *:focus{
outline: none;
}
2019-10-30 19:10:17 +00:00
@import 'theme';
2019-02-02 16:17:50 +00:00
$vikunja-font: Quicksand, "Source Sans Pro", sans-serif;
h1, h2, h3, h4, h5, h6 {
font-family: $vikunja-font;
}
.navbar-menu{
font-family: $vikunja-font;
font-weight: bold;
}
2019-10-30 20:42:39 +00:00
.hero.homepage-hero{
2019-02-02 16:17:50 +00:00
height: 100vh;
min-height: 700px;
overflow: hidden;
.hero-body {
2019-10-30 20:42:39 +00:00
background: url('../images/bg-3.jpg') no-repeat center fixed;
2019-02-02 16:17:50 +00:00
-webkit-background-size: cover;
background-size: cover;
padding-bottom: 17vh !important;
2019-10-30 20:42:39 +00:00
padding-top: 25vh;
@media screen and (max-width:600px){
& {
padding-top: 5vh;
}
}
2019-02-02 16:17:50 +00:00
.container {
.title, .subtitle {
font-weight: bold;
}
2019-10-30 21:28:08 +00:00
h4 a {
2019-10-30 21:27:12 +00:00
text-decoration: underline;
color: lighten($dark, 10) !important;
2019-02-02 16:17:50 +00:00
}
.button:first-child {
margin-right: 1em;
}
}
}
.hero-foot img {
max-width: 100vw;
width: 1000px;
display: block;
margin: 0 auto;
}
}
.feature-shoutout {
font-size: 1.2em;
svg{
height: 36px;
vertical-align: middle;
padding-right: 5px;
fill: #fff;
}
a{
color: darken($turquoise, 20%) !important;
}
}
.page{
margin: 2em auto;
min-height: calc(100vh - 57px - 10rem);
2021-09-05 16:40:19 +00:00
max-width: $desktop - (2 * $gap);
width: 100%;
2019-02-02 16:17:50 +00:00
.card{
margin-bottom: 2em;
background-color: #fff;
box-shadow: 0 2px 3px rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.1);
color: #4a4a4a;
max-width: 100%;
position: relative;
border: none;
border-radius: 0.2em;
.media-content a{
display: block;
}
}
.content{
padding: 0 1em;
}
}
.footer {
padding: 1.5rem 1rem;
}
// Mobile Styles
.navbar-background{
-webkit-transition: opacity ease 300ms;
transition: opacity ease 300ms;
opacity: 0;
}
.navbar-menu{
-webkit-transition: all ease 300ms;
transition: all ease 300ms;
}
@media screen and (max-width:1087px){
.navbar-menu{
position: fixed;
bottom: 0;
top: 0;
left: -160px;
z-index: 2;
opacity: 1;
display: block;
}
}
.navbar-menu .logo{
display: none;
}
.navbar-menu.is-active{
-webkit-transition: all ease 300ms;
transition: all ease 300ms;
left: 0;
.navbar-item{
padding: 0.5em 2em 0.5em 1.5em;
}
.logo{
display: block;
}
}
.navbar-burger.burger{
position: fixed;
top: 0;
right: 0;
z-index: 3;
color: #fff;
}
.navbar-background.is-active{
background: rgba(0,0,0,0.5);
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
opacity: 1;
}
/// Test if `$value` is a valid direction
/// @param {*} $value - Value to test
/// @return {Bool}
@function is-direction($value) {
$is-keyword: index((to top, to top right, to right top, to right, to bottom right, to right bottom, to bottom, to bottom left, to left bottom, to left, to left top, to top left), $value);
$is-angle: type-of($value) == 'number' and index('deg' 'grad' 'turn' 'rad', unit($value));
@return $is-keyword or $is-angle;
}
/// Convert a direction to legacy syntax
/// @param {Keyword | Angle} $value - Value to convert
/// @require {function} is-direction
/// @require {function} convert-angle
/// @throw Cannot convert `#{$value}` to legacy syntax because it doesn't seem to be a direction.;
@function legacy-direction($value) {
@if is-direction($value) == false {
@error "Cannot convert `#{$value}` to legacy syntax because it doesn't seem to be a direction.";
}
$conversion-map: (
to top : bottom,
to top right : bottom left,
to right top : left bottom,
to right : left,
to bottom right : top left,
to right bottom : left top,
to bottom : top,
to bottom left : top right,
to left bottom : right top,
to left : right,
to left top : right bottom,
to top left : bottom right
);
@if map-has-key($conversion-map, $value) {
@return map-get($conversion-map, $value);
}
@return 90deg - $value;
}
/// Mixin printing a linear-gradient
/// as well as a plain color fallback
/// and the `-webkit-` prefixed declaration
/// @access public
/// @param {Keyword | Angle} $direction - Linear gradient direction
/// @param {Arglist} $color-stops - List of color-stops composing the gradient
@mixin linear-gradient($direction, $color-stops...) {
@if is-direction($direction) == false {
$color-stops: $direction, $color-stops;
$direction: 180deg;
}
background: nth(nth($color-stops, 1), 1);
background: -webkit-linear-gradient(legacy-direction($direction), $color-stops);
background: linear-gradient($direction, $color-stops);
}
// Features page
.features{
@include linear-gradient(180deg, $primary, lighten($green, 15%));
.navbar{
border: none;
}
.is-white {
h1, h2, h3, & {
color: #fff;
}
2019-02-02 16:17:50 +00:00
}
a{
color: lighten($dark, 10%);
}
.content{
padding: 0 1rem;
}
.feature-hero{
.subtitle {
font-size: 1.7rem;
}
}
2019-12-25 13:15:19 +00:00
.columns.feature {
justify-content: space-between;
2019-12-25 13:24:06 +00:00
margin-bottom: 4em;
2019-12-25 13:15:19 +00:00
2020-04-16 21:45:31 +00:00
@media screen and (max-width: $tablet) {
margin-bottom: 0;
}
2019-12-25 13:15:19 +00:00
.column{
width: 48%;
2019-12-25 13:21:17 +00:00
flex-grow: 0;
flex-basis: auto;
flex-shrink: 0;
2019-12-25 13:15:19 +00:00
}
}
2020-04-16 21:45:31 +00:00
.columns.feature .column,
.columns.feature-shoutouts .column {
@media screen and (max-width: $tablet) {
width: 80% !important;
margin: 0 auto;
}
@media screen and (max-width: #{$tablet - 300px}) {
width: 100% !important;
}
}
2019-02-02 16:17:50 +00:00
.column.theimage {
text-align: center;
2019-12-25 12:58:27 +00:00
img,video{
2019-12-25 12:34:52 +00:00
box-shadow: .4em .4em 1em rgba(lighten($dark, 15%), .2);
2019-02-02 16:17:50 +00:00
}
}
.footer {
background: lighten(#000, 10%);
a {
color: lighten(#000, 70%);
}
2020-04-16 21:47:57 +00:00
.button.coffee {
color: $white;
box-shadow: none;
}
2019-02-02 16:17:50 +00:00
}
2020-04-16 21:18:49 +00:00
}
2021-09-05 16:40:19 +00:00
.vikunja-cloud-banner {
background: url('../images/bg-3.jpg') no-repeat center;
background-size: cover;
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
color: rgb(31, 41, 55);
padding: 11rem 0;
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}