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

toc.scss « stylesheets « assets « content - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69b5b0d4e948b65ba6b95b15520fb5a77235ba89 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
version: 1
---

@import "variables";

// ToC styles
.breadcrumbs + ul, .doc-nav > ul, .quick-nav ul {
  padding: 20px;
  background: $body-background-color;

  li {
    padding: 4px 0;
    list-style: none;

    &::before {
      content: "›\00a0";
    }

    ul {
      padding-top: 5px;
    }
  }
}

.doc-nav, .quick-nav {
  h4 {
    padding-bottom: 5px;
    border-bottom: solid 1px $h1-border-bottom;
  }
}

.clear {
  clear: both;
}

// not wide enough to show quick nav and toc
@media(max-width:1099px) {
  .doc-nav {
    margin: 0 auto;
    padding: 40px 40px 0;
    background: $white;
    width: inherit;
    max-width: 900px;
  }

  .doc-nav > ul {
    border-bottom: 2px solid $thead-border-color;
    border-top: 2px solid $thead-border-color;
    margin: 0;
  }

  .main.class {
    float: none;
    width: inherit;
    margin: 0 auto;
    max-width: 900px;
  }

  .quick-nav {
    display: none;
  }
}


// wide enough to show toc but not quick nav
@media(min-width:1100px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .main.class {
    padding-top: 53px;
  }

  .doc-nav {
    position: fixed;
    top: 0;
    right: 0;
    padding-top: 55px;
    overflow-y: scroll;
    height: 100%;
  }

  .doc-nav ul ul {
    padding-left: 25px;
  }

  .doc-nav > ul .quick-nav ul {
    margin: 0;
  }

  .doc-nav, .quick-nav {
    width: 25%;
  }
}
@media(min-width:1100px) and (max-width:1600px) {
  .quick-nav {
    display: none;
  }

  .doc-nav {
    width: 30%;
    max-width: 30%;
  }

  .main.class.has-toc {
    width: 70%;
    max-width: 70%;
    float: left;
  }
}


// wide enough to show quick nav and toc
@media(min-width:1601px) {
  .main.class.has-toc {
    width: 50%;
    margin-left: 25%;
    max-width: 50%;
  }

  .quick-nav {
    position: fixed;
    top: 0;
    padding-top: 55px;
    left: 0;
    overflow-y: scroll;
    height: 100%;
  }

  .quick-nav ul ul {
    padding-bottom: 0;
  }

  .quick-nav h4 {
    margin-top: 25px;
  }

  .quick-nav h4:first-child {
    margin-top: 10px;
  }
}