forked from decred/politeiagui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModalProposalDiff.module.css
120 lines (98 loc) · 1.8 KB
/
ModalProposalDiff.module.css
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
.compareIcon {
padding: 0 1rem;
}
.diffBody {
padding-top: 2rem;
}
.diffWrapper > * {
padding: 0 !important;
}
.diffWrapper > * > *:nth-child(2) {
margin: 0;
}
.diffHeader {
position: sticky;
background-color: var(--card-background);
padding: 2rem 0;
border-bottom: 0.1rem solid var(--separator-color);
/* Stick on top without extra margin */
top: -3rem;
z-index: 10;
}
.filesDiffWrapper {
margin-top: 2rem;
padding-top: 2rem;
border-top: 0.1rem solid var(--separator-color);
display: flex;
overflow-x: auto;
}
.filesDiffWrapper > * {
overflow-x: visible;
}
.added {
border: 0.2rem solid var(--color-green);
}
.removed {
border: 0.2rem solid var(--color-orange);
}
.subtitle {
color: var(--text-secondary-color);
}
.modalContent {
min-height: 50vh;
}
.modalContent > h1 {
margin-bottom: 0;
}
.modalHeader {
width: 100%;
padding-bottom: 2rem;
border-bottom: 0.1px solid var(--separator-color);
}
.modalWrapper {
width: 100%;
}
.versionDownloads {
color: var(--text-secondary-color);
}
.versionsInfo {
display: flex;
justify-content: space-between;
width: 100%;
padding-top: 2rem;
}
.versionsInfo > *:last-child {
justify-content: flex-end;
}
.versionPicker {
display: flex;
align-items: center;
}
.versionPickerViewToggle {
padding-left: 2rem;
}
.versionPickerWrapper {
align-items: center;
display: flex;
}
@media screen and (max-width: 560px) {
.diffHeader {
/* Stick on top without extra margin. */
top: -5rem;
}
}
@media screen and (max-width: 768px) {
.versionPickerWrapper {
justify-content: space-between;
border-bottom: 0.1px solid var(--separator-color);
padding-bottom: 2rem;
}
.versionPicker {
order: 2;
}
.versionPickerViewToggle {
padding-right: 2rem;
padding-left: 0rem;
order: 1;
}
}