forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_section.scss
More file actions
126 lines (105 loc) · 2.29 KB
/
_section.scss
File metadata and controls
126 lines (105 loc) · 2.29 KB
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
@use "../abstracts/mixins";
.jenkins-section {
border-top: var(--jenkins-border);
padding: var(--section-padding) 0 0 0;
max-width: 1800px;
&:last-child {
padding-bottom: 0;
}
&:empty {
display: none;
}
&--no-border {
border-top: none;
padding-top: 0;
}
&--bottom-padding {
padding-bottom: var(--section-padding);
}
}
.jenkins-section__title {
margin: 0 0 var(--section-padding) 0;
font-size: 1rem;
font-weight: var(--font-bold-weight);
}
.jenkins-section__description {
// Tweaked margin so that it appears visually centred when placed next to `.jenkins-section__title`
margin: -0.8125rem 0 1rem;
color: var(--text-color-secondary);
line-height: 1.66;
}
.jenkins-section__items {
display: grid;
grid-template-columns: 1fr;
gap: var(--section-padding);
@media screen and (width >= 800px) {
grid-template-columns: 1fr 1fr;
}
@media screen and (width >= 1300px) {
grid-template-columns: 1fr 1fr 1fr;
}
@media screen and (width >= 1800px) {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}
.jenkins-section__item a {
@include mixins.item($border: false);
display: flex;
text-decoration: none;
margin: 0;
&::before,
&::after {
inset: -0.65rem;
}
dl {
margin: 0;
padding: 0;
min-height: 48px;
}
.jenkins-section__item__icon {
position: relative;
display: flex;
align-items: center;
justify-content: center;
margin: 0 1rem 0 0;
width: 3rem;
height: 3rem;
flex-shrink: 0;
color: var(--text-color);
&::before {
content: "";
position: absolute;
inset: 0;
border-radius: 100%;
pointer-events: none;
background: var(--item-background--active);
border: var(--jenkins-border--subtle);
}
img,
svg {
position: relative;
width: 50% !important;
height: 50% !important;
color: currentColor;
}
&__badge {
position: absolute;
top: -4px;
right: -4px;
backdrop-filter: blur(10px);
}
}
dt {
font-size: 0.9375rem;
font-weight: var(--font-bold-weight);
margin: 0.1rem 0 0.2rem;
color: var(--text-color);
}
dd {
color: var(--text-color-secondary);
font-weight: normal;
line-height: 1.6;
margin: 0 0.66rem 0 0;
font-size: 0.9375rem;
}
}