base.scss 2.33 KB
Newer Older
Johannes Edmeier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*!
 * Copyright 2014-2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "utilities";
// Import the rest of Bulma
@import "~bulma/bulma";
Johannes Edmeier committed
19
@import "~bulma-badge/dist/bulma-badge";
Johannes Edmeier committed
20

Johannes Edmeier committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;

  & > div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
}

Johannes Edmeier committed
39 40 41 42 43 44 45 46
.is-breakable {
  word-break: break-all;
}

.is-muted {
  color: $grey-light;
}

Johannes Edmeier committed
47 48 49 50
.is-selectable {
  cursor: pointer;
}

51 52 53 54 55
.button.is-icon {
  background: transparent;
  border-color: transparent;
}

Johannes Edmeier committed
56
//navbar color fixes
57 58 59 60 61
.navbar-item .button.is-icon {
  color: $navbar-item-color;
  &:hover {
    color: $navbar-item-hover-color;
  }
Johannes Edmeier committed
62

63 64
}

Johannes Edmeier committed
65
.navbar .badge {
Johannes Edmeier committed
66
  &[data-badge]::after {
Johannes Edmeier committed
67
    box-shadow: 0 0 0 $badge-border-size $navbar-background-color;
Johannes Edmeier committed
68 69 70 71
  }
}

//Loading spinner
72 73
.section.is-loading,
.content.is-loading {
Johannes Edmeier committed
74 75 76 77 78 79 80 81
  &::after {
    @include loader;
    height: 5rem;
    width: 5rem;
    left: calc(50% - 2.5em);
    top: calc(50% - 2.5em);
    border-width: 0.5rem;
  }
82 83
}

84 85 86 87 88 89 90 91
p.is-loading {
  &::before {
    display: inline-block;
    right: 0.25em;
    @include loader;
  }
}

92 93 94 95 96
//hero as card-header
.card .hero {
  padding: 0.75rem;
}

Johannes Edmeier committed
97
//Bullets
98 99 100 101 102 103 104 105 106 107 108 109 110 111
.has-bullet::before {
  background: currentColor;
  content: '';
  width: 0.75em;
  height: 0.75em;
  display: inline-block;
  margin-right: 0.25em;
}

@each $name, $pair in $colors {
  .has-bullet.has-bullet-#{$name}::before {
    $color: nth($pair, 1);
    background-color: $color;
  }
Johannes Edmeier committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
}

//D3 Charts
.tick {
  & line {
    stroke: currentColor;
  }
  & text {
    fill: currentColor;
    font-size: $size-7;
  }
}

path.domain {
  stroke: currentColor;
Johannes Edmeier committed
127 128 129 130 131 132 133 134 135 136 137
}

//for login.html
.login {
  background-color: $black-ter;

  &--logo {
    margin-left: auto;
    margin-right: auto;
  }
}