aboutsummaryrefslogtreecommitdiffstats
path: root/assets/styles.scss
blob: dc1af7f1dd7e5f50886429e5cc72a5777f568114 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700);

@import "~dat-design/scss/base.scss";
// ugly selector needed to overwrite default styles
#choo-root.minidocs {

  font-family: 'Source Sans Pro', 'Helvetica Neue', 'Lucida Grande', Arial, sans-serif;
  line-height: 1.5;
  color: $color-neutral;

  // transitions on interactive elements
  a,
  button,
  input,
  select,
  textarea {
    transition-property: background-color, color;
    transition-duration: $transition-duration;
    transition-timing-function: $transition-timing-function;
  }

  // .minidocs-header {
  //   margin: 0;
  // }

  // .minidocs-logo {
  //   max-height: 100px;
  //   width: inherit;
  //   display: block;
  // }

  .minidocs-content {
    // padding-bottom: 50px;
    // max-width: 48em; // sets a max-width to avoid endless lines on wide screens
  }

  .minidocs-sidebar {
    background-color: $color-neutral--10;
  }

  .minidocs-menu {
    // overwrite the "#" default style
    .h1::before {
      display: none;
    }
    // .h1, .h2, .h3 {
    //   font-weight: 400;
    // }
    // .h1, .h2 {
    //   margin-bottom: 8px;
    // }
    // .h2 {
    //   font-size: 1.4em;
    // }
    .content-link {
      transition-property: background-color, color, border-color, padding-left;
      color: $color-neutral--80;
      &:hover, &:focus {
        color: $color-neutral;
        border-left-color: transparent;
        padding-left: .65rem;
        background-color: rgba(0,0,0,.05);
      }
      &.active {
        padding-left: .65rem;
        border-left-color: $color-green--hover;
        background-color: #FFF;
      }
    }
  }

  .minidocs-header {
    background-color: $color-neutral;
  }

  /* header */
  .minidocs-header-link {
    font-size: .875rem;
    letter-spacing: 0.05em;
    color: $color-neutral--30;
    &:hover, &:focus {
      color: $color-white;
      text-decoration: none;
    }
  }

  @media screen and (max-width: $sm) {
    .hidden-on-mobile {
      display: none;
    }
  }

  .minidocs-header-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: $color-neutral--10;
    letter-spacing: .025em;
    img {
      transition: transform .5s ease-in-out;
    }
    &:hover, &:focus {
      // color: $color-green;
      img {
        transform: rotate(360deg);
      }
    }
  }
}