2014-12-24 12:13:23 +00:00
|
|
|
// Embedded icons from Open Iconic.
|
|
|
|
// Released under MIT and copyright 2014 Waybury.
|
2016-10-03 16:55:59 +00:00
|
|
|
// https://useiconic.com/open
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2015-04-18 18:17:32 +00:00
|
|
|
|
2014-12-24 12:13:23 +00:00
|
|
|
// Checkboxes and radios
|
2014-12-24 12:47:08 +00:00
|
|
|
//
|
|
|
|
// Base class takes care of all the key behavioral aspects.
|
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control {
|
2014-12-25 23:40:24 +00:00
|
|
|
position: relative;
|
2016-12-25 22:10:52 +00:00
|
|
|
display: inline-flex;
|
2016-10-27 21:32:56 +00:00
|
|
|
min-height: (1rem * $line-height-base);
|
2016-01-17 06:29:51 +00:00
|
|
|
padding-left: $custom-control-gutter;
|
2016-12-05 04:42:12 +00:00
|
|
|
margin-right: $custom-control-spacer-x;
|
2016-01-06 07:25:42 +00:00
|
|
|
}
|
2014-12-25 23:40:24 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control-input {
|
|
|
|
position: absolute;
|
|
|
|
z-index: -1; // Put the input behind the label so it doesn't overlay text
|
|
|
|
opacity: 0;
|
2014-12-25 23:40:24 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
&:checked ~ .custom-control-indicator {
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
color: $custom-control-indicator-checked-color;
|
2017-10-19 16:03:33 +00:00
|
|
|
@include gradient-bg($custom-control-indicator-checked-bg);
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
@include box-shadow($custom-control-indicator-checked-box-shadow);
|
2016-01-06 07:25:42 +00:00
|
|
|
}
|
2015-08-21 20:21:20 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
&:focus ~ .custom-control-indicator {
|
|
|
|
// the mixin is not used here to make sure there is feedback
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
box-shadow: $custom-control-indicator-focus-box-shadow;
|
2014-12-25 23:40:24 +00:00
|
|
|
}
|
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
&:active ~ .custom-control-indicator {
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
color: $custom-control-indicator-active-color;
|
2017-10-19 16:03:33 +00:00
|
|
|
@include gradient-bg($custom-control-indicator-active-bg);
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
@include box-shadow($custom-control-indicator-active-box-shadow);
|
2016-01-06 07:25:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
~ .custom-control-indicator {
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
background-color: $custom-control-indicator-disabled-bg;
|
2016-01-06 07:25:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
~ .custom-control-description {
|
(#22414) Rename for consistency `$custom-control-disabled-indicator-bg`, `$custom-control-disabled-description-color`, `$custom-control-checked-indicator-color`, `$custom-control-checked-indicator-bg`, `$custom-control-checked-indicator-box-shadow`, `$custom-control-focus-indicator-box-shadow`, `$custom-control-active-indicator-color`, `$custom-control-active-indicator-bg`, `$custom-control-active-indicator-box-shadow` to `$custom-control-indicator-disabled-bg`, `$custom-control-description-disabled-color`, `$custom-control-indicator-checked-color`, `$custom-control-indicator-checked-bg`, `$custom-control-indicator-checked-box-shadow`, `$custom-control-indicator-focus-box-shadow`, `$custom-control-indicator-active-color`, `$custom-control-indicator-active-bg`, `$custom-control-indicator-active-box-shadow`, respectively
2017-06-09 02:33:33 +00:00
|
|
|
color: $custom-control-description-disabled-color;
|
2016-01-06 07:25:42 +00:00
|
|
|
}
|
2014-12-25 23:40:24 +00:00
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
|
|
|
|
2014-12-24 12:47:08 +00:00
|
|
|
// Custom indicator
|
|
|
|
//
|
|
|
|
// Generates a shadow element to create our makeshift checkbox/radio background.
|
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control-indicator {
|
2014-12-25 23:40:24 +00:00
|
|
|
position: absolute;
|
2016-10-27 21:41:12 +00:00
|
|
|
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
2014-12-25 23:40:24 +00:00
|
|
|
left: 0;
|
|
|
|
display: block;
|
2016-01-17 06:29:51 +00:00
|
|
|
width: $custom-control-indicator-size;
|
|
|
|
height: $custom-control-indicator-size;
|
2016-01-19 01:33:00 +00:00
|
|
|
pointer-events: none;
|
2014-12-25 23:40:24 +00:00
|
|
|
user-select: none;
|
2016-01-17 06:29:51 +00:00
|
|
|
background-color: $custom-control-indicator-bg;
|
2014-12-25 23:40:24 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center center;
|
2016-01-17 06:29:51 +00:00
|
|
|
background-size: $custom-control-indicator-bg-size;
|
|
|
|
@include box-shadow($custom-control-indicator-box-shadow);
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
|
|
|
|
2014-12-24 12:47:08 +00:00
|
|
|
// Checkboxes
|
|
|
|
//
|
|
|
|
// Tweak just a few things for checkboxes.
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-checkbox {
|
|
|
|
.custom-control-indicator {
|
(#22414) Rename for consistency `$custom-checkbox-border-radius`, `$custom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
2017-07-14 00:00:37 +00:00
|
|
|
@include border-radius($custom-checkbox-indicator-border-radius);
|
2014-12-25 23:40:24 +00:00
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control-input:checked ~ .custom-control-indicator {
|
(#22414) Rename for consistency `$custom-checkbox-border-radius`, `$custom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
2017-07-14 00:00:37 +00:00
|
|
|
background-image: $custom-checkbox-indicator-icon-checked;
|
2014-12-25 23:40:24 +00:00
|
|
|
}
|
2015-01-01 20:01:55 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control-input:indeterminate ~ .custom-control-indicator {
|
(#22414) Rename for consistency `$custom-checkbox-border-radius`, `$custom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
2017-07-14 00:00:37 +00:00
|
|
|
background-color: $custom-checkbox-indicator-indeterminate-bg;
|
|
|
|
background-image: $custom-checkbox-indicator-icon-indeterminate;
|
|
|
|
@include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
|
2015-01-01 20:01:55 +00:00
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
|
|
|
|
2014-12-24 12:47:08 +00:00
|
|
|
// Radios
|
|
|
|
//
|
|
|
|
// Tweak just a few things for radios.
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-radio {
|
|
|
|
.custom-control-indicator {
|
(#22414) Rename for consistency `$custom-checkbox-border-radius`, `$custom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
2017-07-14 00:00:37 +00:00
|
|
|
border-radius: $custom-radio-indicator-border-radius;
|
2014-12-25 23:40:24 +00:00
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control-input:checked ~ .custom-control-indicator {
|
(#22414) Rename for consistency `$custom-checkbox-border-radius`, `$custom-checkbox-icon-checked`, `$custom-checkbox-indeterminate-bg`, `$custom-checkbox-icon-indeterminate`, `$custom-checkbox-indeterminate-box-shadow`, `$custom-radio-border-radius`, `$custom-radio-icon-checked` to `$custom-checkbox-indicator-border-radius`, `$custom-checkbox-indicator-icon-checked`, `$custom-checkbox-indicator-indeterminate-bg`, `$custom-checkbox-indicator-icon-indeterminate`, `$custom-checkbox-indicator-indeterminate-box-shadow`, `$custom-radio-indicator-border-radius`, `$custom-radio-indicator-icon-checked`, respectively
2017-07-14 00:00:37 +00:00
|
|
|
background-image: $custom-radio-indicator-icon-checked;
|
2014-12-25 23:40:24 +00:00
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
|
|
|
|
2015-04-18 18:17:32 +00:00
|
|
|
|
2014-12-24 23:45:37 +00:00
|
|
|
// Layout options
|
|
|
|
//
|
|
|
|
// By default radios and checkboxes are `inline-block` with no additional spacing
|
|
|
|
// set. Use these optional classes to tweak the layout.
|
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-controls-stacked {
|
2016-12-25 22:11:49 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
.custom-control {
|
2016-12-08 05:27:49 +00:00
|
|
|
margin-bottom: $custom-control-spacer-y;
|
2014-12-25 23:40:24 +00:00
|
|
|
|
2016-01-06 07:25:42 +00:00
|
|
|
+ .custom-control {
|
2014-12-25 23:40:24 +00:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2014-12-24 23:45:37 +00:00
|
|
|
}
|
|
|
|
|
2015-04-18 18:17:32 +00:00
|
|
|
|
2014-12-25 23:40:24 +00:00
|
|
|
// Select
|
|
|
|
//
|
2015-08-19 02:26:18 +00:00
|
|
|
// Replaces the browser default select with a custom one, mostly pulled from
|
|
|
|
// http://primercss.io.
|
2015-08-23 08:12:00 +00:00
|
|
|
//
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:34:51 +00:00
|
|
|
.custom-select {
|
2014-12-25 23:40:24 +00:00
|
|
|
display: inline-block;
|
2015-08-19 02:26:18 +00:00
|
|
|
max-width: 100%;
|
2017-04-22 18:56:01 +00:00
|
|
|
height: $input-height;
|
2016-01-17 06:29:51 +00:00
|
|
|
padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
|
2016-12-23 07:19:21 +00:00
|
|
|
line-height: $custom-select-line-height;
|
2016-01-17 06:29:51 +00:00
|
|
|
color: $custom-select-color;
|
2015-12-08 09:06:23 +00:00
|
|
|
vertical-align: middle;
|
2016-02-07 01:00:57 +00:00
|
|
|
background: $custom-select-bg $custom-select-indicator no-repeat right $custom-select-padding-x center;
|
2016-01-17 06:29:51 +00:00
|
|
|
background-size: $custom-select-bg-size;
|
|
|
|
border: $custom-select-border-width solid $custom-select-border-color;
|
2017-04-09 04:58:26 +00:00
|
|
|
@if $enable-rounded {
|
|
|
|
border-radius: $custom-select-border-radius;
|
|
|
|
} @else {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2017-02-21 06:25:07 +00:00
|
|
|
appearance: none;
|
2015-08-19 02:26:18 +00:00
|
|
|
|
|
|
|
&:focus {
|
2016-01-17 06:29:51 +00:00
|
|
|
border-color: $custom-select-focus-border-color;
|
2015-08-23 08:00:22 +00:00
|
|
|
outline: none;
|
2016-01-17 06:29:51 +00:00
|
|
|
@include box-shadow($custom-select-focus-box-shadow);
|
2016-04-11 20:18:48 +00:00
|
|
|
|
|
|
|
&::-ms-value {
|
|
|
|
// For visual consistency with other platforms/browsers,
|
|
|
|
// supress the default white text on blue background highlight given to
|
|
|
|
// the selected option text when the (still closed) <select> receives focus
|
|
|
|
// in IE and (under certain conditions) Edge.
|
|
|
|
// See https://github.com/twbs/bootstrap/issues/19398.
|
|
|
|
color: $input-color;
|
|
|
|
background-color: $input-bg;
|
|
|
|
}
|
2015-08-19 02:26:18 +00:00
|
|
|
}
|
|
|
|
|
2017-10-03 04:00:57 +00:00
|
|
|
&[multiple] {
|
|
|
|
height: auto;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
|
2016-04-14 17:11:51 +00:00
|
|
|
&:disabled {
|
|
|
|
color: $custom-select-disabled-color;
|
|
|
|
background-color: $custom-select-disabled-bg;
|
|
|
|
}
|
|
|
|
|
2015-08-19 02:26:18 +00:00
|
|
|
// Hides the default caret in IE11
|
|
|
|
&::-ms-expand {
|
|
|
|
opacity: 0;
|
2015-01-01 09:05:01 +00:00
|
|
|
}
|
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:34:51 +00:00
|
|
|
.custom-select-sm {
|
2017-04-22 18:56:27 +00:00
|
|
|
height: $custom-select-height-sm;
|
2016-01-17 06:29:51 +00:00
|
|
|
padding-top: $custom-select-padding-y;
|
|
|
|
padding-bottom: $custom-select-padding-y;
|
2017-04-22 18:56:27 +00:00
|
|
|
font-size: $custom-select-font-size-sm;
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
|
|
|
|
2015-04-18 18:17:32 +00:00
|
|
|
|
2014-12-25 23:40:24 +00:00
|
|
|
// File
|
|
|
|
//
|
|
|
|
// Custom file input.
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-06 07:45:44 +00:00
|
|
|
.custom-file {
|
2014-12-25 23:40:24 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2015-12-29 14:41:21 +00:00
|
|
|
max-width: 100%;
|
2016-01-17 23:21:16 +00:00
|
|
|
height: $custom-file-height;
|
2016-05-16 14:00:45 +00:00
|
|
|
margin-bottom: 0;
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
2016-01-06 07:45:44 +00:00
|
|
|
|
|
|
|
.custom-file-input {
|
2016-01-17 23:21:16 +00:00
|
|
|
min-width: $custom-file-width;
|
2015-12-29 14:41:21 +00:00
|
|
|
max-width: 100%;
|
2017-01-04 03:44:44 +00:00
|
|
|
height: $custom-file-height;
|
2014-12-25 23:40:24 +00:00
|
|
|
margin: 0;
|
|
|
|
opacity: 0;
|
2016-01-06 07:45:44 +00:00
|
|
|
|
|
|
|
&:focus ~ .custom-file-control {
|
2017-08-11 06:01:52 +00:00
|
|
|
box-shadow: $custom-file-focus-box-shadow;
|
2016-01-06 07:45:44 +00:00
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|
2016-01-06 07:45:44 +00:00
|
|
|
|
|
|
|
.custom-file-control {
|
2014-12-25 23:40:24 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 5;
|
2016-01-17 23:21:16 +00:00
|
|
|
height: $custom-file-height;
|
2017-08-11 06:01:52 +00:00
|
|
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
2016-01-17 23:21:16 +00:00
|
|
|
line-height: $custom-file-line-height;
|
|
|
|
color: $custom-file-color;
|
2017-01-04 03:44:44 +00:00
|
|
|
pointer-events: none;
|
2014-12-25 23:40:24 +00:00
|
|
|
user-select: none;
|
2016-01-17 23:21:16 +00:00
|
|
|
background-color: $custom-file-bg;
|
|
|
|
border: $custom-file-border-width solid $custom-file-border-color;
|
2016-01-17 23:32:01 +00:00
|
|
|
@include border-radius($custom-file-border-radius);
|
2016-01-17 23:21:16 +00:00
|
|
|
@include box-shadow($custom-file-box-shadow);
|
2014-12-24 12:13:23 +00:00
|
|
|
|
2016-01-18 04:50:55 +00:00
|
|
|
@each $lang, $text in map-get($custom-file-text, placeholder) {
|
2017-03-18 20:23:10 +00:00
|
|
|
&:lang(#{$lang}):empty::after {
|
2016-01-18 04:50:55 +00:00
|
|
|
content: $text;
|
|
|
|
}
|
2016-01-06 07:45:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
2017-10-02 21:18:33 +00:00
|
|
|
top: -$custom-file-border-width;
|
|
|
|
right: -$custom-file-border-width;
|
|
|
|
bottom: -$custom-file-border-width;
|
2016-01-06 07:45:44 +00:00
|
|
|
z-index: 6;
|
|
|
|
display: block;
|
2016-01-17 23:21:16 +00:00
|
|
|
height: $custom-file-height;
|
2017-08-11 06:01:52 +00:00
|
|
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
2016-01-17 23:21:16 +00:00
|
|
|
line-height: $custom-file-line-height;
|
|
|
|
color: $custom-file-button-color;
|
2017-10-19 16:03:33 +00:00
|
|
|
@include gradient-bg($custom-file-button-bg);
|
2017-10-02 21:18:33 +00:00
|
|
|
border: $custom-file-border-width solid $custom-file-border-color;
|
|
|
|
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
2016-01-06 07:45:44 +00:00
|
|
|
}
|
2016-01-18 04:50:55 +00:00
|
|
|
|
|
|
|
@each $lang, $text in map-get($custom-file-text, button-label) {
|
|
|
|
&:lang(#{$lang})::before {
|
|
|
|
content: $text;
|
|
|
|
}
|
|
|
|
}
|
2014-12-24 12:13:23 +00:00
|
|
|
}
|