|
| 1 | +@import "strider-colors"; |
| 2 | +@import "button"; |
1 | 3 |
|
2 | 4 | .no-projects {
|
3 | 5 | margin-top: 20px;
|
4 | 6 | margin-bottom: 25px;
|
5 | 7 | }
|
6 | 8 |
|
| 9 | +.project-list { |
| 10 | + margin: 0; |
| 11 | +} |
| 12 | + |
7 | 13 | .finished-at time {
|
8 | 14 | line-height: 27px;
|
9 | 15 | }
|
|
12 | 18 | line-height: 29px;
|
13 | 19 | }
|
14 | 20 |
|
| 21 | +.icon.no-text { |
| 22 | + margin-left: 0 !important; |
| 23 | +} |
| 24 | + |
15 | 25 | #dashboard .finished-at .cancel-job {
|
16 | 26 | font-size: 18px;
|
17 | 27 | line-height: 36px;
|
18 | 28 | }
|
19 | 29 |
|
20 |
| -#dashboard table tr { |
21 |
| - .progress-meter { |
22 |
| - margin-top: 10px; |
23 |
| - } |
24 |
| -} |
25 |
| - |
26 | 30 | #dashboard {
|
27 |
| - a, .clickable { |
| 31 | + a.clickable { |
28 | 32 | cursor: pointer;
|
29 | 33 | &:hover {
|
30 | 34 | text-decoration: none;
|
31 | 35 | color: #999;
|
32 | 36 | }
|
33 | 37 | }
|
34 |
| - .btn:hover { |
35 |
| - color: white; |
36 |
| - } |
37 |
| -} |
38 | 38 |
|
39 |
| -#dashboard { |
40 | 39 | a.add-repo {
|
41 | 40 | color: #fff;
|
42 | 41 | }
|
| 42 | + |
43 | 43 | .history {
|
44 |
| - width:70px; |
| 44 | + width: 70px; |
45 | 45 | }
|
46 |
| - .last-builds { |
47 |
| - tr td { |
48 |
| - width:10px; |
49 |
| - height:10px; |
50 |
| - padding:0; |
51 |
| - overflow:hidden; |
52 |
| - border-top:none; |
| 46 | + |
| 47 | + #job-list-yours, |
| 48 | + #job-list-public { |
| 49 | + // We add a border on the left of each row, indicating the state of the last build. |
| 50 | + li, td ~ td { |
| 51 | + background-color: #fff; |
| 52 | + transition: .3s; |
| 53 | + margin-bottom: 10px; |
| 54 | + border-left: 6px solid #BBB; |
| 55 | + } |
| 56 | + |
| 57 | + .running { |
| 58 | + border-left-width: 6px; |
| 59 | + border-color: @strider-bg-running; |
| 60 | + background-color: lighten(@strider-bg-running, 25%); |
| 61 | + |
| 62 | + &:hover { |
| 63 | + background-color: lighten(@strider-bg-running, 35%); |
| 64 | + } |
53 | 65 | }
|
| 66 | + |
| 67 | + .passed { |
| 68 | + border-left-width: 6px; |
| 69 | + border-color: @strider-bg-passed; |
| 70 | + background-color: lighten(@strider-bg-passed, 25%); |
| 71 | + |
| 72 | + &:hover { |
| 73 | + background-color: lighten(@strider-bg-passed, 35%); |
| 74 | + } |
| 75 | + } |
| 76 | + |
| 77 | + .failed { |
| 78 | + border-left-width: 6px; |
| 79 | + border-color: @strider-bg-failed; |
| 80 | + background-color: lighten(@strider-bg-failed, 25%); |
| 81 | + |
| 82 | + &:hover { |
| 83 | + background-color: lighten(@strider-bg-failed, 35%); |
| 84 | + } |
| 85 | + } |
| 86 | + |
| 87 | + .errored { |
| 88 | + border-left-width: 6px; |
| 89 | + border-color: @strider-bg-errored; |
| 90 | + background-color: lighten(@strider-bg-errored, 25%); |
| 91 | + |
| 92 | + &:hover { |
| 93 | + background-color: lighten(@strider-bg-errored, 35%); |
| 94 | + } |
| 95 | + } |
| 96 | + } |
| 97 | +} |
| 98 | + |
| 99 | +.dashboard-row, |
| 100 | +#dashboard ul li { |
| 101 | + padding: 10px; |
| 102 | + position: relative; |
| 103 | + overflow: hidden; |
| 104 | + |
| 105 | + .inline-block { |
| 106 | + display: inline-block; |
| 107 | + } |
| 108 | + |
| 109 | + .job-id { |
| 110 | + font-family: monospace; |
54 | 111 | }
|
55 | 112 |
|
| 113 | + .btn-link { |
| 114 | + color: #333; |
| 115 | + } |
| 116 | + |
| 117 | + & > a, |
| 118 | + & > span { |
| 119 | + display: inline-block; |
| 120 | + padding: 5px 10px; |
| 121 | + } |
| 122 | + |
| 123 | + span.clickable, |
| 124 | + a:not(.button) { |
| 125 | + color: black; |
| 126 | + cursor: pointer; |
| 127 | + } |
| 128 | + |
| 129 | + .github-link { |
| 130 | + margin-left: 5px; |
| 131 | + } |
| 132 | + |
| 133 | + &:hover { |
| 134 | + .action-buttons { |
| 135 | + & > div { |
| 136 | + visibility: visible; |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | + |
| 141 | + .small-text { |
| 142 | + display: inline-block; |
| 143 | + } |
| 144 | + |
| 145 | + .action-buttons { |
| 146 | + width: 100px; |
| 147 | + text-align: center; |
| 148 | + .btn-group { |
| 149 | + padding-top: 4px; |
| 150 | + } |
| 151 | + } |
| 152 | + |
| 153 | + .progress-meter { |
| 154 | + .progress { |
| 155 | + margin-bottom: 0; |
| 156 | + } |
| 157 | + } |
| 158 | + |
| 159 | + .committer { |
| 160 | + a { |
| 161 | + padding: 0; |
| 162 | + } |
| 163 | + img { |
| 164 | + width: 35px; |
| 165 | + height: 35px; |
| 166 | + max-width: inherit; |
| 167 | + margin: 10px 10px 10px 0; |
| 168 | + } |
| 169 | + } |
| 170 | + |
| 171 | + .project-name { |
| 172 | + a { |
| 173 | + font-size: 18px; |
| 174 | + line-height: 27px; |
| 175 | + width: 100%; |
| 176 | + } |
| 177 | + } |
| 178 | + |
| 179 | + .run-time { |
| 180 | + text-align: center; |
| 181 | + } |
| 182 | +} |
| 183 | + |
| 184 | +@media (max-width: 980px) { |
| 185 | + #dashboard { |
| 186 | + .triggered-by-header, |
| 187 | + .commit-url, |
| 188 | + .committer, |
| 189 | + .job-link a span { |
| 190 | + display: none; |
| 191 | + } |
| 192 | + } |
| 193 | +} |
| 194 | + |
| 195 | +@media (max-width: 767px) { |
| 196 | + #dashboard { |
| 197 | + .finished-at { |
| 198 | + display: none; |
| 199 | + } |
| 200 | + } |
| 201 | + |
| 202 | + #build-page .job-title h3 { |
| 203 | + margin-bottom: 0.5em; |
| 204 | + } |
| 205 | + |
| 206 | + .navbar-fixed-top { |
| 207 | + margin-bottom: 0; |
| 208 | + } |
| 209 | +} |
| 210 | + |
| 211 | +@media (max-width: 650px) { |
| 212 | + #dashboard { |
| 213 | + overflow: auto; |
| 214 | + |
| 215 | + .deploy, |
| 216 | + .deploy-header, |
| 217 | + .refresh, |
| 218 | + .refresh-header, |
| 219 | + .configure, |
| 220 | + .configure-header, |
| 221 | + .committer, |
| 222 | + .committer-header, |
| 223 | + .github-header, |
| 224 | + .github-link { |
| 225 | + display: none; |
| 226 | + } |
| 227 | + } |
| 228 | +} |
| 229 | + |
| 230 | +@media (max-width: 450px) { |
| 231 | + #dashboard { |
| 232 | + ul li .project-name a { |
| 233 | + font-size: 14px; |
| 234 | + font-weight: normal; |
| 235 | + line-height: 25px; |
| 236 | + } |
| 237 | + } |
56 | 238 | }
|
0 commit comments