aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/sass/layout/core.scss
blob: b613a9fc6d663d81b7b33cb07dbdb98bb27953f3 (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
55
56
57
58
59
60
61
62
63
64
65
// ==========================================================================
// Core
// ==========================================================================

@use 'sass:math';

html,
body {
  display: flex;
  width: 100%;
}

html {
  background: $page-background;
  background-attachment: fixed;
  height: 100%;
}

body {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.grid {
  flex: 1;
  overflow: auto;
}

main {
  margin: auto;
  padding-bottom: 1px; // Collapsing margins
  text-align: center;
}

aside {
  align-items: center;
  background: #fff;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  padding: $spacing-base;
  position: relative;
  text-align: center;
  text-shadow: none;
  width: 100%;

  .icon {
    fill: $color-twitter;
    margin-right: math.div($spacing-base, 2);
  }

  p {
    margin: 0;
  }

  a {
    color: $color-twitter;

    &.tab-focus {
      @include tab-focus($color-twitter);
    }
  }
}