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,134 @@
|
|
1
|
+
// Include the variables.
|
2
|
+
@import "../../../partials/utility/variables/*";
|
3
|
+
|
4
|
+
/* *** Custom styles for Patterns section *** */
|
5
|
+
|
6
|
+
article.category-nav {
|
7
|
+
display: -webkit-flex;
|
8
|
+
display: -ms-flexbox;
|
9
|
+
display: -o-flex;
|
10
|
+
display: flex;
|
11
|
+
-webkit-justify-content: flex-start;
|
12
|
+
-ms-justify-content: start;
|
13
|
+
justify-content: flex-start;
|
14
|
+
-webkit-flex-wrap: wrap;
|
15
|
+
-ms-flex-wrap: wrap;
|
16
|
+
flex-wrap: wrap;
|
17
|
+
-webkit-align-items: flex-start;
|
18
|
+
-ms-align-items: start;
|
19
|
+
align-items: flex-start;
|
20
|
+
padding: 0;
|
21
|
+
|
22
|
+
height: auto;
|
23
|
+
margin: 1em auto;
|
24
|
+
|
25
|
+
|
26
|
+
.panel {
|
27
|
+
text-align: left;
|
28
|
+
padding: 0 1em 0 0;
|
29
|
+
max-width: 15em;
|
30
|
+
margin: 1em 0;
|
31
|
+
-webkit-flex: 1 1 auto;
|
32
|
+
-ms-flex: 1 1 auto;
|
33
|
+
flex: 1 1 auto;
|
34
|
+
|
35
|
+
|
36
|
+
/* background-color: #80c251; */
|
37
|
+
//background-image: -webkit-linear-gradient(top, #80c251 0, #80c251 34px, #fff 35px, #fff 100%);
|
38
|
+
//background-image: -moz-linear-gradient(top, #80c251 0, #80c251 34px, #fff 35px, #fff 100%);
|
39
|
+
//background-image: -o-linear-gradient(top, #80c251 0, #80c251 34px, #fff 35px, #fff 100%);
|
40
|
+
//background-image: linear-gradient(top, #80c251 0, #80c251 34px, #fff 35px, #fff 100%);
|
41
|
+
|
42
|
+
background-repeat: no-repeat;
|
43
|
+
|
44
|
+
h2 {
|
45
|
+
border: none;
|
46
|
+
margin: 0.3em 0 0 0;
|
47
|
+
padding: 0;
|
48
|
+
color: $color-link-active;
|
49
|
+
font-size: 1.1em;
|
50
|
+
padding: 0;
|
51
|
+
border: none;
|
52
|
+
font-family: $font-regular;
|
53
|
+
|
54
|
+
a {
|
55
|
+
color: inherit;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
.panel-body {
|
59
|
+
//box-shadow: 0px 1px 4px #e1e1e1, -1px 1px 1px #e1e1e1, 1px 1px 2px #e1e1e1; // sides R-B-L
|
60
|
+
padding-bottom: 1em;
|
61
|
+
}
|
62
|
+
ul {
|
63
|
+
padding-left: 0;
|
64
|
+
li {
|
65
|
+
ist-style: none;
|
66
|
+
margin-left: 0;
|
67
|
+
|
68
|
+
ul li {
|
69
|
+
margin-left: 0.5em;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
/* webpages may have an on page table of contents block consists of anchors (h2, h3) and this
|
77
|
+
* defines that page-TOC. Note that often this is dynamically created by javascript and
|
78
|
+
* placed here when it is appropriate.
|
79
|
+
*/
|
80
|
+
.page-toc {
|
81
|
+
background: #ffffff;
|
82
|
+
border: #c7d1d6 thin solid; // per Rob Nov 2015
|
83
|
+
margin: 1em 0;
|
84
|
+
padding: 0.4em;
|
85
|
+
max-width: 15em;
|
86
|
+
|
87
|
+
|
88
|
+
h4 {
|
89
|
+
color: $color-block-text;
|
90
|
+
font-size: normal;
|
91
|
+
border: none;
|
92
|
+
margin: 0.2em 0;
|
93
|
+
}
|
94
|
+
ul {
|
95
|
+
margin: 0;
|
96
|
+
padding: 0;
|
97
|
+
|
98
|
+
li {
|
99
|
+
list-style: none;
|
100
|
+
|
101
|
+
a {
|
102
|
+
font-size: 0.9em;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
/* Temporary adjustment to sidebar nav TOC while new TOC logic in process
|
110
|
+
* Make the TOC scrollable and tighten the padding between topics to show more on page
|
111
|
+
*/
|
112
|
+
.node-type-pattern .l-region--sidebar-first,
|
113
|
+
.node-type-component .l-region--sidebar-first {
|
114
|
+
|
115
|
+
h3:hover a,
|
116
|
+
h3.active a {
|
117
|
+
color: $color-main-title-pattern !important;
|
118
|
+
font-family: $font-toc-active;
|
119
|
+
}
|
120
|
+
.treeview .item-list ul {
|
121
|
+
display: none; // hide toc items initially, display on click via js
|
122
|
+
}
|
123
|
+
.view-display-id-blk_nav_pattern {
|
124
|
+
ul {
|
125
|
+
overflow-y: hidden;
|
126
|
+
max-height: calc(100vh - 200px);
|
127
|
+
|
128
|
+
li {
|
129
|
+
padding-bottom: 0.2em !important;
|
130
|
+
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
// Include the variables.
|
2
|
+
@import "../../../partials/utility/variables/*";
|
3
|
+
|
4
|
+
|
5
|
+
.node-type-style,
|
6
|
+
.node-type-pattern {
|
7
|
+
|
8
|
+
|
9
|
+
#main-content-wrapper h4 {
|
10
|
+
font-style: $font-semibold;
|
11
|
+
font-size: .9rem;
|
12
|
+
line-height: 1rem;
|
13
|
+
margin-bottom: .5em;
|
14
|
+
}
|
15
|
+
|
16
|
+
#main-content-wrapper h5 {
|
17
|
+
font-style: $font-semibold;
|
18
|
+
font-size: .88em;
|
19
|
+
text-transform: none;
|
20
|
+
line-height: .96rem;
|
21
|
+
margin-bottom: .5em;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
/* ** ****** Color Pallette ******* ** */
|
26
|
+
.color-palette-wrapper {
|
27
|
+
font-size: 1em;
|
28
|
+
color: #666666;
|
29
|
+
}
|
30
|
+
|
31
|
+
.color-palette-wrapper section.row {
|
32
|
+
display: block;
|
33
|
+
margin: 0.5em 0 2em 0;
|
34
|
+
}
|
35
|
+
.color-palette-item {
|
36
|
+
display: inline-block;
|
37
|
+
vertical-align: top;
|
38
|
+
padding: .85em;
|
39
|
+
height: auto;
|
40
|
+
width: 161.8px;
|
41
|
+
margin: 10px 0 ;
|
42
|
+
padding: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
.color-palette-item section:first-child {
|
46
|
+
display: block;
|
47
|
+
vertical-align: top;
|
48
|
+
padding: .8em;
|
49
|
+
height: 60px;
|
50
|
+
width: 161.8px;
|
51
|
+
border: rgba(222,222,222, 0.3) solid thin;
|
52
|
+
margin: 10px 0 ;
|
53
|
+
padding: 0;
|
54
|
+
background: #EBEFF1;
|
55
|
+
z-index: 2;
|
56
|
+
}
|
57
|
+
|
58
|
+
.color-palette-item section:first-child p {
|
59
|
+
text-align: center;
|
60
|
+
vertical-align: middle;
|
61
|
+
color: #666666;
|
62
|
+
}
|
63
|
+
|
64
|
+
.color-palette-item.dark section:first-child p {
|
65
|
+
color: white;
|
66
|
+
}
|
67
|
+
.color-palette-item .details {
|
68
|
+
display: block;
|
69
|
+
padding: 0 0 0 0.4em;
|
70
|
+
width: calc(300 / 330 * 100%);
|
71
|
+
height: auto;
|
72
|
+
text-align: left;
|
73
|
+
height: auto;
|
74
|
+
margin: 0 0;
|
75
|
+
vertical-align: top;
|
76
|
+
}
|
77
|
+
.color-palette-item .details h3 {
|
78
|
+
color: #444444;
|
79
|
+
font-size: .95em;
|
80
|
+
font-weight: 300;
|
81
|
+
text-align: left;
|
82
|
+
margin: 0.1em 0;
|
83
|
+
padding: 0;
|
84
|
+
}
|
85
|
+
.color-palette-item .details li {
|
86
|
+
list-style: none;
|
87
|
+
font-size: .8em;
|
88
|
+
text-indent: .9em;
|
89
|
+
list-style-position: outside;
|
90
|
+
}
|
91
|
+
.color-palette-item .details p,
|
92
|
+
.color-palette-item .details ul,
|
93
|
+
.color-palette-item .details li {
|
94
|
+
font-size: .8rem;
|
95
|
+
color: #999999;
|
96
|
+
font-weight: 100;
|
97
|
+
line-height: 1rem;
|
98
|
+
margin: 0;
|
99
|
+
padding: 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
.color-palette-wrapper.color-palette-hover .color-palette-item { position: relative; }
|
103
|
+
.color-palette-wrapper.color-palette-hover .color-palette-item section { cursor: pointer; }
|
104
|
+
.color-palette-wrapper.color-palette-hover .color-palette-item .details {
|
105
|
+
opacity: 0;
|
106
|
+
position: absolute;
|
107
|
+
overflow: hidden;
|
108
|
+
width: 80%;
|
109
|
+
top: 55%;
|
110
|
+
left: 10%;
|
111
|
+
height: 0;
|
112
|
+
background-color: white; /* Fallback if color not specified */
|
113
|
+
transition: opacity 0.4s;
|
114
|
+
}
|
115
|
+
|
116
|
+
.color-palette-wrapper.color-palette-hover .color-palette-item:hover .details {
|
117
|
+
opacity: 1;
|
118
|
+
height: auto;
|
119
|
+
z-index: 9;
|
120
|
+
padding: 0 0.3em 0.3em;
|
121
|
+
border: rgba(102,102,102, 0.5) thin solid;
|
122
|
+
}
|
123
|
+
.clearfix {
|
124
|
+
clear: both;
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
}
|
131
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
Fill me.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// Include the variables.
|
2
|
+
@import "partials/utility/**/*";
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
/** ***** News Events landing page view ***** **/
|
9
|
+
|
10
|
+
.view-id-pages.view-display-id-page_news_events {
|
11
|
+
|
12
|
+
li {
|
13
|
+
padding: 1em 0;
|
14
|
+
|
15
|
+
.views-field-title {
|
16
|
+
font-size: 1.1em;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
// Include the variables.
|
2
|
+
@import "partials/utility/**/*";
|
3
|
+
|
4
|
+
/* **** Taxonomy Term Views **** */
|
5
|
+
|
6
|
+
.page-taxonomy-term {
|
7
|
+
.views-view-grid tr {
|
8
|
+
height: 160px;
|
9
|
+
}
|
10
|
+
.views-view-grid tr td {
|
11
|
+
width: 140px;
|
12
|
+
padding-right: 10px;
|
13
|
+
}
|
14
|
+
.views-field-title {
|
15
|
+
height: 2em;
|
16
|
+
text-decoration: none;
|
17
|
+
font-weight: 100;
|
18
|
+
display: block;
|
19
|
+
padding: 0;
|
20
|
+
line-height: 1.1em;
|
21
|
+
}
|
22
|
+
.views-field-field-images {
|
23
|
+
margin: 0;
|
24
|
+
padding: 0;
|
25
|
+
vertical-align: top;
|
26
|
+
width: 100px;
|
27
|
+
height: 100px;
|
28
|
+
display: block;
|
29
|
+
background-color: #f8f8f8;
|
30
|
+
}
|
31
|
+
.views-field-field-images a{
|
32
|
+
line-height: 100px;
|
33
|
+
vertical-align: bottom;
|
34
|
+
}
|
35
|
+
.views-field-field-images img{
|
36
|
+
vertical-align: bottom;
|
37
|
+
max-width: 100px;
|
38
|
+
max-height: 100px;
|
39
|
+
}
|
40
|
+
.views-field-php {
|
41
|
+
text-decoration: none;
|
42
|
+
font-weight: 100;
|
43
|
+
font-size: .8em;
|
44
|
+
padding: 0 0 .8em 0;
|
45
|
+
height: .9em;
|
46
|
+
line-height: .4em;
|
47
|
+
}
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
/** ***** taxonomy Vocabulary focus ***** **/
|
57
|
+
|
58
|
+
.page-admin-structure-taxonomy {
|
59
|
+
#main-content-wrapper .tabs.tabs--primary li:nth-child(3),
|
60
|
+
#main-content-wrapper .tabs.tabs--primary li:nth-child(4) {
|
61
|
+
display: none;
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<?php
|
2
|
+
/* ** Output either an avatar or the icon for presentation **
|
3
|
+
|
4
|
+
For Icons, we want to output the first icon (address multiple) with a icon-avatar class to tie in CSS formatting.
|
5
|
+
For Patterns, each pattern has its own avatar.
|
6
|
+
For Style Guides, use a default Styles avatar
|
7
|
+
For Case Study, use a default Case Study avatar
|
8
|
+
For anything else, use a default misc avatar
|
9
|
+
|
10
|
+
|
11
|
+
The resulting avatar should, with the exception of icons, link to the content. Icons should link to file.
|
12
|
+
** */
|
13
|
+
|
14
|
+
$nodetypes_apps = array('2014_mobileapp', '2014_webapp','mobilepattern', 'webpattern');
|
15
|
+
$nodetypes_style = array('visual_style', '2014_visual_style');
|
16
|
+
$nodetypes_case = array('casestudy', '2014_casestudy');
|
17
|
+
|
18
|
+
if ($data->_field_data['nid']['entity']->type == "icon") {
|
19
|
+
$icon = $data->_field_data['nid']['entity']->field_icons['und'][0];
|
20
|
+
$output = "<div class='list-avatar icon-avatar'>";
|
21
|
+
$output .= "<a href='" . str_replace("public://", "/sites/default/files/", $icon['uri']) . "' ";
|
22
|
+
$output .= " title='" . $icon['title'] . "' >";
|
23
|
+
$output .= "<img src='" . str_replace("public://", "/sites/default/files/", $icon['uri']) . "' ";
|
24
|
+
$output .= " alt='" . $icon['title'] . "' />";
|
25
|
+
$output .= " </a> </div>";
|
26
|
+
}
|
27
|
+
else
|
28
|
+
if (in_array($data->_field_data['nid']['entity']->type, $nodetypes_apps ) ) {
|
29
|
+
$avatar = $data->_field_data['nid']['entity']->field_avatar['und'][0];
|
30
|
+
print_r($data->_field_data['nid']['entity']->field_avatar['und']);
|
31
|
+
$output = "<div class='list-avatar pattern-avatar'>";
|
32
|
+
$output .= "<a href='" . str_replace("public://", "/sites/default/files/", $avatar ['uri']) . "' ";
|
33
|
+
$output .= " title='" . $avatar ['title'] . "' >";
|
34
|
+
$output .= "<img src='" . str_replace("public://", "/sites/default/files/", $avatar ['uri']) . "' ";
|
35
|
+
$output .= " alt='" . $avatar['title'] . "' />";
|
36
|
+
$output .= " </a> </div>";
|
37
|
+
}
|
38
|
+
else
|
39
|
+
if (in_array($data->_field_data['nid']['entity']->type, $nodetypes_case ) ) {
|
40
|
+
$avatar_casestudy_path = "/sites/default/files/2014/pattern-avatars/avatar_casestudy_225x140.png";
|
41
|
+
$output = "<div class='list-avatar casestudy-avatar'>";
|
42
|
+
$output .= "<a href='" . $avatar_casestudy_path . "' ";
|
43
|
+
$output .= " title='" . "Case Study" . "' >";
|
44
|
+
$output .= "<img src='" . $avatar_casestudy_path . "' ";
|
45
|
+
$output .= " alt='Case Study' />";
|
46
|
+
$output .= " </a> Case Study</div>";
|
47
|
+
}
|
48
|
+
else
|
49
|
+
if (in_array($data->_field_data['nid']['entity']->type, $nodetypes_style ) ) {
|
50
|
+
$avatar_visual_style_path = "/sites/default/files/2014/pattern-avatars/avatar_style_guide_225x140.png";
|
51
|
+
$output = "<div class='list-avatar style-guide-avatar'>";
|
52
|
+
$output .= "<a href='" . $avatar_visual_style_path . "' ";
|
53
|
+
$output .= " title='" . "Style Guide" . "' >";
|
54
|
+
$output .= "<img src='" . $avatar_visual_style_path . "' ";
|
55
|
+
$output .= " alt='Style Guide' />";
|
56
|
+
$output .= " </a> Style Guide</div>";
|
57
|
+
}
|
58
|
+
else {
|
59
|
+
$avatar_default = "/sites/default/files/2014/pattern-avatars/avatar_default_225x140.png";
|
60
|
+
$output = "<div class='list-avatar style-guide-avatar'>";
|
61
|
+
$output .= "<a href='" . $avatar_default . "' ";
|
62
|
+
$output .= " title='" . "UI Patterns Misc Content" . "' >";
|
63
|
+
$output .= "<img src='" . $avatar_default . "' ";
|
64
|
+
$output .= " alt='UI Patterns Misc Content' />";
|
65
|
+
$output .= " </a> UI Patterns Misc Content</div>";
|
66
|
+
}
|
67
|
+
|
68
|
+
|
69
|
+
print($output);
|
70
|
+
?>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/* most sass functions and mixins (other than prefix), reside here */
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Makes the element a CSS triangle, pointing in the given direction.
|
5
|
+
* Height is optional, if not given, it will be $base/2.
|
6
|
+
*/
|
7
|
+
@mixin triangle ($direction, $color, $base, $height: 0) {
|
8
|
+
@if $direction == top {
|
9
|
+
$border-side: bottom;
|
10
|
+
} @else if $direction == bottom {
|
11
|
+
$border-side: top;
|
12
|
+
} @else if $direction == left {
|
13
|
+
$border-side: right;
|
14
|
+
} @else { // fall thru assuming direction as 'right'
|
15
|
+
$border-side: left;
|
16
|
+
}
|
17
|
+
width: 0;
|
18
|
+
height: 0;
|
19
|
+
border: $base/2 solid transparent;
|
20
|
+
border-#{$direction}-width: 0;
|
21
|
+
@if $height > 0 {
|
22
|
+
border-#{$border-side}-width: $height;
|
23
|
+
}
|
24
|
+
border-#{$border-side}-color: $color;
|
25
|
+
}
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Clear Design argues that because "rem" unit does not work on pseudo-elements in IE,
|
29
|
+
* we should use a function to compute "rem" to "px" with Sass. Kept here until reassessed.
|
30
|
+
*/
|
31
|
+
@function rem($remSize) {
|
32
|
+
@return $remSize * $font-size;
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Button settings are passed a color ($color-primary, $color-button-default, etc.)
|
38
|
+
*/
|
39
|
+
@mixin button-color($color) {
|
40
|
+
$temp-border-color: darken($color, 10%);
|
41
|
+
$temp-text-color: $color-button-text;
|
42
|
+
@if lightness($color) < 80 {
|
43
|
+
$temp-text-color: $color-button-text-inverted;
|
44
|
+
}
|
45
|
+
background: $color;
|
46
|
+
border: 1px solid $temp-border-color;
|
47
|
+
box-shadow: 0 $button-shadow-height 0 0 $temp-border-color;
|
48
|
+
color: $temp-text-color;
|
49
|
+
}
|