Skip to content

Commit de7c790

Browse files
committed
Moved definitions for the AD ballot position's background colours (which shows each AD his own positions by colour coding) from ietf.css to ietf.less, to make it easier to adjust the colours while keeping to the hues of the colour palette.
- Legacy-Id: 10577
1 parent fea8ef1 commit de7c790

2 files changed

Lines changed: 34 additions & 12 deletions

File tree

bootstrap/less/ietf.less

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
@brand-yellow: #f8e16d;
1212
//
1313
// Secondary colours, not part of the primary palette
14-
@brand-green: #69fc2c;
14+
@brand-green: #78D916;
1515

1616

1717
@brand-primary: @brand-blue; // space blue
18-
@brand-success: darken(@brand-green, 20%); // green // #3abf03
18+
@brand-success: @brand-green; // green // #3abf03
1919
@brand-info: darken(@brand-yellow, 10%); // yellow
2020
@brand-warning: @brand-orange; // orange
2121
//@brand-danger: darken(saturate(@brand-orange, 60%), 10%);
@@ -123,6 +123,23 @@
123123
}
124124

125125

126+
.position-discuss,
127+
.position-block { background-color: @brand-warning; }
128+
.position-yes { background-color: @brand-success; }
129+
.position-noobj { background-color: hsl(hue(@brand-success), 80%, 85%); }
130+
.position-abstain { background-color: hsl(hue(@brand-primary), 80%, 70%); }
131+
.position-recuse { background-color: lighten(@gray-base, 50%); }
132+
.position-norecord { background-color: @body-bg; }
133+
134+
.position-discuss-row,
135+
.position-block-row { background-color: hsl(hue(@brand-warning), 90%, 92%) !important ; }
136+
.position-yes-row { background-color: hsl(hue(@brand-success),100%, 88%) !important ; }
137+
.position-noobj-row { background-color: hsl(hue(@brand-success), 80%, 97%) !important ; }
138+
.position-abstain-row { background-color: hsl(hue(@brand-primary), 90%, 95%) !important ; }
139+
.position-recuse-row { background-color: lighten(@gray-base, 85%) !important ; }
140+
.position-norecord-row { background-color: inherit; }
141+
142+
126143
// XXX This change from before is not currently being applied, not sure how
127144
// critical this is:
128145
//--- /Users/lars/Downloads/bootstrap-3.3.5/less/mixins/forms.less 2015-06-16 10:13:22.000000000 +0200

ietf/static/ietf/css/ietf.css

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,23 @@ label.required:after { content: "\2217"; color: #a94442; font-weight: bold; }
126126
.nav-tabs[role=tablist] { margin-bottom: 0.7em; }
127127

128128
/* Styles needed for the ballot table */
129+
/*
129130
.position-discuss,
130-
.position-block { background-color: #d4584d; } /* @alert-danger-bg */
131-
.position-yes { background-color: #67F72B; } /* @brand-success */
132-
.position-noobj { background-color: #D1F7C1; } /* lighten(@brand-success) */
133-
.position-abstain { background-color: #f69f74; } /* @brand-warning */
131+
.position-block { background-color: #f0ad4e; }
132+
.position-yes { background-color: #67F72B; }
133+
.position-noobj { background-color: #D1F7C1; }
134+
.position-abstain { background-color: #8C73F5; }
134135
.position-recuse { background-color: #808080; }
135-
.position-norecord { background-color: inherit; }
136+
.position-norecord { background-color: #FFFFFF; }
136137
.position-discuss-row,
137-
.position-block-row { background-color: #F1CBC8 !important ; } /* lighter variants of above */
138-
.position-yes-row { background-color: #E1FDD6 !important ; }
139-
.position-noobj-row { background-color: #F2FCEE !important ; }
140-
.position-abstain-row { background-color: #FAD0BB !important ; }
138+
.position-block-row { background-color: #FFE5d9 !important ; }
139+
.position-yes-row { background-color: #DBFFCC !important ; }
140+
.position-noobj-row { background-color: #F4FFF0 !important ; }
141+
.position-abstain-row { background-color: #eae5ff !important ; }
141142
.position-recuse-row { background-color: #D9D9D9 !important ; }
142-
.position-norecord-row { background-color: inherit; }
143+
.position-norecord-row { background-color: #ffffff; }
144+
*/
145+
143146
.ballot-icon table td { border: 1px solid #ddd; height: 10px; width: 8px; }
144147
.ballot-icon table .my { border: 2px solid #000;}
145148
.ballot-icon table { margin: 0 0 10px 10px; }
@@ -414,6 +417,8 @@ td.ad div { border-bottom: solid #ccc 1px; }
414417

415418
.adname { padding-bottom: .5em; line-height: 1em;}
416419

420+
.changebar { width: 0.3em; }
421+
417422
h1 small .pull-right { margin-top: 10.5px; }
418423

419424
.large {font-size: 120%;}

0 commit comments

Comments
 (0)