forked from peterbaker/design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating colors and icons to newest ui
- Loading branch information
rcardneau
committed
Apr 14, 2017
1 parent
ada02f0
commit f9a2ab6
Showing
6 changed files
with
985 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// #brand colors | ||
$duo-green: #63B246; | ||
$duo-green-dark: #579e40; | ||
$duo-green-darkest: darken($duo-green-dark, 10%); | ||
$duo-green-light: lighten($duo-green, 20%); | ||
$duo-green-lightest: lighten($duo-green, 40%); | ||
|
||
$duo-blue: #405665; | ||
$duo-blue-dark: #363f44; | ||
$duo-blue-darkest: darken($duo-blue-dark, 10%); | ||
$duo-blue-light: #2798D4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
$app-version: '1.1.0'; | ||
@import "../../reference/deprecate"; | ||
// Shortcuts for common and standard monochromes | ||
$grey-map: ( | ||
darker: #444, | ||
dark: #666, | ||
mid: #888, | ||
light: #e1e1e1, | ||
lightest: #f7f7f7, | ||
help: #6a8390 | ||
); | ||
|
||
@include deprecate('2.0.0', 'map-get grey-map instead') { | ||
$grey-darker: #444; | ||
$grey-dark: #666; | ||
$grey: #888; | ||
$grey-light: #e1e1e1; | ||
$grey-lighter: #f7f7f7; | ||
} | ||
// we should eventually just get rid of these all together | ||
$grey-darker: map-get($grey-map, darker); | ||
$grey-dark: map-get($grey-map, dark); | ||
$grey: map-get($grey-map, mid); | ||
$grey-light: map-get($grey-map, light); | ||
$grey-lighter: map-get($grey-map, lightest); | ||
|
||
$white: white; | ||
|
||
// Platform colors | ||
$chrome-green: #68cf6a; | ||
$safari-red: #fe5255; | ||
$firefox-orange: #f9923e; | ||
$ie-blue: #3eb2ef; | ||
$edge-blue: #2e6fb3; | ||
$macosx-blue: #08C0E5; | ||
$windows-green: #1E896F; | ||
|
||
// Insight graph colors | ||
$insight-card-border: #dadada; | ||
|
||
$insight-os-tooltip-color: #317867; | ||
$insight-os-selected-color: #357E6D; | ||
$insight-browser-tooltip-color: #606E7A; | ||
$insight-browser-selected-color: #606E7A; | ||
$insight-plugin-tooltip-color: #67A3B7; | ||
$insight-plugin-selected-color: #379ED4; | ||
|
||
$policy-builder-warning-text-brown: #806840; | ||
$policy-builder-warning-background-yellow: #FEF4E2; | ||
$policy-builder-warning-border-yellow: #F5E1BF; | ||
$policy-builder-help-text-grey: #757E81; | ||
$policy-builder-help-text-background-grey: #F8F8F8; | ||
$policy-builder-help-text-border-grey: #D0DCE2; | ||
|
||
// Misc | ||
@include deprecate('2.0.0', 'map-get grey-map help instead') { | ||
$grey-help: map-get($grey-map, help); | ||
} | ||
|
||
@import "brand"; | ||
@import "secondary"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// States for alerts, buttons, etc | ||
$success-green: $duo-green; | ||
$success-green-light: $duo-green-light; | ||
$success-green-lightest: lighten($duo-green, 40%); | ||
$error-red: #D4423B; | ||
$error-red-light: lighten($error-red, 20%); | ||
$error-red-lightest: lighten($error-red, 40%); | ||
$error-red-dark: darken($error-red, 40%); | ||
$info-blue: #379ed4; | ||
$info-blue-light: lighten($info-blue, 40%); | ||
$info-blue-border: #CBD9E1; | ||
$warning-orange: #df6a27; | ||
$warning-orange-light: lighten($warning-orange, 40%); | ||
|
||
//Default colors | ||
$base-color: $grey-darker; | ||
$base-link-color: $info-blue; | ||
|
||
// High contrast colors | ||
$grey-dark-low-res: #444; | ||
$grey-light-low-res: #efefef; | ||
$grey-lighter-low-res: #f2f2f2; | ||
$base-border-color-low-res: #dadada; | ||
|
||
// Disabled | ||
$disabled-opacity: 0.5; | ||
$disabled-color: transparentize($base-color, $disabled-opacity); | ||
$disabled-input-color: rgb(235, 235, 228); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,257 @@ | ||
@import "duo-admin"; | ||
|
||
/* Circle Icons */ | ||
@mixin status-circle($color) { | ||
border-color: $color; | ||
color: $color; | ||
|
||
g > * { | ||
stroke: $color; | ||
} | ||
line { | ||
stroke: $color; | ||
} | ||
} | ||
|
||
.status-circle { | ||
border: 2px solid; | ||
border-radius: 50%; | ||
display: inline-block; | ||
height: 64px; | ||
text-align: center; | ||
vertical-align: middle; | ||
width: 64px; | ||
|
||
&.green { | ||
@include status-circle($duo-green); | ||
} | ||
&.red { | ||
@include status-circle($error-red); | ||
} | ||
&.gray { | ||
@include status-circle(#b8b8b8); | ||
} | ||
&.dark-gray { | ||
@include status-circle(#939393); | ||
} | ||
&.filled-green { | ||
@include status-circle(#FFF); | ||
background-color: $duo-green; | ||
} | ||
&.filled-red { | ||
@include status-circle(#FFF); | ||
background-color: $error-red; | ||
} | ||
|
||
svg { | ||
height: 34px; | ||
margin: -17px 0 0 0; | ||
position: relative; | ||
top: 50%; | ||
width: 34px; | ||
} | ||
} | ||
|
||
$browsers: unknown, safari, firefox, chrome, ie, opera, edge; | ||
|
||
.access-icon { | ||
background-size: 16px; | ||
display: inline-block; | ||
overflow: hidden; | ||
font-size: 16px; | ||
width: 16px; | ||
height: 16px; | ||
margin-right: 4px; | ||
vertical-align: -3px; | ||
} | ||
|
||
.browser-icon { | ||
background-image: url('../../images/browsers.png'); | ||
display: none; | ||
margin-right: 0; | ||
} | ||
|
||
@for $i from 1 through length($browsers) { | ||
$offset: -16px * ($i - 1); | ||
.browser-icon-#{nth($browsers, $i)} { | ||
display: inline-block; | ||
background-position: 0px $offset; | ||
} | ||
} | ||
|
||
@include retina { | ||
.browser-icon { | ||
background-image: url('../images/[email protected]'); | ||
} | ||
} | ||
|
||
.plugin-icon { | ||
background-image: url('../images/plugins.png'); | ||
|
||
&.plugin-icon-flash { | ||
background-position: 0px 0px; | ||
} | ||
&.plugin-icon-java { | ||
background-position: 0px -16px; | ||
} | ||
} | ||
|
||
.os-icon-unknown { | ||
display: none; | ||
} | ||
|
||
// validation icons from ss library | ||
.validation.valid:before { | ||
content: '✓'; | ||
} | ||
|
||
.validation:before { | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
|
||
// browser icon from image styles | ||
.browser-icon-chrome:before { | ||
display: inline-block !important; | ||
background-position: 0px -5.94vw !important; | ||
} | ||
.browser-icon-firefox:before { | ||
display: inline-block !important; | ||
background-position: 0px -4vw !important; | ||
} | ||
.browser-icon-safari:before { | ||
display: inline-block !important; | ||
background-position: 0px -2vw !important; | ||
} | ||
.browser-icon-ie:before { | ||
display: inline-block !important; | ||
background-position: 0px -12vw !important; | ||
} | ||
.browser-icon-opera:before { | ||
display: inline-block !important; | ||
background-position: 0px -10vw !important; | ||
} | ||
.browser-icon:before { | ||
background-image: url("../images/browsers.png") !important; | ||
display: none; | ||
} | ||
.plugin-icon.plugin-icon-flash:before { | ||
background-position: 0px 0px !important; | ||
} | ||
|
||
.plugin-icon.plugin-icon-java:before { | ||
background-position: 0px -18vw !important; | ||
} | ||
.plugin-icon:before { | ||
background-image: url("../images/plugins.png") !important; | ||
} | ||
|
||
///Insight type icons | ||
.flag-US:before { | ||
background-position: -0.5vw -782vw !important; | ||
} | ||
.flag:before { | ||
display: inline-block; | ||
overflow: hidden; | ||
width: 4vw !important; | ||
height: 3vw !important; | ||
background-image: url("../../images/flags.png") !important; | ||
background-size: 5vw 907vw !important; | ||
background-repeat: no-repeat !important; | ||
background-position: -5px -6713px; | ||
vertical-align: -3px; | ||
margin-top: 3vw; | ||
content: ' '; | ||
} | ||
// Custom formatted cells | ||
.result-cell { | ||
white-space: nowrap; | ||
text-transform: capitalize; | ||
|
||
&:before { | ||
width: 16px; | ||
height: 16px; | ||
background-size: 16px; | ||
vertical-align: -3px; | ||
margin-right: 4px; | ||
line-height: 12px; | ||
content: ' '; | ||
display: inline-block; | ||
} | ||
|
||
$types: | ||
(success, #63C76A), | ||
(failure, #EF6000), | ||
(fraud, #9D3F00), | ||
(error, #9B9B9B); | ||
|
||
@each $x in $types { | ||
$type: nth($x, 1); | ||
$color: nth($x, 2); | ||
|
||
&.result-#{$type} { | ||
color: $color; | ||
|
||
&:before { | ||
background-image: url("/images/#{$type}.png"); | ||
background-repeat: no-repeat; | ||
|
||
@include retina { | ||
background-image: url("/images/#{$type}@2x.png"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
// OS circular dots | ||
.insight-key.ios:before { | ||
background-color: #08C0E5; | ||
} | ||
.insight-key.windows:before, .insight-key.insight-access-key.ios:before { | ||
background-color: #BEDA38; | ||
} | ||
.insight-key.android:before { | ||
background-color: #1E896F; | ||
} | ||
.insight-key.blackberry:before, .insight-key.insight-access-key.android:before { | ||
background-color: #FDDF19; | ||
} | ||
.insight-key.other:before { | ||
background-color: #333; | ||
} | ||
.insight-key.positive:before, .insight-key.up-to-date:before { | ||
background-color: #63B246; | ||
} | ||
.insight-key.negative:before, .insight-key.enabled:before, .insight-key.out-of-date:before { | ||
background-color: #a13639; | ||
} | ||
.insight-key.unknown:before { | ||
background-color: #888; | ||
} | ||
.insight-key.unsupported:before, .insight-key.uninstalled:before, .insight-key.disabled:before { | ||
background-color: black; | ||
} | ||
// Insight icons for devices | ||
.insight-security-chart-passcode:before { | ||
content: '\e01a'; | ||
} | ||
.insight-security-chart-rooted:before { | ||
content: '\e009'; | ||
} | ||
.insight-security-chart-touchid:before { | ||
content: '\e1a7'; | ||
} | ||
.insight-security-chart-encryption:before { | ||
content: '\e19f'; | ||
} | ||
|
||
.insight-security-chart-wrapper:before { | ||
|
||
font-family: "Duo Admin Icons"; | ||
font-size: 3vw; | ||
font-style: normal; | ||
} | ||
// SS standard Icons | ||
.ss-alert:before, .ss-alert.right:after { | ||
content: '⚠'; | ||
} |
Oops, something went wrong.