blob: f51fe41c930d382c0773bcd85beca88cf5de3a33 (
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
|
/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
.radio-card {
display: flex;
flex-direction: column;
width: 450px;
min-height: 210px;
background-color: #fff;
border: solid 1px var(--barBorderColor);
border-radius: 3px;
box-sizing: border-box;
margin-right: calc(2 * var(--gridSize));
transition: all 0.2s ease;
}
.radio-card.animated {
height: 0;
border-width: 0;
overflow: hidden;
}
.radio-card.animated.open {
height: 210px;
border-width: 1px;
}
.radio-card.highlight {
box-shadow: var(--defaultShadow);
}
.radio-card:last-child {
margin-right: 0;
}
.radio-card:focus {
outline: none;
}
.radio-card-vertical {
width: 100%;
min-height: auto;
}
.radio-card-actionable {
cursor: pointer;
}
.radio-card-actionable:not(.disabled):hover {
box-shadow: var(--defaultShadow);
transform: translateY(-2px);
}
.radio-card-actionable.selected {
border-color: var(--darkBlue);
}
/*
* Disabled transform property because it moves the element to a new stacking context
* creating z-index conflicts with other components.
* This is a problem with a vertical list of RadioCards where a select might be above another RadioCard
*/
.radio-card-actionable.radio-card-vertical:not(.disabled):hover {
box-shadow: none;
transform: none;
}
.radio-card-actionable.radio-card-vertical:not(.selected):not(.disabled):hover {
border-color: var(--lightBlue);
}
.radio-card-actionable.selected .radio-card-recommended {
border: solid 1px var(--darkBlue);
border-top: none;
}
.radio-card-actionable.disabled {
cursor: not-allowed;
background-color: var(--disableGrayBg);
border-color: var(--disableGrayBorder);
}
.radio-card-actionable.disabled h2,
.radio-card-actionable.disabled ul {
color: var(--disableGrayText);
}
.radio-card-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: calc(2 * var(--gridSize)) calc(2 * var(--gridSize)) 0;
}
.radio-card-body {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 0 calc(2 * var(--gridSize)) calc(2 * var(--gridSize));
}
.radio-card-body .alert {
margin-bottom: 0;
}
.radio-card-recommended {
position: relative;
padding: 6px calc(var(--gridSize) * 2);
left: -1px;
bottom: -1px;
width: 450px;
color: #fff;
background-color: var(--blue);
border-radius: 0 0 3px 3px;
box-sizing: border-box;
font-size: var(--smallFontSize);
}
|