corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | body { |
2 | position: relative; /* For scrollspy */ |
||
3 | } |
||
4 | |||
5 | /* By default it's not affixed in mobile views, so undo that */ |
||
6 | .bs-sidebar.affix { |
||
7 | position: static; |
||
8 | } |
||
9 | @media (min-width: 768px) { |
||
10 | .bs-sidebar { |
||
11 | padding-left: 20px; |
||
12 | } |
||
13 | } |
||
14 | |||
15 | /* First level of nav */ |
||
16 | .bs-sidenav { |
||
17 | margin-top: 20px; |
||
18 | margin-bottom: 20px; |
||
19 | } |
||
20 | |||
21 | /* All levels of nav */ |
||
22 | .bs-sidebar .nav > li > a { |
||
23 | display: block; |
||
24 | padding: 4px 20px; |
||
25 | font-size: 13px; |
||
26 | font-weight: 500; |
||
27 | color: #999; |
||
28 | } |
||
29 | .bs-sidebar .nav > li > a:hover, |
||
30 | .bs-sidebar .nav > li > a:focus { |
||
31 | padding-left: 19px; |
||
32 | color: #6D6D6D; |
||
33 | text-decoration: none; |
||
34 | background-color: transparent; |
||
35 | border-left: 1px solid #6D6D6D; |
||
36 | } |
||
37 | .bs-sidebar .nav > .active > a, |
||
38 | .bs-sidebar .nav > .active:hover > a, |
||
39 | .bs-sidebar .nav > .active:focus > a { |
||
40 | padding-left: 18px; |
||
41 | font-weight: bold; |
||
42 | color: #6D6D6D; |
||
43 | background-color: transparent; |
||
44 | border-left: 2px solid #6D6D6D; |
||
45 | } |
||
46 | |||
47 | /* Nav: second level (shown on .active) */ |
||
48 | .bs-sidebar .nav .nav { |
||
49 | display: none; /* Hide by default, but at >768px, show it */ |
||
50 | padding-bottom: 10px; |
||
51 | } |
||
52 | .bs-sidebar .nav .nav > li > a { |
||
53 | padding-top: 1px; |
||
54 | padding-bottom: 1px; |
||
55 | padding-left: 30px; |
||
56 | font-size: 12px; |
||
57 | font-weight: normal; |
||
58 | } |
||
59 | .bs-sidebar .nav .nav > li > a:hover, |
||
60 | .bs-sidebar .nav .nav > li > a:focus { |
||
61 | padding-left: 29px; |
||
62 | } |
||
63 | .bs-sidebar .nav .nav > .active > a, |
||
64 | .bs-sidebar .nav .nav > .active:hover > a, |
||
65 | .bs-sidebar .nav .nav > .active:focus > a { |
||
66 | padding-left: 28px; |
||
67 | font-weight: 500; |
||
68 | } |
||
69 | |||
70 | /* Back to top (hidden on mobile) */ |
||
71 | .back-to-top { |
||
72 | display: none; |
||
73 | padding: 4px 10px; |
||
74 | margin-top: 10px; |
||
75 | margin-left: 10px; |
||
76 | font-size: 12px; |
||
77 | font-weight: 500; |
||
78 | color: #999; |
||
79 | } |
||
80 | .back-to-top:hover { |
||
81 | color: #6D6D6D; |
||
82 | text-decoration: none; |
||
83 | } |
||
84 | |||
85 | @media (min-width: 768px) { |
||
86 | .back-to-top { |
||
87 | display: block; |
||
88 | } |
||
89 | } |
||
90 | |||
91 | /* Show and affix the side nav when space allows it */ |
||
92 | @media (min-width: 992px) { |
||
93 | .bs-sidebar .nav > .active > ul { |
||
94 | display: block; |
||
95 | } |
||
96 | /* Widen the fixed sidebar */ |
||
97 | .bs-sidebar.affix, |
||
98 | .bs-sidebar.affix-bottom { |
||
99 | width: 213px; |
||
100 | } |
||
101 | .bs-sidebar.affix { |
||
102 | position: fixed; /* Undo the static from mobile first approach */ |
||
103 | top: 20px; |
||
104 | } |
||
105 | .bs-sidebar.affix-bottom { |
||
106 | position: absolute; /* Undo the static from mobile first approach */ |
||
107 | } |
||
108 | .bs-sidebar.affix-bottom .bs-sidenav, |
||
109 | .bs-sidebar.affix .bs-sidenav { |
||
110 | margin-top: 0; |
||
111 | margin-bottom: 0; |
||
112 | } |
||
113 | } |
||
114 | @media (min-width: 1200px) { |
||
115 | /* Widen the fixed sidebar again */ |
||
116 | .bs-sidebar.affix-bottom, |
||
117 | .bs-sidebar.affix { |
||
118 | width: 263px; |
||
119 | } |
||
120 | } |