uxunity 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/README.md +0 -15
- data/lib/.DS_Store +0 -0
- data/lib/stylesheets/README.txt +1 -0
- data/lib/stylesheets/_uxunity.scss +1 -0
- data/lib/stylesheets/base/README.txt +1 -0
- data/lib/stylesheets/base/_forms.scss +0 -0
- data/lib/stylesheets/base/_lists.scss +0 -0
- data/lib/stylesheets/base/_media.scss +4 -0
- data/lib/stylesheets/base/_tables.scss +0 -0
- data/lib/stylesheets/base/_typography.scss +0 -0
- data/lib/stylesheets/components/.DS_Store +0 -0
- data/lib/stylesheets/components/README.txt +1 -0
- data/lib/stylesheets/components/blocks/.DS_Store +0 -0
- data/lib/stylesheets/components/blocks/README.txt +1 -0
- data/lib/stylesheets/components/blocks/footer.scss +76 -0
- data/lib/stylesheets/components/blocks/front-page.scss +399 -0
- data/lib/stylesheets/components/blocks/login-popup.scss +15 -0
- data/lib/stylesheets/components/blocks/menus.scss +179 -0
- data/lib/stylesheets/components/blocks/nav_index.scss +342 -0
- data/lib/stylesheets/components/blocks/region_side_bar.scss +106 -0
- data/lib/stylesheets/components/blocks/search.scss +104 -0
- data/lib/stylesheets/components/blocks/spinner.scss +90 -0
- data/lib/stylesheets/components/blocks/treeStyles.scss +97 -0
- data/lib/stylesheets/components/blocks/treeview.scss +154 -0
- data/lib/stylesheets/components/node/README.txt +1 -0
- data/lib/stylesheets/components/node/asset.scss +3 -0
- data/lib/stylesheets/components/node/basic_page.scss +42 -0
- data/lib/stylesheets/components/node/blog.scss +75 -0
- data/lib/stylesheets/components/node/bulk_photo_nodes_default.scss +125 -0
- data/lib/stylesheets/components/node/edit.scss +33 -0
- data/lib/stylesheets/components/node/magnify.scss +31 -0
- data/lib/stylesheets/components/node/node.scss +398 -0
- data/lib/stylesheets/components/node/pattern.scss +134 -0
- data/lib/stylesheets/components/node/spec_style.scss +131 -0
- data/lib/stylesheets/components/node/webform.scss +17 -0
- data/lib/stylesheets/components/views/README.txt +1 -0
- data/lib/stylesheets/components/views/assets.scss +19 -0
- data/lib/stylesheets/components/views/taxonomy.scss +63 -0
- data/lib/stylesheets/components/views/test-views-search-php.html +70 -0
- data/lib/stylesheets/mixins/_mixins.scss +49 -0
- data/lib/stylesheets/mixins/_prefix-mixins.scss +158 -0
- data/lib/stylesheets/utility/.DS_Store +0 -0
- data/lib/stylesheets/utility/README.txt +1 -0
- data/lib/stylesheets/utility/_dependencies.scss +5 -0
- data/lib/stylesheets/utility/abstractions/README.txt +1 -0
- data/lib/stylesheets/utility/variables/README.txt +1 -0
- data/lib/stylesheets/utility/variables/_breakpoints.scss +5 -0
- data/lib/stylesheets/utility/variables/_colors.scss +144 -0
- data/lib/stylesheets/utility/variables/_forms.scss +0 -0
- data/lib/stylesheets/utility/variables/_globals.scss +31 -0
- data/lib/stylesheets/utility/variables/_grid.scss +12 -0
- data/lib/stylesheets/utility/variables/_legacy.scss +4 -0
- data/lib/stylesheets/utility/variables/_typography.scss +21 -0
- data/lib/stylesheets/ux/.DS_Store +0 -0
- data/lib/stylesheets/ux/_lists.scss +28 -0
- data/lib/stylesheets/ux/_ux-buttons.scss +156 -0
- data/lib/stylesheets/ux/_ux-tooltips.scss +8 -0
- data/lib/stylesheets/ux/_ux-utils.scss +67 -0
- data/lib/stylesheets/ux/ux-dropdown.scss +71 -0
- data/lib/uxunity/version.rb +1 -1
- data/uxunity-0.1.0.gem +0 -0
- data/uxunity.gemspec +1 -0
- metadata +74 -1
@@ -0,0 +1,158 @@
|
|
1
|
+
/**
|
2
|
+
* A list of useful mixins for properties that need to be prefixed for various browsers.
|
3
|
+
* Feel free to add as many as you need.
|
4
|
+
*/
|
5
|
+
|
6
|
+
/*** Flexbox ***/
|
7
|
+
|
8
|
+
@mixin display-flex($direction) {
|
9
|
+
display: -ms-flexbox;
|
10
|
+
display: -webkit-flex;
|
11
|
+
display: flex;
|
12
|
+
-webkit-flex-direction: $direction;
|
13
|
+
-ms-flex-direction: $direction;
|
14
|
+
flex-direction: $direction;
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin align-items($align) {
|
18
|
+
// Damn you IE.
|
19
|
+
@if $align == flex-start {
|
20
|
+
-ms-flex-align: start;
|
21
|
+
} @else if $align == flex-end {
|
22
|
+
-ms-flex-align: end;
|
23
|
+
} @else {
|
24
|
+
-ms-flex-align: $align;
|
25
|
+
}
|
26
|
+
-webkit-align-items: $align;
|
27
|
+
align-items: $align;
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin justify-content($justify) {
|
31
|
+
// Damn you IE.
|
32
|
+
@if $justify == flex-start {
|
33
|
+
-ms-flex-pack: start;
|
34
|
+
} @else if $justify == flex-end {
|
35
|
+
-ms-flex-pack: end;
|
36
|
+
} @else if $justify == space-between {
|
37
|
+
-ms-flex-pack: justify;
|
38
|
+
} @else if $justify == space-around {
|
39
|
+
-ms-flex-pack: distribute;
|
40
|
+
} @else {
|
41
|
+
-ms-flex-pack: $justify;
|
42
|
+
}
|
43
|
+
-webkit-justify-content: $justify;
|
44
|
+
justify-content: $justify;
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin flex($grow: 0, $shrink: 1, $basis: auto) {
|
48
|
+
-webkit-flex: $grow $shrink $basis;
|
49
|
+
-ms-flex: $grow $shrink $basis;
|
50
|
+
flex: $grow $shrink $basis;
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin align-self($align) {
|
54
|
+
// Damn you IE.
|
55
|
+
@if $align == flex-start {
|
56
|
+
-ms-flex-item-align: start;
|
57
|
+
} @else if $align == flex-end {
|
58
|
+
-ms-flex-item-align: end;
|
59
|
+
} @else {
|
60
|
+
-ms-flex-item-align: $align;
|
61
|
+
}
|
62
|
+
-webkit-align-self: $align;
|
63
|
+
align-self: $align;
|
64
|
+
}
|
65
|
+
|
66
|
+
@mixin order($position) {
|
67
|
+
-webkit-order: $position;
|
68
|
+
-ms-flex-order: $position;
|
69
|
+
order: $position;
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
/*** Gradients ***/
|
74
|
+
|
75
|
+
@mixin linear-gradient($angle, $fromColor, $toColor) {
|
76
|
+
/* Apparently every recent browser supports the new syntax, including IE 10+ */
|
77
|
+
background: linear-gradient($angle, $fromColor, $toColor);
|
78
|
+
}
|
79
|
+
|
80
|
+
@function prefixed-radial-gradients($shape, $size, $position, $color-stops...) {
|
81
|
+
@return
|
82
|
+
-webkit-radial-gradient($position, $shape $size, $color-stops),
|
83
|
+
-moz-radial-gradient($position, $shape $size, $color-stops),
|
84
|
+
-ms-radial-gradient($shape $size at $position, $color-stops),
|
85
|
+
-o-radial-gradient($position, $shape $size, $color-stops),
|
86
|
+
radial-gradient($shape $size at $position, $color-stops);
|
87
|
+
}
|
88
|
+
|
89
|
+
@mixin radial-gradient($shape, $size, $position, $fromColor, $toColor) {
|
90
|
+
background: mix(nth($fromColor, 1), nth($toColor, 1)); /* Fallback Color for IE9- */
|
91
|
+
@each $gradient in prefixed-radial-gradients($shape, $size, $position, $fromColor, $toColor) {
|
92
|
+
background: $gradient;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
/*** Transitions ***/
|
97
|
+
|
98
|
+
@mixin transition($transition) {
|
99
|
+
-webkit-transition: $transition;
|
100
|
+
transition: $transition;
|
101
|
+
}
|
102
|
+
|
103
|
+
@mixin transition-property($property) {
|
104
|
+
-webkit-transition-property: $property;
|
105
|
+
transition-property: $property;
|
106
|
+
}
|
107
|
+
|
108
|
+
@mixin transition-duration($duration) {
|
109
|
+
-webkit-transition-duration: $duration;
|
110
|
+
transition-duration: $duration;
|
111
|
+
}
|
112
|
+
|
113
|
+
@mixin transition-timing-function($timing-function) {
|
114
|
+
-webkit-transition-timing-function: $timing-function;
|
115
|
+
transition-timing-function: $timing-function;
|
116
|
+
}
|
117
|
+
|
118
|
+
@mixin transition-delay($delay) {
|
119
|
+
-webkit-transition-delay: $delay;
|
120
|
+
transition-delay: $delay;
|
121
|
+
}
|
122
|
+
|
123
|
+
/*** Animations ***/
|
124
|
+
|
125
|
+
@mixin keyframes($animationName) {
|
126
|
+
@-webkit-keyframes #{$animationName} {
|
127
|
+
@content;
|
128
|
+
}
|
129
|
+
@keyframes #{$animationName} {
|
130
|
+
@content;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
@mixin animation($animations...) {
|
135
|
+
-webkit-animation: $animations;
|
136
|
+
animation: $animations;
|
137
|
+
}
|
138
|
+
|
139
|
+
@mixin animation-timing-function($timing-function) {
|
140
|
+
-webkit-animation-timing-function: $timing-function;
|
141
|
+
animation-timing-function: $timing-function;
|
142
|
+
}
|
143
|
+
|
144
|
+
@mixin transform($transform) {
|
145
|
+
-webkit-transform: $transform;
|
146
|
+
transform: $transform;
|
147
|
+
}
|
148
|
+
|
149
|
+
@mixin translate3d($coordinates...) {
|
150
|
+
-webkit-transform: translate3d($coordinates);
|
151
|
+
transform: translate3d($coordinates);
|
152
|
+
}
|
153
|
+
|
154
|
+
@mixin opacity($percentOpaque) {
|
155
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$percentOpaque})";
|
156
|
+
filter: alpha(opacity=$percentOpaque);
|
157
|
+
opacity: ($percentOpaque/100);
|
158
|
+
}
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
Fill me.
|
@@ -0,0 +1 @@
|
|
1
|
+
Fill me.
|
@@ -0,0 +1 @@
|
|
1
|
+
Fill me.
|
@@ -0,0 +1,5 @@
|
|
1
|
+
$width-exwide: 1392px; // ability to adapt to extra wide displays beyound this width
|
2
|
+
$width-wide: 1392px; // normal viewing for most newer desktops and laptops up to this width
|
3
|
+
$width-default: 1140px; // common width target
|
4
|
+
$width-mid: 820px; // portrait tablets
|
5
|
+
$width-narrow: 640px; // landscape older phones
|
@@ -0,0 +1,144 @@
|
|
1
|
+
|
2
|
+
// Global Variables -- From Unity Blue
|
3
|
+
//==================================================
|
4
|
+
|
5
|
+
//== Unity "Blue" Theme Color Palette
|
6
|
+
// --------------------------------------------------
|
7
|
+
//## Do NOT use these varible names, but instead use the
|
8
|
+
//## varible names that follow this section. (here for reference)
|
9
|
+
|
10
|
+
$light-grey: #f5f7f8;
|
11
|
+
$light-grey-10: #f0f3f5;
|
12
|
+
$light-grey-20: #ebeff1;
|
13
|
+
$light-grey-30: #d7dee2;
|
14
|
+
$light-grey-40: #c7d1d6;
|
15
|
+
$light-grey-50: #b2c0cc;
|
16
|
+
|
17
|
+
$medium-grey: #91a0aa;
|
18
|
+
$medium-grey-10: #697785;
|
19
|
+
$medium-grey-20: #586877;
|
20
|
+
|
21
|
+
$dark-grey: #44535f;
|
22
|
+
$dark-grey-10: #414b57;
|
23
|
+
$brand-grey: #717074;
|
24
|
+
|
25
|
+
$light-green: #e9f4e2;
|
26
|
+
$light-green-10: #daeccf;
|
27
|
+
$light-green-20: #dcf5be;
|
28
|
+
$green: #6db33f;
|
29
|
+
$medium-green: #5e9e41;
|
30
|
+
$dark-green: #339900;
|
31
|
+
|
32
|
+
$light-orange: #ffedb2;
|
33
|
+
$orange: #f8981d;
|
34
|
+
$dark-orange: #cc6600;
|
35
|
+
|
36
|
+
$light-blue: #cbe5ff;
|
37
|
+
$light-blue-10: #98cbff;
|
38
|
+
$light-blue-20: #aac5e1;
|
39
|
+
$blue: #5384c0;
|
40
|
+
$blue-10: #4a7db1;
|
41
|
+
$blue-20: #4679b9;
|
42
|
+
$medium-blue: #3a87c5;
|
43
|
+
$medium-blue-10: #0095d3;
|
44
|
+
$dark-blue: #0066cc;
|
45
|
+
|
46
|
+
//== Global Colors
|
47
|
+
// --------------------------------------------------
|
48
|
+
//## Common colors for components
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
// Below are using naming convention of 'color-' prefix
|
62
|
+
// These are the variable names to be used throughout SASS
|
63
|
+
// and are arranged alphabetically (more or less)
|
64
|
+
|
65
|
+
$color-primary: #1f9cda;
|
66
|
+
$color-active: #0095d3;
|
67
|
+
$color-aside-block: #148cc7;
|
68
|
+
$color-block-text: #697785;
|
69
|
+
$color-block-title: #697785;
|
70
|
+
$color-body-text: #697785; // $medium-grey-10
|
71
|
+
$color-body-bg: #ffffff !default; //** Background color for `<body>`.
|
72
|
+
$color-brand-primary: $dark-blue; //** Brand color overrides
|
73
|
+
$color-button-default: $light-grey-30;
|
74
|
+
$color-button-primary: $light-blue;
|
75
|
+
$color-button-text-inverted: #ffffff;
|
76
|
+
$color-button-text: #555555;
|
77
|
+
$color-card-border: #b2c0cc; //** $light-grey-50
|
78
|
+
$color-content-title: #006699;
|
79
|
+
$color-disabled-state: #ebeff1;
|
80
|
+
$color-divider: #cccccc;
|
81
|
+
$color-error: #de5251;
|
82
|
+
$color-footer-bg: transparent;
|
83
|
+
$color-h4: #148cc7;
|
84
|
+
$color-heading-text: #44535f; // dark-grey
|
85
|
+
$color-hero-subtext: rgba(104, 119, 133, 0.8);
|
86
|
+
$color-hero-title: #3a87c5;
|
87
|
+
|
88
|
+
$color-masthead-bg: #3a87c5; // medium-blue
|
89
|
+
$color-masthead-bg-pattern: #836DB8; // was medium-blue-10
|
90
|
+
$color-masthead-bg-design: #f8981d; // orange
|
91
|
+
$color-masthead-bg-style: #6db33f; // green
|
92
|
+
|
93
|
+
$color-main-title-design: #f8981d; // orange used for Page titles
|
94
|
+
$color-main-title-style: #6db33f; // green used for Page titles
|
95
|
+
$color-main-title-pattern: #836DB8; //#0095d3; medium-blue-10 used for Page titles
|
96
|
+
|
97
|
+
|
98
|
+
$color-highlight: #E9F4E2;
|
99
|
+
$color-hover-state: #39f4e2;
|
100
|
+
$color-hover: #85BAD9;
|
101
|
+
$color-info: $light-blue-10;
|
102
|
+
|
103
|
+
|
104
|
+
//** Global link text colors
|
105
|
+
$color-link: $dark-blue;
|
106
|
+
$color-link-hover: darken($color-link, 10%);
|
107
|
+
$color-link-active: $medium-blue-10;
|
108
|
+
|
109
|
+
$color-menu-text: #ffffff;
|
110
|
+
$color-nav-category: #333333;
|
111
|
+
$color-nav-index: #006699;
|
112
|
+
|
113
|
+
$color-primary-hover-bg: $light-green; //** Background color of selection bar on white background, as in
|
114
|
+
$color-primary-active-bg: $light-green-10; //** actions menu, datagrid row, dropdown item, list box item, tree item
|
115
|
+
$color-primary-hover: $medium-grey-20; //** Text color of selection bar on white background, as in
|
116
|
+
$color-primary-active: $color-primary-hover; //** actions menu, datagrid row, dropdown item, list box item, tree item
|
117
|
+
$color-primary: #1f9cda;
|
118
|
+
|
119
|
+
|
120
|
+
$color-selected-state: #daeccf;
|
121
|
+
$color-separator-line: #e8e8e8;
|
122
|
+
|
123
|
+
$color-secondary-hover-bg: $light-blue-20; //** Background color of selection bar on grey backgrounds, as in
|
124
|
+
$color-secondary-active-bg: $blue-10; //** object navigator, tree item in an object navigator
|
125
|
+
$color-secondary-hover: $color-primary-hover; //** Text color of selection bar on grey backgrounds, as in
|
126
|
+
$color-secondary-active: #fff; //** object navigator, tree item in an object navigator
|
127
|
+
|
128
|
+
$color-side-nav-text: #898989;
|
129
|
+
$color-site-name: white;
|
130
|
+
$color-spinner-tip: $medium-blue-10;
|
131
|
+
$color-submitted: #898989;
|
132
|
+
$color-text-disabled: $light-grey-30; //** Global 'disabled' text color
|
133
|
+
$color-text-side-nav: #898989;
|
134
|
+
$color-success: #de5251;
|
135
|
+
$color-warn: $light-orange;
|
136
|
+
|
137
|
+
// testing
|
138
|
+
|
139
|
+
$light-grey: #f5f7f8;
|
140
|
+
$light-grey-10: darken($light-grey, 1%);
|
141
|
+
$light-grey-20: darken($light-grey, 2%);
|
142
|
+
$light-grey-30: darken($light-grey, 3%);
|
143
|
+
$light-grey-40: darken($light-grey, 4%);
|
144
|
+
$light-grey-50: darken($light-grey, 5%);
|
File without changes
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* Global parameters. Every measure, color, ... should be relative to those,
|
3
|
+
* so that the design stayed coherent if we change one of these values.
|
4
|
+
*
|
5
|
+
* The following are based on Unity visual specifications for VMware.
|
6
|
+
* Using the box model aspects of spacial measures for separation of main
|
7
|
+
* html tags that are consistent across Unity.
|
8
|
+
*/
|
9
|
+
|
10
|
+
|
11
|
+
body {
|
12
|
+
background: $color-body-bg;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
.clearfix {
|
18
|
+
&:after {
|
19
|
+
content: "";
|
20
|
+
display: table;
|
21
|
+
clear: both;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.hidden {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
.invisible {
|
30
|
+
visibility: hidden;
|
31
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Susy grid.
|
2
|
+
$container-style: magic;
|
3
|
+
$container-width: $width-default;
|
4
|
+
$total-columns: 12;
|
5
|
+
$column-width: 80px;
|
6
|
+
$gutter-width: 20px;
|
7
|
+
$grid-padding: $gutter-width;
|
8
|
+
$debug-grid: true;
|
9
|
+
|
10
|
+
$max-width: $width-default;
|
11
|
+
$height-header: 80px;
|
12
|
+
$height-header-wrapper: 120px;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
$font-family-default: ProximaNova-Reg, Helvetica, Arial, sans-serif;
|
2
|
+
$font-headings: ProximaNova-Light, Helvetica, Arial, sans-serif;
|
3
|
+
$font-body-text: ProximaNova-Reg, Helvetica, Arial, sans-serif;
|
4
|
+
$font-secondary-text: Arial, Sans-Serif;
|
5
|
+
$font-iconic: Font-Awesome;
|
6
|
+
|
7
|
+
$font-main-menu: OpenSans-Regular, Helvetica, Arial, sans-serif;
|
8
|
+
$font-toc-active: OpenSans-Semibold, Helvetica, Arial, sans-serif;
|
9
|
+
|
10
|
+
|
11
|
+
// generic - direct (should be avoided, to provide easier theme changes)
|
12
|
+
$font-light: ProximaNova-Light, Helvetica, Arial, sans-serif;
|
13
|
+
$font-regular: ProximaNova-Reg, Helvetica, Arial, sans-serif;
|
14
|
+
$font-semibold: ProximaNova-Sbold, Helvetica, Arial, sans-serif;
|
15
|
+
$font-bold: ProximaNova-Bold, Helvetica, Arial, sans-serif;
|
16
|
+
|
17
|
+
|
18
|
+
// base level defaults
|
19
|
+
$font-size: 16px;
|
20
|
+
$font-weight-default: 300;
|
21
|
+
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*** Lists ***/
|
2
|
+
|
3
|
+
ul {
|
4
|
+
margin: 0;
|
5
|
+
padding: 0;
|
6
|
+
}
|
7
|
+
li {
|
8
|
+
list-style-type: none;
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ux-unstyled {
|
14
|
+
list-style-type: none;
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
dl {
|
20
|
+
dd {
|
21
|
+
margin: 0;
|
22
|
+
font-weight: 600;
|
23
|
+
}
|
24
|
+
|
25
|
+
dt {
|
26
|
+
margin: 0 0 rem(1) rem(2);
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,156 @@
|
|
1
|
+
// Include the variables.
|
2
|
+
@import "../../utility/variables/*";
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
fieldset.ux-radio-grp {
|
10
|
+
width: 40%;
|
11
|
+
min-width: 20em;
|
12
|
+
.ux-radio { // provides for custom radio element, instead of native
|
13
|
+
display: block;
|
14
|
+
margin-bottom: 1em;
|
15
|
+
position: relative;
|
16
|
+
padding-left: 1.8em;
|
17
|
+
text-indent: -1.4em;
|
18
|
+
font-family: $font-family-default;
|
19
|
+
font-weight: 300;
|
20
|
+
font-size: 1em;
|
21
|
+
margin-top: -1px;
|
22
|
+
min-height: 1.13em;
|
23
|
+
text-align: left;
|
24
|
+
|
25
|
+
> input {
|
26
|
+
margin-right: 0.8em;
|
27
|
+
}
|
28
|
+
|
29
|
+
> label::before {
|
30
|
+
opacity: 0;
|
31
|
+
cursor: pointer;
|
32
|
+
position: absolute;
|
33
|
+
content: '';
|
34
|
+
width: 1em;
|
35
|
+
height: 1em;
|
36
|
+
left: 0;
|
37
|
+
top: 0;
|
38
|
+
background: #fbfaf9;
|
39
|
+
box-shadow: inset 0px 0px 2px 0px $color-separator-line;
|
40
|
+
border: 1px solid $color-separator-line;
|
41
|
+
border-radius: 49%;
|
42
|
+
}
|
43
|
+
&::hover > label::before {
|
44
|
+
box-shadow: 0 0 0 4px #fff inset;
|
45
|
+
background: $color-separator-line;
|
46
|
+
}
|
47
|
+
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Temporary mock up -- Needs to be setup properly */
|
52
|
+
|
53
|
+
ul.ux-button-group.round.toggle {
|
54
|
+
margin-left: auto;
|
55
|
+
margin-right: auto;
|
56
|
+
|
57
|
+
> * > .button {
|
58
|
+
-webkit-border-radius: 0;
|
59
|
+
border-radius: 0;
|
60
|
+
padding: 6px 22.5px;
|
61
|
+
border: #eee thin solid;
|
62
|
+
box-shadow: 0 2px 0 0 #e6e6e6;
|
63
|
+
}
|
64
|
+
|
65
|
+
> *:first-child > .button {
|
66
|
+
-webkit-border-bottom-left-radius: 5px;
|
67
|
+
-webkit-border-top-left-radius: 5px;
|
68
|
+
border-bottom-left-radius: 5px;
|
69
|
+
border-top-left-radius: 5px;
|
70
|
+
}
|
71
|
+
|
72
|
+
> *:last-child > .button {
|
73
|
+
-webkit-border-bottom-right-radius: 5px;
|
74
|
+
-webkit-border-top-right-radius: 5px;
|
75
|
+
border-bottom-right-radius: 5px;
|
76
|
+
border-top-right-radius: 5px;
|
77
|
+
}
|
78
|
+
|
79
|
+
li {
|
80
|
+
list-style: none;
|
81
|
+
display: inline-block;
|
82
|
+
text-indent: -5px;
|
83
|
+
margin: 0;
|
84
|
+
padding: 0;
|
85
|
+
}
|
86
|
+
input[data-toggle] {
|
87
|
+
display: none;
|
88
|
+
}
|
89
|
+
|
90
|
+
input[data-toggle]:checked + label,
|
91
|
+
input[data-toggle]:checked + label:active {
|
92
|
+
background-color: $color-selected-state;
|
93
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset,
|
94
|
+
0 1px 2px rgba(0, 0, 0, 0.05);
|
95
|
+
}
|
96
|
+
|
97
|
+
.button-group.toggle {
|
98
|
+
li:not(first-child) {
|
99
|
+
margin: 0 -0.9rem;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Button elements and elements that have the "button" class are styled.
|
106
|
+
* Possible additional classes to change the color:
|
107
|
+
* - clr-primary
|
108
|
+
* - clr-error
|
109
|
+
* - clr-success
|
110
|
+
*/
|
111
|
+
|
112
|
+
$button-shadow-height: 3px;
|
113
|
+
|
114
|
+
button,
|
115
|
+
.ux-button {
|
116
|
+
padding: rem(0.8) rem(1.5);
|
117
|
+
outline: none;
|
118
|
+
border-radius: 3px;
|
119
|
+
font-family: $font-family-default;
|
120
|
+
font-weight: 400;
|
121
|
+
font-size: rem(0.8);
|
122
|
+
text-transform: uppercase;
|
123
|
+
cursor: pointer;
|
124
|
+
|
125
|
+
@include button-color($color-button-default);
|
126
|
+
|
127
|
+
&.ux-primary {
|
128
|
+
@include button-color($color-button-primary);
|
129
|
+
}
|
130
|
+
&.ux-info {
|
131
|
+
@include button-color($color-info);
|
132
|
+
}
|
133
|
+
&.ux-warn {
|
134
|
+
@include button-color($color-warn);
|
135
|
+
}
|
136
|
+
|
137
|
+
&.ux-error {
|
138
|
+
@include button-color($color-error);
|
139
|
+
}
|
140
|
+
|
141
|
+
&.ux-success {
|
142
|
+
@include button-color($color-success);
|
143
|
+
}
|
144
|
+
|
145
|
+
&:active:not(.disabled) {
|
146
|
+
position: relative;
|
147
|
+
top: $button-shadow-height;
|
148
|
+
box-shadow: none;
|
149
|
+
}
|
150
|
+
|
151
|
+
&:disabled, &.disabled {
|
152
|
+
opacity: 0.4;
|
153
|
+
cursor: default;
|
154
|
+
}
|
155
|
+
|
156
|
+
}
|