Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base.scss « _components « styles « src « assets - github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d213dfc515502c54c032742c094f3f5fbf3c1854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
html, body {
  background-color: $base-background-color;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  height: 100%;
  margin: 0;
  text-rendering: optimizeLegibility;
}

body {
  display: grid;
  grid-gap: 1rem;
  grid-template-areas: "nav" "main" "footer";
  grid-template-columns: 1fr;
  height: 100%;

  grid-template-rows: $navbar-height 1fr 3rem;
  @media screen and (max-width: $breakpoint) {
    grid-template-rows: $navbar-height 1fr 5rem;
  }

  a {
    color: $links-color;
    text-decoration: none;

    &:hover, &:active, &:visited {
      text-decoration: underline;
    }
  }

  nav {
    grid-area: nav;
  }

  main {
    grid-area: main;
    justify-self: center;
    grid-column: 1 / -1;
    max-width: 80rem !important;
    padding-bottom: 3rem !important;
    padding-top: 3rem !important;

    &.home {
      align-items: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
    }
  }

  footer {
      grid-area: footer;
  }
}