forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirectory.scss
50 lines (42 loc) · 1.08 KB
/
directory.scss
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
/* Styles for directory pages (any page that organizes categories and articles)
------------------------------------------------------------------------------*/
// Hoverable boxes on product pages
// Markup can be different and we need both selectors below
.directory-link-box:hover .Box,
.directory-link-box.Box:hover {
border: 1px solid $blue-500;
}
// Expandable grid is used on article listing pages
// e.g. enterprise/2.15/admin/installation
.directory-dropdown-grid {
display: grid;
grid-template-columns: 100%;
grid-column-gap: 48px;
grid-row-gap: 24px;
@include breakpoint(lg) {
grid-template-columns: calc(50% - 24px) calc(50% - 24px);
}
// Disable the grid row expanding from expanding a closed dropdown on desktop
@include breakpoint(lg) {
.dropdown-withArrow {
max-height: 74px;
&[open] {
max-height: initial;
}
}
}
}
// Product ToC list
.directory-toc {
h2 {
margin-top: $spacer-6;
&:first-of-type {
margin-top: 0;
}
}
h3 {
margin-top: 0;
padding-bottom: initial;
border-bottom: 0;
}
}