Add site color variables to ui-colors

These are used by the collaboration package to represent
participants in the current session.
This commit is contained in:
Kevin Sawicki 2013-08-20 17:15:43 -07:00
parent 6e2fd18f62
commit 6fb8dcbaa5
7 changed files with 21 additions and 97 deletions

View File

@ -53,3 +53,10 @@
@accent-color-success-1: #1fe977; @accent-color-success-1: #1fe977;
@accent-color-success-2: #17ca65; @accent-color-success-2: #17ca65;
@accent-color-success-3: #58f79d; @accent-color-success-3: #58f79d;
// Distinct colors for site representations
@site-color-1: #f00;
@site-color-2: #0f0;
@site-color-3: #00f;
@site-color-4: #ff0;
@site-color-5: #f0f;

View File

@ -1,75 +0,0 @@
@guest-color: #96cbfe;
@running-color: #99cc99;
@site-1-color: #4dd157;
@site-2-color: #3facc1;
@site-3-color: #db2ff4;
@site-4-color: #f4541e;
@site-5-color: #f5e11d;
@action-icon-disabled-color: rgba(255, 255, 255, 0.5);
@action-icon-disabled-hover-color: #fff;
@action-icon-color: fade(@running-color, 80%);
@action-icon-hover-color: @running-color;
.site-colors(@site, @color) {
.collaboration-participant{
.site-@{site} {
background-color: @color;
&.lighter {
background-color: lighten(@color, 30%);
}
}
}
.editor .selection.site-@{site} .region {
background-color: darken(@color, 30%);
}
.editor .cursor.site-@{site} {
border-color: @color;
border-width: 2px;
}
}
.site-colors(1, @site-1-color);
.site-colors(2, @site-2-color);
.site-colors(3, @site-3-color);
.site-colors(4, @site-4-color);
.site-colors(5, @site-5-color);
.site-colors(6, @site-1-color);
.site-colors(7, @site-2-color);
.site-colors(8, @site-3-color);
.site-colors(9, @site-4-color);
.site-colors(10, @site-5-color);
.collaboration-status{
.guest {
color: @guest-color;
}
.running {
color: @running-color;
&:hover { color: lighten(@running-color, 15%); }
}
}
.collaboration-participant {
&.large{
.actions{
.remove:before, .toggle-audio.disabled:before, .toggle-video.disabled:before {
color: @action-icon-disabled-color;
}
.remove:hover:before, .toggle-audio.disabled:hover:before, .toggle-video.disabled:hover:before {
color: @action-icon-disabled-hover-color;
}
.toggle-audio:before, .toggle-video:before {
color: @action-icon-color;
}
.toggle-audio:hover:before, .toggle-video:hover:before {
color: @action-icon-hover-color;
}
}
}
}

View File

@ -10,7 +10,6 @@
'blurred' 'blurred'
'image-view' 'image-view'
'archive-view' 'archive-view'
'collaboration'
'overlay' 'overlay'
'buttons' 'buttons'
] ]

View File

@ -55,4 +55,10 @@
@button-color-1: #303030; @button-color-1: #303030;
@button-color-hover-1: #353536; @button-color-hover-1: #353536;
@button-color-active-1: #404040; @button-color-active-1: #404040;
@site-color-1: #4dd157;
@site-color-2: #3facc1;
@site-color-3: #db2ff4;
@site-color-4: #f4541e;
@site-color-5: #f5e11d;

View File

@ -1,18 +0,0 @@
@runningColor: #f78a46;
.collaboration {
background: #dde3e8;
border-left: 1px solid #989898;
.guest {
color: #5293d8;
}
.running {
color: @runningColor;
&:hover {
color: darken(@runningColor, 10%);
}
}
}

View File

@ -11,6 +11,5 @@
'blurred' 'blurred'
'image-view' 'image-view'
'archive-view' 'archive-view'
'collaboration'
'buttons' 'buttons'
] ]

View File

@ -49,4 +49,10 @@
// Colors that are not standard for themes. // Colors that are not standard for themes.
@button-color-1: rgba(0,0,0,.15); @button-color-1: rgba(0,0,0,.15);
@button-color-hover-1: rgba(0,0,0,.2); @button-color-hover-1: rgba(0,0,0,.2);
@button-color-active-1: rgba(0,0,0,.1); @button-color-active-1: rgba(0,0,0,.1);
@site-color-1: #4dd157;
@site-color-2: #3facc1;
@site-color-3: #db2ff4;
@site-color-4: #f4541e;
@site-color-5: #f5e11d;