uikit3-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +10 -0
- data/assets/images/backgrounds/accordion-close.svg +4 -0
- data/assets/images/backgrounds/accordion-open.svg +3 -0
- data/assets/images/backgrounds/divider-icon.svg +3 -0
- data/assets/images/backgrounds/form-checkbox-indeterminate.svg +3 -0
- data/assets/images/backgrounds/form-checkbox.svg +3 -0
- data/assets/images/backgrounds/form-radio.svg +3 -0
- data/assets/images/backgrounds/form-select.svg +4 -0
- data/assets/images/backgrounds/list-bullet.svg +3 -0
- data/assets/images/backgrounds/nav-parent-close.svg +3 -0
- data/assets/images/backgrounds/nav-parent-open.svg +3 -0
- data/assets/images/components/close-large.svg +4 -0
- data/assets/images/components/close.svg +4 -0
- data/assets/images/components/navbar-toggle.svg +5 -0
- data/assets/images/components/overlay.svg +4 -0
- data/assets/images/components/pagination-next.svg +3 -0
- data/assets/images/components/pagination-previous.svg +3 -0
- data/assets/images/components/search-default.svg +4 -0
- data/assets/images/components/search-large.svg +4 -0
- data/assets/images/components/search-navbar.svg +4 -0
- data/assets/images/components/slidenav-large-next.svg +3 -0
- data/assets/images/components/slidenav-large-previous.svg +3 -0
- data/assets/images/components/slidenav-next.svg +3 -0
- data/assets/images/components/slidenav-previous.svg +3 -0
- data/assets/images/components/spinner.svg +3 -0
- data/assets/images/components/totop.svg +3 -0
- data/assets/images/symbols/album.svg +5 -0
- data/assets/images/symbols/arrow-down.svg +4 -0
- data/assets/images/symbols/arrow-left.svg +4 -0
- data/assets/images/symbols/arrow-right.svg +4 -0
- data/assets/images/symbols/arrow-up.svg +4 -0
- data/assets/images/symbols/ban.svg +4 -0
- data/assets/images/symbols/behance.svg +5 -0
- data/assets/images/symbols/bell.svg +4 -0
- data/assets/images/symbols/bold.svg +3 -0
- data/assets/images/symbols/bolt.svg +3 -0
- data/assets/images/symbols/bookmark.svg +3 -0
- data/assets/images/symbols/calendar.svg +5 -0
- data/assets/images/symbols/camera.svg +4 -0
- data/assets/images/symbols/cart.svg +5 -0
- data/assets/images/symbols/check.svg +3 -0
- data/assets/images/symbols/chevron-down.svg +3 -0
- data/assets/images/symbols/chevron-left.svg +3 -0
- data/assets/images/symbols/chevron-right.svg +3 -0
- data/assets/images/symbols/chevron-up.svg +3 -0
- data/assets/images/symbols/clock.svg +5 -0
- data/assets/images/symbols/close.svg +4 -0
- data/assets/images/symbols/cloud-download.svg +5 -0
- data/assets/images/symbols/cloud-upload.svg +5 -0
- data/assets/images/symbols/code.svg +4 -0
- data/assets/images/symbols/cog.svg +4 -0
- data/assets/images/symbols/comment.svg +3 -0
- data/assets/images/symbols/commenting.svg +6 -0
- data/assets/images/symbols/comments.svg +4 -0
- data/assets/images/symbols/copy.svg +4 -0
- data/assets/images/symbols/credit-card.svg +4 -0
- data/assets/images/symbols/database.svg +6 -0
- data/assets/images/symbols/desktop.svg +6 -0
- data/assets/images/symbols/download.svg +5 -0
- data/assets/images/symbols/dribbble.svg +6 -0
- data/assets/images/symbols/expand.svg +6 -0
- data/assets/images/symbols/facebook.svg +3 -0
- data/assets/images/symbols/file-edit.svg +4 -0
- data/assets/images/symbols/file.svg +3 -0
- data/assets/images/symbols/flickr.svg +4 -0
- data/assets/images/symbols/folder.svg +3 -0
- data/assets/images/symbols/forward.svg +3 -0
- data/assets/images/symbols/foursquare.svg +3 -0
- data/assets/images/symbols/future.svg +6 -0
- data/assets/images/symbols/git-branch.svg +6 -0
- data/assets/images/symbols/git-fork.svg +6 -0
- data/assets/images/symbols/github-alt.svg +3 -0
- data/assets/images/symbols/github.svg +3 -0
- data/assets/images/symbols/google-plus.svg +4 -0
- data/assets/images/symbols/google.svg +3 -0
- data/assets/images/symbols/grid.svg +11 -0
- data/assets/images/symbols/happy.svg +6 -0
- data/assets/images/symbols/hashtag.svg +3 -0
- data/assets/images/symbols/heart.svg +3 -0
- data/assets/images/symbols/history.svg +6 -0
- data/assets/images/symbols/home.svg +5 -0
- data/assets/images/symbols/image.svg +6 -0
- data/assets/images/symbols/info.svg +4 -0
- data/assets/images/symbols/instagram.svg +5 -0
- data/assets/images/symbols/italic.svg +3 -0
- data/assets/images/symbols/joomla.svg +6 -0
- data/assets/images/symbols/laptop.svg +4 -0
- data/assets/images/symbols/lifesaver.svg +3 -0
- data/assets/images/symbols/link.svg +5 -0
- data/assets/images/symbols/linkedin.svg +4 -0
- data/assets/images/symbols/list.svg +8 -0
- data/assets/images/symbols/location.svg +4 -0
- data/assets/images/symbols/lock.svg +4 -0
- data/assets/images/symbols/mail.svg +4 -0
- data/assets/images/symbols/menu.svg +5 -0
- data/assets/images/symbols/minus-circle.svg +4 -0
- data/assets/images/symbols/minus.svg +3 -0
- data/assets/images/symbols/more-vertical.svg +5 -0
- data/assets/images/symbols/more.svg +5 -0
- data/assets/images/symbols/move.svg +8 -0
- data/assets/images/symbols/nut.svg +4 -0
- data/assets/images/symbols/pagekit.svg +3 -0
- data/assets/images/symbols/paint-bucket.svg +5 -0
- data/assets/images/symbols/pencil.svg +4 -0
- data/assets/images/symbols/phone-landscape.svg +4 -0
- data/assets/images/symbols/phone-receiver.svg +3 -0
- data/assets/images/symbols/phone.svg +4 -0
- data/assets/images/symbols/pinterest.svg +3 -0
- data/assets/images/symbols/play-circle.svg +4 -0
- data/assets/images/symbols/play.svg +3 -0
- data/assets/images/symbols/plus-circle.svg +5 -0
- data/assets/images/symbols/plus.svg +4 -0
- data/assets/images/symbols/pull.svg +5 -0
- data/assets/images/symbols/push.svg +5 -0
- data/assets/images/symbols/question.svg +5 -0
- data/assets/images/symbols/quote-right.svg +4 -0
- data/assets/images/symbols/refresh.svg +4 -0
- data/assets/images/symbols/reply.svg +3 -0
- data/assets/images/symbols/rss.svg +5 -0
- data/assets/images/symbols/search.svg +4 -0
- data/assets/images/symbols/server.svg +15 -0
- data/assets/images/symbols/settings.svg +11 -0
- data/assets/images/symbols/shrink.svg +6 -0
- data/assets/images/symbols/sign-in.svg +4 -0
- data/assets/images/symbols/sign-out.svg +4 -0
- data/assets/images/symbols/social.svg +7 -0
- data/assets/images/symbols/soundcloud.svg +6 -0
- data/assets/images/symbols/star.svg +3 -0
- data/assets/images/symbols/strikethrough.svg +4 -0
- data/assets/images/symbols/table.svg +6 -0
- data/assets/images/symbols/tablet-landscape.svg +4 -0
- data/assets/images/symbols/tablet.svg +4 -0
- data/assets/images/symbols/tag.svg +4 -0
- data/assets/images/symbols/thumbnails.svg +6 -0
- data/assets/images/symbols/trash.svg +7 -0
- data/assets/images/symbols/triangle-down.svg +3 -0
- data/assets/images/symbols/triangle-left.svg +3 -0
- data/assets/images/symbols/triangle-right.svg +3 -0
- data/assets/images/symbols/triangle-up.svg +3 -0
- data/assets/images/symbols/tumblr.svg +3 -0
- data/assets/images/symbols/tv.svg +4 -0
- data/assets/images/symbols/twitter.svg +3 -0
- data/assets/images/symbols/uikit.svg +4 -0
- data/assets/images/symbols/unlock.svg +4 -0
- data/assets/images/symbols/upload.svg +5 -0
- data/assets/images/symbols/user.svg +4 -0
- data/assets/images/symbols/users.svg +5 -0
- data/assets/images/symbols/video-camera.svg +4 -0
- data/assets/images/symbols/vimeo.svg +3 -0
- data/assets/images/symbols/warning.svg +5 -0
- data/assets/images/symbols/whatsapp.svg +3 -0
- data/assets/images/symbols/wordpress.svg +3 -0
- data/assets/images/symbols/world.svg +7 -0
- data/assets/images/symbols/xing.svg +4 -0
- data/assets/images/symbols/youtube.svg +3 -0
- data/assets/javascripts/uikit.js +6398 -0
- data/assets/stylesheets/components/_import.components.less +55 -0
- data/assets/stylesheets/components/_import.utilities.less +19 -0
- data/assets/stylesheets/components/accordion.less +110 -0
- data/assets/stylesheets/components/alert.less +147 -0
- data/assets/stylesheets/components/align.less +142 -0
- data/assets/stylesheets/components/animation.less +638 -0
- data/assets/stylesheets/components/article.less +113 -0
- data/assets/stylesheets/components/background.less +136 -0
- data/assets/stylesheets/components/badge.less +104 -0
- data/assets/stylesheets/components/base.less +737 -0
- data/assets/stylesheets/components/breadcrumb.less +150 -0
- data/assets/stylesheets/components/button.less +541 -0
- data/assets/stylesheets/components/card.less +363 -0
- data/assets/stylesheets/components/close.less +119 -0
- data/assets/stylesheets/components/column.less +285 -0
- data/assets/stylesheets/components/comment.less +171 -0
- data/assets/stylesheets/components/container.less +106 -0
- data/assets/stylesheets/components/cover.less +56 -0
- data/assets/stylesheets/components/description-list.less +71 -0
- data/assets/stylesheets/components/divider.less +147 -0
- data/assets/stylesheets/components/dotnav.less +190 -0
- data/assets/stylesheets/components/drop.less +74 -0
- data/assets/stylesheets/components/dropdown.less +150 -0
- data/assets/stylesheets/components/flex.less +335 -0
- data/assets/stylesheets/components/form.less +836 -0
- data/assets/stylesheets/components/grid.less +363 -0
- data/assets/stylesheets/components/heading.less +238 -0
- data/assets/stylesheets/components/icon.less +242 -0
- data/assets/stylesheets/components/iconnav.less +166 -0
- data/assets/stylesheets/components/inverse.less +52 -0
- data/assets/stylesheets/components/label.less +110 -0
- data/assets/stylesheets/components/link.less +91 -0
- data/assets/stylesheets/components/list.less +205 -0
- data/assets/stylesheets/components/margin.less +161 -0
- data/assets/stylesheets/components/mixin.less +20 -0
- data/assets/stylesheets/components/modal.less +403 -0
- data/assets/stylesheets/components/nav.less +438 -0
- data/assets/stylesheets/components/navbar.less +596 -0
- data/assets/stylesheets/components/notification.less +190 -0
- data/assets/stylesheets/components/offcanvas.less +250 -0
- data/assets/stylesheets/components/overlay.less +89 -0
- data/assets/stylesheets/components/padding.less +79 -0
- data/assets/stylesheets/components/pagination.less +169 -0
- data/assets/stylesheets/components/placeholder.less +45 -0
- data/assets/stylesheets/components/position.less +221 -0
- data/assets/stylesheets/components/print.less +61 -0
- data/assets/stylesheets/components/progress.less +102 -0
- data/assets/stylesheets/components/search.less +442 -0
- data/assets/stylesheets/components/section.less +230 -0
- data/assets/stylesheets/components/slidenav.less +145 -0
- data/assets/stylesheets/components/sortable.less +101 -0
- data/assets/stylesheets/components/spinner.less +103 -0
- data/assets/stylesheets/components/sticky.less +57 -0
- data/assets/stylesheets/components/subnav.less +305 -0
- data/assets/stylesheets/components/switcher.less +47 -0
- data/assets/stylesheets/components/tab.less +226 -0
- data/assets/stylesheets/components/table.less +207 -0
- data/assets/stylesheets/components/text.less +254 -0
- data/assets/stylesheets/components/tooltip.less +84 -0
- data/assets/stylesheets/components/totop.less +97 -0
- data/assets/stylesheets/components/transition.less +187 -0
- data/assets/stylesheets/components/utility.less +516 -0
- data/assets/stylesheets/components/variables.less +117 -0
- data/assets/stylesheets/components/visibility.less +109 -0
- data/assets/stylesheets/components/width.less +418 -0
- data/assets/stylesheets/theme/_import.less +72 -0
- data/assets/stylesheets/theme/accordion.less +76 -0
- data/assets/stylesheets/theme/alert.less +76 -0
- data/assets/stylesheets/theme/align.less +14 -0
- data/assets/stylesheets/theme/animation.less +14 -0
- data/assets/stylesheets/theme/article.less +60 -0
- data/assets/stylesheets/theme/background.less +14 -0
- data/assets/stylesheets/theme/badge.less +29 -0
- data/assets/stylesheets/theme/base.less +134 -0
- data/assets/stylesheets/theme/breadcrumb.less +42 -0
- data/assets/stylesheets/theme/button.less +221 -0
- data/assets/stylesheets/theme/card.less +193 -0
- data/assets/stylesheets/theme/close.less +34 -0
- data/assets/stylesheets/theme/column.less +14 -0
- data/assets/stylesheets/theme/comment.less +72 -0
- data/assets/stylesheets/theme/container.less +14 -0
- data/assets/stylesheets/theme/description-list.less +36 -0
- data/assets/stylesheets/theme/divider.less +41 -0
- data/assets/stylesheets/theme/dotnav.less +41 -0
- data/assets/stylesheets/theme/drop.less +14 -0
- data/assets/stylesheets/theme/dropdown.less +45 -0
- data/assets/stylesheets/theme/form.less +150 -0
- data/assets/stylesheets/theme/grid.less +14 -0
- data/assets/stylesheets/theme/heading.less +59 -0
- data/assets/stylesheets/theme/icon.less +55 -0
- data/assets/stylesheets/theme/iconnav.less +34 -0
- data/assets/stylesheets/theme/inverse.less +14 -0
- data/assets/stylesheets/theme/label.less +46 -0
- data/assets/stylesheets/theme/link.less +35 -0
- data/assets/stylesheets/theme/list.less +49 -0
- data/assets/stylesheets/theme/margin.less +14 -0
- data/assets/stylesheets/theme/modal.less +95 -0
- data/assets/stylesheets/theme/nav.less +94 -0
- data/assets/stylesheets/theme/navbar.less +175 -0
- data/assets/stylesheets/theme/notification.less +44 -0
- data/assets/stylesheets/theme/offcanvas.less +26 -0
- data/assets/stylesheets/theme/overlay.less +33 -0
- data/assets/stylesheets/theme/padding.less +14 -0
- data/assets/stylesheets/theme/pagination.less +44 -0
- data/assets/stylesheets/theme/placeholder.less +29 -0
- data/assets/stylesheets/theme/position.less +14 -0
- data/assets/stylesheets/theme/progress.less +27 -0
- data/assets/stylesheets/theme/search.less +67 -0
- data/assets/stylesheets/theme/section.less +34 -0
- data/assets/stylesheets/theme/slidenav.less +49 -0
- data/assets/stylesheets/theme/sortable.less +38 -0
- data/assets/stylesheets/theme/spinner.less +14 -0
- data/assets/stylesheets/theme/sticky.less +14 -0
- data/assets/stylesheets/theme/subnav.less +81 -0
- data/assets/stylesheets/theme/tab.less +139 -0
- data/assets/stylesheets/theme/table.less +65 -0
- data/assets/stylesheets/theme/text.less +60 -0
- data/assets/stylesheets/theme/tooltip.less +20 -0
- data/assets/stylesheets/theme/totop.less +35 -0
- data/assets/stylesheets/theme/transition.less +14 -0
- data/assets/stylesheets/theme/utility.less +46 -0
- data/assets/stylesheets/theme/variables.less +36 -0
- data/assets/stylesheets/theme/width.less +14 -0
- data/assets/stylesheets/uikit.less +17 -0
- data/assets/stylesheets/uikit.theme.less +23 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/uikit3/rails.rb +8 -0
- data/lib/uikit3/rails/version.rb +5 -0
- data/uikit3-rails.gemspec +29 -0
- metadata +391 -0
@@ -0,0 +1,836 @@
|
|
1
|
+
// Name: Form
|
2
|
+
// Description: Styles for forms
|
3
|
+
//
|
4
|
+
// Component: `uk-form-*`
|
5
|
+
// `uk-input`
|
6
|
+
// `uk-select`
|
7
|
+
// `uk-textarea`
|
8
|
+
// `uk-radio`
|
9
|
+
// `uk-checkbox`
|
10
|
+
// `uk-legend`
|
11
|
+
// `uk-fieldset`
|
12
|
+
//
|
13
|
+
// Sub-objects: `uk-form-custom`
|
14
|
+
// `uk-form-stacked`
|
15
|
+
// `uk-form-horizontal`
|
16
|
+
// `uk-form-label`
|
17
|
+
// `uk-form-controls`
|
18
|
+
// `uk-form-icon`
|
19
|
+
// `uk-form-icon-flip`
|
20
|
+
//
|
21
|
+
// Modifiers: `uk-form-small`
|
22
|
+
// `uk-form-large`
|
23
|
+
// `uk-form-danger`
|
24
|
+
// `uk-form-success`
|
25
|
+
// `uk-form-blank`
|
26
|
+
// `uk-form-width-xsmall`
|
27
|
+
// `uk-form-width-small`
|
28
|
+
// `uk-form-width-medium`
|
29
|
+
// `uk-form-width-large`
|
30
|
+
// `uk-form-controls-text`
|
31
|
+
//
|
32
|
+
// ========================================================================
|
33
|
+
|
34
|
+
|
35
|
+
// Variables
|
36
|
+
// ========================================================================
|
37
|
+
|
38
|
+
@form-height: @global-control-height;
|
39
|
+
@form-line-height: @form-height;
|
40
|
+
@form-padding-horizontal: 6px;
|
41
|
+
@form-padding-vertical: 4px;
|
42
|
+
|
43
|
+
@form-background: @global-muted-background;
|
44
|
+
@form-color: @global-color;
|
45
|
+
|
46
|
+
@form-focus-background: @global-muted-background;
|
47
|
+
@form-focus-color: @global-color;
|
48
|
+
|
49
|
+
@form-disabled-background: @global-muted-background;
|
50
|
+
@form-disabled-color: @global-muted-color;
|
51
|
+
|
52
|
+
@form-placeholder-color: @global-muted-color;
|
53
|
+
|
54
|
+
@form-small-height: @global-control-small-height;
|
55
|
+
@form-large-height: @global-control-large-height;
|
56
|
+
@form-small-line-height: @form-small-height;
|
57
|
+
@form-large-line-height: @form-large-height;
|
58
|
+
@form-small-font-size: @global-small-font-size;
|
59
|
+
@form-large-font-size: @global-medium-font-size;
|
60
|
+
|
61
|
+
@form-danger-color: @global-danger-background;
|
62
|
+
@form-success-color: @global-success-background;
|
63
|
+
|
64
|
+
@form-width-xsmall: 40px;
|
65
|
+
@form-width-small: 130px;
|
66
|
+
@form-width-medium: 200px;
|
67
|
+
@form-width-large: 500px;
|
68
|
+
|
69
|
+
@form-select-padding-right: 20px;
|
70
|
+
@form-select-icon-color: @global-color;
|
71
|
+
@form-select-disabled-icon-color: @global-muted-color;
|
72
|
+
|
73
|
+
@form-radio-size: 16px;
|
74
|
+
@form-radio-margin-top: -4px;
|
75
|
+
@form-radio-background: darken(@global-muted-background, 5%);
|
76
|
+
|
77
|
+
@form-radio-checked-background: @global-primary-background;
|
78
|
+
@form-radio-checked-icon-color: @global-inverse-color;
|
79
|
+
|
80
|
+
@form-radio-checked-focus-background: darken(@global-primary-background, 10%);
|
81
|
+
|
82
|
+
@form-radio-disabled-background: @global-muted-background;
|
83
|
+
@form-radio-disabled-icon-color: @global-muted-color;
|
84
|
+
|
85
|
+
@form-legend-font-size: @global-large-font-size;
|
86
|
+
@form-legend-line-height: 1.4;
|
87
|
+
|
88
|
+
@form-stacked-margin-bottom: @global-small-margin;
|
89
|
+
|
90
|
+
@form-horizontal-label-width: 200px;
|
91
|
+
@form-horizontal-label-margin-top: 7px;
|
92
|
+
@form-horizontal-controls-margin-left: 215px;
|
93
|
+
@form-horizontal-controls-text-padding-top: 7px;
|
94
|
+
|
95
|
+
@form-icon-width: 30px;
|
96
|
+
@form-icon-font-size: @global-font-size;
|
97
|
+
@form-icon-color: @global-muted-color;
|
98
|
+
@form-icon-hover-color: @global-color;
|
99
|
+
|
100
|
+
@internal-form-select-image: "../../images/backgrounds/form-select.svg";
|
101
|
+
@internal-form-radio-image: "../../images/backgrounds/form-radio.svg";
|
102
|
+
@internal-form-checkbox-image: "../../images/backgrounds/form-checkbox.svg";
|
103
|
+
@internal-form-checkbox-indeterminate-image: "../../images/backgrounds/form-checkbox-indeterminate.svg";
|
104
|
+
|
105
|
+
|
106
|
+
/* ========================================================================
|
107
|
+
Component: Form
|
108
|
+
========================================================================== */
|
109
|
+
|
110
|
+
/*
|
111
|
+
* 1. Define consistent box sizing.
|
112
|
+
* Default is `content-box` with following exceptions set to `border-box`
|
113
|
+
* `select`, `input[type="checkbox"]` and `input[type="radio"]`
|
114
|
+
* `input[type="search"]` in Chrome, Safari and Opera
|
115
|
+
* `input[type="color"]` in Firefox
|
116
|
+
* 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera.
|
117
|
+
* 3. Remove `border-radius` in iOS.
|
118
|
+
* 4. Change font properties to `inherit` in all browsers
|
119
|
+
*/
|
120
|
+
|
121
|
+
.uk-input,
|
122
|
+
.uk-select,
|
123
|
+
.uk-textarea,
|
124
|
+
.uk-radio,
|
125
|
+
.uk-checkbox {
|
126
|
+
/* 1 */
|
127
|
+
box-sizing: border-box;
|
128
|
+
/* 2 */
|
129
|
+
margin: 0;
|
130
|
+
/* 3 */
|
131
|
+
border-radius: 0;
|
132
|
+
/* 4 */
|
133
|
+
font: inherit;
|
134
|
+
}
|
135
|
+
|
136
|
+
/*
|
137
|
+
* Show the overflow in Edge.
|
138
|
+
*/
|
139
|
+
|
140
|
+
.uk-input { overflow: visible; }
|
141
|
+
|
142
|
+
/*
|
143
|
+
* Remove the inheritance of text transform in Firefox.
|
144
|
+
*/
|
145
|
+
|
146
|
+
.uk-select { text-transform: none; }
|
147
|
+
|
148
|
+
/*
|
149
|
+
* 1. Change font properties to `inherit` in all browsers
|
150
|
+
* 2. Don't inherit the `font-weight` and use `bold` instead.
|
151
|
+
* NOTE: Both declarations don't work in Chrome, Safari and Opera.
|
152
|
+
*/
|
153
|
+
|
154
|
+
.uk-select optgroup {
|
155
|
+
/* 1 */
|
156
|
+
font: inherit;
|
157
|
+
/* 2 */
|
158
|
+
font-weight: bold;
|
159
|
+
}
|
160
|
+
|
161
|
+
/*
|
162
|
+
* Remove the default vertical scrollbar in IE.
|
163
|
+
*/
|
164
|
+
|
165
|
+
.uk-textarea { overflow: auto; }
|
166
|
+
|
167
|
+
/*
|
168
|
+
* Remove the inner padding and cancel buttons in Chrome on OS X and Safari on OS X.
|
169
|
+
*/
|
170
|
+
|
171
|
+
.uk-input[type="search"]::-webkit-search-cancel-button,
|
172
|
+
.uk-input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
|
173
|
+
|
174
|
+
|
175
|
+
/*
|
176
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
177
|
+
*/
|
178
|
+
|
179
|
+
.uk-input[type="number"]::-webkit-inner-spin-button,
|
180
|
+
.uk-input[type="number"]::-webkit-outer-spin-button { height: auto; }
|
181
|
+
|
182
|
+
/*
|
183
|
+
* Removes placeholder transparency in Firefox.
|
184
|
+
*/
|
185
|
+
|
186
|
+
.uk-input::-moz-placeholder,
|
187
|
+
.uk-textarea::-moz-placeholder { opacity: 1; }
|
188
|
+
|
189
|
+
/*
|
190
|
+
* Remove the padding in IE 10-.
|
191
|
+
*/
|
192
|
+
|
193
|
+
.uk-radio,
|
194
|
+
.uk-checkbox { padding: 0; }
|
195
|
+
|
196
|
+
/*
|
197
|
+
* Improves consistency of cursor style for clickable elements
|
198
|
+
*/
|
199
|
+
|
200
|
+
.uk-radio:not(:disabled),
|
201
|
+
.uk-checkbox:not(:disabled) { cursor: pointer; }
|
202
|
+
|
203
|
+
/*
|
204
|
+
* Define consistent border, margin, and padding.
|
205
|
+
*/
|
206
|
+
|
207
|
+
.uk-fieldset {
|
208
|
+
border: none;
|
209
|
+
margin: 0;
|
210
|
+
padding: 0;
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
/* Input, select and textarea
|
215
|
+
* Allowed: `text`, `password`, `datetime`, `datetime-local`, `date`, `month`,
|
216
|
+
`time`, `week`, `number`, `email`, `url`, `search`, `tel`, `color`
|
217
|
+
* Disallowed: `range`, `radio`, `checkbox`, `file`, `submit`, `reset` and `image`
|
218
|
+
========================================================================== */
|
219
|
+
|
220
|
+
/*
|
221
|
+
* Remove default style in iOS.
|
222
|
+
*/
|
223
|
+
|
224
|
+
.uk-input,
|
225
|
+
.uk-textarea { -webkit-appearance: none; }
|
226
|
+
|
227
|
+
/*
|
228
|
+
* 1. Prevent content overflow if a fixed width is used
|
229
|
+
* 2. Take the full width
|
230
|
+
* 3. Reset default
|
231
|
+
* 4. Style
|
232
|
+
*/
|
233
|
+
|
234
|
+
.uk-input,
|
235
|
+
.uk-select,
|
236
|
+
.uk-textarea {
|
237
|
+
/* 1 */
|
238
|
+
max-width: 100%;
|
239
|
+
/* 2 */
|
240
|
+
width: 100%;
|
241
|
+
/* 3 */
|
242
|
+
border: 0 none;
|
243
|
+
/* 4 */
|
244
|
+
padding: 0 @form-padding-horizontal;
|
245
|
+
background: @form-background;
|
246
|
+
color: @form-color;
|
247
|
+
.hook-form;
|
248
|
+
}
|
249
|
+
|
250
|
+
/*
|
251
|
+
* Single-line
|
252
|
+
* 1. Allow an `a` element to look like a `input` or `select` element
|
253
|
+
* 2. Make sure line-height is not larger than height
|
254
|
+
* Also needed to center the text vertically if `a` element is used
|
255
|
+
*/
|
256
|
+
|
257
|
+
.uk-input,
|
258
|
+
.uk-select:not([multiple]):not([size]) {
|
259
|
+
height: @form-height;
|
260
|
+
vertical-align: middle;
|
261
|
+
/* 1 */
|
262
|
+
display: inline-block;
|
263
|
+
/* 2 */
|
264
|
+
line-height: @form-line-height;
|
265
|
+
.hook-form-single-line;
|
266
|
+
}
|
267
|
+
|
268
|
+
/*
|
269
|
+
* Multi-line
|
270
|
+
*/
|
271
|
+
|
272
|
+
.uk-select[multiple],
|
273
|
+
.uk-select[size],
|
274
|
+
.uk-textarea {
|
275
|
+
padding-top: @form-padding-vertical;
|
276
|
+
padding-bottom: @form-padding-vertical;
|
277
|
+
vertical-align: top;
|
278
|
+
.hook-form-multi-line;
|
279
|
+
}
|
280
|
+
|
281
|
+
/* Focus */
|
282
|
+
.uk-input:focus,
|
283
|
+
.uk-select:focus,
|
284
|
+
.uk-textarea:focus {
|
285
|
+
outline: 0;
|
286
|
+
background-color: @form-focus-background;
|
287
|
+
color: @form-focus-color;
|
288
|
+
.hook-form-focus;
|
289
|
+
}
|
290
|
+
|
291
|
+
/* Disabled */
|
292
|
+
.uk-input:disabled,
|
293
|
+
.uk-select:disabled,
|
294
|
+
.uk-textarea:disabled {
|
295
|
+
background-color: @form-disabled-background;
|
296
|
+
color: @form-disabled-color;
|
297
|
+
.hook-form-disabled;
|
298
|
+
}
|
299
|
+
|
300
|
+
/*
|
301
|
+
* Placeholder
|
302
|
+
*/
|
303
|
+
|
304
|
+
.uk-input:-ms-input-placeholder { color: @form-placeholder-color !important; }
|
305
|
+
.uk-input::-moz-placeholder { color: @form-placeholder-color; }
|
306
|
+
.uk-input::-webkit-input-placeholder { color: @form-placeholder-color; }
|
307
|
+
|
308
|
+
.uk-textarea:-ms-input-placeholder { color: @form-placeholder-color !important; }
|
309
|
+
.uk-textarea::-moz-placeholder { color: @form-placeholder-color; }
|
310
|
+
.uk-textarea::-webkit-input-placeholder { color: @form-placeholder-color; }
|
311
|
+
|
312
|
+
|
313
|
+
/* Style modifier (`uk-input`, `uk-select` and `uk-textarea`)
|
314
|
+
========================================================================== */
|
315
|
+
|
316
|
+
/*
|
317
|
+
* Small
|
318
|
+
*/
|
319
|
+
|
320
|
+
.uk-form-small { font-size: @form-small-font-size; }
|
321
|
+
|
322
|
+
.uk-form-small:not(textarea):not([multiple]):not([size]) {
|
323
|
+
height: @form-small-height;
|
324
|
+
line-height: @form-small-line-height;
|
325
|
+
}
|
326
|
+
|
327
|
+
/*
|
328
|
+
* Large
|
329
|
+
*/
|
330
|
+
|
331
|
+
.uk-form-large { font-size: @form-large-font-size; }
|
332
|
+
|
333
|
+
.uk-form-large:not(textarea):not([multiple]):not([size]) {
|
334
|
+
height: @form-large-height;
|
335
|
+
line-height: @form-large-line-height;
|
336
|
+
}
|
337
|
+
|
338
|
+
|
339
|
+
/* Style modifier (`uk-input`, `uk-select` and `uk-textarea`)
|
340
|
+
========================================================================== */
|
341
|
+
|
342
|
+
/*
|
343
|
+
* Error
|
344
|
+
*/
|
345
|
+
|
346
|
+
.uk-form-danger,
|
347
|
+
.uk-form-danger:focus {
|
348
|
+
color: @form-danger-color;
|
349
|
+
.hook-form-danger;
|
350
|
+
}
|
351
|
+
|
352
|
+
/*
|
353
|
+
* Success
|
354
|
+
*/
|
355
|
+
|
356
|
+
.uk-form-success,
|
357
|
+
.uk-form-success:focus {
|
358
|
+
color: @form-success-color;
|
359
|
+
.hook-form-success;
|
360
|
+
}
|
361
|
+
|
362
|
+
/*
|
363
|
+
* Blank
|
364
|
+
*/
|
365
|
+
|
366
|
+
.uk-form-blank {
|
367
|
+
background: none;
|
368
|
+
.hook-form-blank;
|
369
|
+
}
|
370
|
+
|
371
|
+
.uk-form-blank:focus {
|
372
|
+
.hook-form-blank-focus;
|
373
|
+
}
|
374
|
+
|
375
|
+
|
376
|
+
/* Width modifiers (`uk-input`, `uk-select` and `uk-textarea`)
|
377
|
+
========================================================================== */
|
378
|
+
|
379
|
+
/*
|
380
|
+
* Fixed widths
|
381
|
+
* Different widths for mini sized `input` and `select` elements
|
382
|
+
*/
|
383
|
+
|
384
|
+
input.uk-form-width-xsmall { width: @form-width-xsmall; }
|
385
|
+
|
386
|
+
select.uk-form-width-xsmall { width: (@form-width-xsmall + 25px); }
|
387
|
+
|
388
|
+
.uk-form-width-small { width: @form-width-small; }
|
389
|
+
|
390
|
+
.uk-form-width-medium { width: @form-width-medium; }
|
391
|
+
|
392
|
+
.uk-form-width-large { width: @form-width-large; }
|
393
|
+
|
394
|
+
|
395
|
+
/* Select
|
396
|
+
========================================================================== */
|
397
|
+
|
398
|
+
/*
|
399
|
+
* 1. Remove default style. Also works in Firefox
|
400
|
+
* 2. Style
|
401
|
+
* 3. Remove default style in IE 10/11
|
402
|
+
*/
|
403
|
+
|
404
|
+
.uk-select:not([multiple]):not([size]) {
|
405
|
+
/* 1 */
|
406
|
+
-webkit-appearance: none;
|
407
|
+
-moz-appearance: none;
|
408
|
+
/* 2 */
|
409
|
+
padding-right: @form-select-padding-right;
|
410
|
+
.svg-fill(@internal-form-select-image, "#000", @form-select-icon-color);
|
411
|
+
background-repeat: no-repeat;
|
412
|
+
background-position: 100% 50%;
|
413
|
+
}
|
414
|
+
|
415
|
+
/* 3 */
|
416
|
+
.uk-select:not([multiple]):not([size])::-ms-expand { display: none; }
|
417
|
+
|
418
|
+
/*
|
419
|
+
* Disabled
|
420
|
+
*/
|
421
|
+
|
422
|
+
.uk-select:not([multiple]):not([size]):disabled { .svg-fill(@internal-form-select-image, "#000", @form-select-disabled-icon-color); }
|
423
|
+
|
424
|
+
|
425
|
+
/* Radio and checkbox
|
426
|
+
* Note: Only works in Chrome, Safari, Opera and Edge
|
427
|
+
========================================================================== */
|
428
|
+
|
429
|
+
/*
|
430
|
+
* 1. Style
|
431
|
+
* 2. Make box more robust so it clips the child element
|
432
|
+
* 3. Vertical alignment
|
433
|
+
* 4. Remove default style
|
434
|
+
* 5. Fix black background on iOS
|
435
|
+
* 6. Center icons
|
436
|
+
*/
|
437
|
+
|
438
|
+
.uk-radio,
|
439
|
+
.uk-checkbox {
|
440
|
+
/* 1 */
|
441
|
+
display: inline-block;
|
442
|
+
height: @form-radio-size;
|
443
|
+
width: @form-radio-size;
|
444
|
+
/* 2 */
|
445
|
+
overflow: hidden;
|
446
|
+
/* 3 */
|
447
|
+
margin-top: @form-radio-margin-top;
|
448
|
+
vertical-align: middle;
|
449
|
+
/* 4 */
|
450
|
+
-webkit-appearance: none;
|
451
|
+
/* 5 */
|
452
|
+
background-color: @form-radio-background;
|
453
|
+
/* 6 */
|
454
|
+
background-repeat: no-repeat;
|
455
|
+
background-position: 50% 50%;
|
456
|
+
.hook-form-radio;
|
457
|
+
}
|
458
|
+
|
459
|
+
.uk-radio { border-radius: 50%; }
|
460
|
+
|
461
|
+
/* Focus */
|
462
|
+
.uk-radio:focus,
|
463
|
+
.uk-checkbox:focus {
|
464
|
+
outline: none;
|
465
|
+
.hook-form-radio-focus;
|
466
|
+
}
|
467
|
+
|
468
|
+
/*
|
469
|
+
* Checked
|
470
|
+
*/
|
471
|
+
|
472
|
+
.uk-radio:checked,
|
473
|
+
.uk-checkbox:checked,
|
474
|
+
.uk-checkbox:indeterminate {
|
475
|
+
background-color: @form-radio-checked-background;
|
476
|
+
.hook-form-radio-checked;
|
477
|
+
}
|
478
|
+
|
479
|
+
/* Focus */
|
480
|
+
.uk-radio:checked:focus,
|
481
|
+
.uk-checkbox:checked:focus,
|
482
|
+
.uk-checkbox:indeterminate:focus {
|
483
|
+
background-color: @form-radio-checked-focus-background;
|
484
|
+
.hook-form-radio-checked-focus;
|
485
|
+
}
|
486
|
+
|
487
|
+
/*
|
488
|
+
* Icons
|
489
|
+
*/
|
490
|
+
|
491
|
+
.uk-radio:checked { .svg-fill(@internal-form-radio-image, "#000", @form-radio-checked-icon-color); }
|
492
|
+
.uk-checkbox:checked { .svg-fill(@internal-form-checkbox-image, "#000", @form-radio-checked-icon-color); }
|
493
|
+
.uk-checkbox:indeterminate { .svg-fill(@internal-form-checkbox-indeterminate-image, "#000", @form-radio-checked-icon-color); }
|
494
|
+
|
495
|
+
/*
|
496
|
+
* Disabled
|
497
|
+
*/
|
498
|
+
|
499
|
+
.uk-radio:disabled,
|
500
|
+
.uk-checkbox:disabled {
|
501
|
+
background-color: @form-radio-disabled-background;
|
502
|
+
.hook-form-radio-disabled;
|
503
|
+
}
|
504
|
+
|
505
|
+
.uk-radio:disabled:checked { .svg-fill(@internal-form-radio-image, "#000", @form-radio-disabled-icon-color); }
|
506
|
+
.uk-checkbox:disabled:checked { .svg-fill(@internal-form-checkbox-image, "#000", @form-radio-disabled-icon-color); }
|
507
|
+
.uk-checkbox:disabled:indeterminate { .svg-fill(@internal-form-checkbox-indeterminate-image, "#000", @form-radio-disabled-icon-color); }
|
508
|
+
|
509
|
+
|
510
|
+
/* Legend
|
511
|
+
========================================================================== */
|
512
|
+
|
513
|
+
/*
|
514
|
+
* Legend
|
515
|
+
* 1. Behave like block element
|
516
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
517
|
+
* 3. Remove padding so people aren't caught out if they zero out fieldsets.
|
518
|
+
* 4. Style
|
519
|
+
*/
|
520
|
+
|
521
|
+
.uk-legend {
|
522
|
+
/* 1 */
|
523
|
+
width: 100%;
|
524
|
+
/* 2 */
|
525
|
+
color: inherit;
|
526
|
+
/* 3 */
|
527
|
+
padding: 0;
|
528
|
+
/* 4 */
|
529
|
+
font-size: @form-legend-font-size;
|
530
|
+
line-height: @form-legend-line-height;
|
531
|
+
.hook-form-legend;
|
532
|
+
}
|
533
|
+
|
534
|
+
|
535
|
+
/* Custom controls
|
536
|
+
========================================================================== */
|
537
|
+
|
538
|
+
/*
|
539
|
+
* 1. Container fits its content
|
540
|
+
* 2. Create position context
|
541
|
+
* 3. Prevent content overflow
|
542
|
+
* 4. Behave like most inline-block elements
|
543
|
+
*/
|
544
|
+
|
545
|
+
.uk-form-custom {
|
546
|
+
/* 1 */
|
547
|
+
display: inline-block;
|
548
|
+
/* 2 */
|
549
|
+
position: relative;
|
550
|
+
/* 3 */
|
551
|
+
max-width: 100%;
|
552
|
+
/* 4 */
|
553
|
+
vertical-align: middle;
|
554
|
+
}
|
555
|
+
|
556
|
+
/*
|
557
|
+
* 1. Position and resize the form control to always cover its container
|
558
|
+
* 2. Required for Firefox for positioning to the left
|
559
|
+
* 3. Required for Webkit to make `height` work
|
560
|
+
* 4. Hide controle and show cursor
|
561
|
+
* 5. Needed for the cursor
|
562
|
+
* 6. Clip height caused by 5. Needed for Webkit only
|
563
|
+
*/
|
564
|
+
|
565
|
+
.uk-form-custom select,
|
566
|
+
.uk-form-custom input[type="file"] {
|
567
|
+
/* 1 */
|
568
|
+
position: absolute;
|
569
|
+
top: 0;
|
570
|
+
z-index: 1;
|
571
|
+
width: 100%;
|
572
|
+
height: 100%;
|
573
|
+
/* 2 */
|
574
|
+
left: 0;
|
575
|
+
/* 3 */
|
576
|
+
-webkit-appearance: none;
|
577
|
+
/* 4 */
|
578
|
+
opacity: 0;
|
579
|
+
cursor: pointer;
|
580
|
+
}
|
581
|
+
|
582
|
+
.uk-form-custom input[type="file"] {
|
583
|
+
/* 5 */
|
584
|
+
font-size: 500px;
|
585
|
+
/* 6 */
|
586
|
+
overflow: hidden;
|
587
|
+
}
|
588
|
+
|
589
|
+
|
590
|
+
/* Label
|
591
|
+
========================================================================== */
|
592
|
+
|
593
|
+
.uk-form-label {
|
594
|
+
.hook-form-label;
|
595
|
+
}
|
596
|
+
|
597
|
+
|
598
|
+
/* Layout
|
599
|
+
========================================================================== */
|
600
|
+
|
601
|
+
/*
|
602
|
+
* Stacked
|
603
|
+
*/
|
604
|
+
|
605
|
+
.uk-form-stacked .uk-form-label {
|
606
|
+
display: block;
|
607
|
+
margin-bottom: @form-stacked-margin-bottom;
|
608
|
+
.hook-form-stacked-label;
|
609
|
+
}
|
610
|
+
|
611
|
+
/*
|
612
|
+
* Horizontal
|
613
|
+
*/
|
614
|
+
|
615
|
+
/* Tablet portrait and smaller */
|
616
|
+
@media (max-width: @breakpoint-small-max) {
|
617
|
+
|
618
|
+
/* Behave like `uk-form-stacked` */
|
619
|
+
.uk-form-horizontal .uk-form-label {
|
620
|
+
display: block;
|
621
|
+
margin-bottom: @form-stacked-margin-bottom;
|
622
|
+
.hook-form-stacked-label;
|
623
|
+
}
|
624
|
+
|
625
|
+
}
|
626
|
+
|
627
|
+
/* Tablet landscape and bigger */
|
628
|
+
@media (min-width: @breakpoint-medium) {
|
629
|
+
|
630
|
+
.uk-form-horizontal .uk-form-label {
|
631
|
+
width: @form-horizontal-label-width;
|
632
|
+
margin-top: @form-horizontal-label-margin-top;
|
633
|
+
float: left;
|
634
|
+
.hook-form-horizontal-label;
|
635
|
+
}
|
636
|
+
|
637
|
+
.uk-form-horizontal .uk-form-controls { margin-left: @form-horizontal-controls-margin-left; }
|
638
|
+
|
639
|
+
/* Better vertical alignment if controls are checkboxes and radio buttons with text */
|
640
|
+
.uk-form-horizontal .uk-form-controls-text { padding-top: @form-horizontal-controls-text-padding-top; }
|
641
|
+
|
642
|
+
}
|
643
|
+
|
644
|
+
|
645
|
+
/* Icons
|
646
|
+
========================================================================== */
|
647
|
+
|
648
|
+
/*
|
649
|
+
* 1. Set position
|
650
|
+
* 2. Set width
|
651
|
+
* 3. Center icon vertically and horizontally
|
652
|
+
* 4. Style
|
653
|
+
*/
|
654
|
+
|
655
|
+
.uk-form-icon {
|
656
|
+
/* 1 */
|
657
|
+
position: absolute;
|
658
|
+
top: 0;
|
659
|
+
bottom: 0;
|
660
|
+
left: 0;
|
661
|
+
/* 2 */
|
662
|
+
width: @form-icon-width;
|
663
|
+
/* 3 */
|
664
|
+
display: -ms-inline-flexbox;
|
665
|
+
display: -webkit-inline-flex;
|
666
|
+
display: inline-flex;
|
667
|
+
-ms-flex-pack: center;
|
668
|
+
-webkit-justify-content: center;
|
669
|
+
justify-content: center;
|
670
|
+
-ms-flex-align: center;
|
671
|
+
-webkit-align-items: center;
|
672
|
+
align-items: center;
|
673
|
+
/* 4 */
|
674
|
+
color: @form-icon-color;
|
675
|
+
}
|
676
|
+
|
677
|
+
/*
|
678
|
+
* Required for `a`.
|
679
|
+
*/
|
680
|
+
|
681
|
+
.uk-form-icon:hover { color: @form-icon-hover-color; }
|
682
|
+
|
683
|
+
/*
|
684
|
+
* Make `input` element clickable through icon, e.g. if it's a `span`
|
685
|
+
*/
|
686
|
+
|
687
|
+
.uk-form-icon:not(a):not(button):not(input) { pointer-events: none; }
|
688
|
+
|
689
|
+
/*
|
690
|
+
* Input padding
|
691
|
+
*/
|
692
|
+
|
693
|
+
.uk-form-icon:not(.uk-form-icon-flip) + .uk-input { padding-left: @form-icon-width; }
|
694
|
+
|
695
|
+
/*
|
696
|
+
* Position modifier
|
697
|
+
*/
|
698
|
+
|
699
|
+
.uk-form-icon-flip {
|
700
|
+
right: 0;
|
701
|
+
left: auto;
|
702
|
+
}
|
703
|
+
|
704
|
+
.uk-form-icon-flip + .uk-input { padding-right: @form-icon-width; }
|
705
|
+
|
706
|
+
|
707
|
+
// Hooks
|
708
|
+
// ========================================================================
|
709
|
+
|
710
|
+
.hook-form-misc;
|
711
|
+
|
712
|
+
.hook-form() {}
|
713
|
+
.hook-form-single-line() {}
|
714
|
+
.hook-form-multi-line() {}
|
715
|
+
.hook-form-focus() {}
|
716
|
+
.hook-form-disabled() {}
|
717
|
+
.hook-form-danger() {}
|
718
|
+
.hook-form-success() {}
|
719
|
+
.hook-form-blank() {}
|
720
|
+
.hook-form-blank-focus() {}
|
721
|
+
.hook-form-radio() {}
|
722
|
+
.hook-form-radio-focus() {}
|
723
|
+
.hook-form-radio-checked() {}
|
724
|
+
.hook-form-radio-checked-focus() {}
|
725
|
+
.hook-form-radio-disabled() {}
|
726
|
+
.hook-form-legend() {}
|
727
|
+
.hook-form-label() {}
|
728
|
+
.hook-form-stacked-label() {}
|
729
|
+
.hook-form-horizontal-label() {}
|
730
|
+
.hook-form-misc() {}
|
731
|
+
|
732
|
+
|
733
|
+
// Inverse
|
734
|
+
// ========================================================================
|
735
|
+
|
736
|
+
@inverse-form-background: @inverse-global-muted-background;
|
737
|
+
@inverse-form-color: @inverse-global-color;
|
738
|
+
@inverse-form-focus-background: @inverse-global-muted-background;
|
739
|
+
@inverse-form-focus-color: @inverse-global-color;
|
740
|
+
@inverse-form-placeholder-color: @inverse-global-muted-color;
|
741
|
+
|
742
|
+
@inverse-form-select-icon-color: @inverse-global-color;
|
743
|
+
|
744
|
+
@inverse-form-radio-background: darken(@inverse-global-muted-background, 5%);
|
745
|
+
|
746
|
+
@inverse-form-radio-checked-background: @inverse-global-primary-background;
|
747
|
+
@inverse-form-radio-checked-icon-color: @inverse-global-inverse-color;
|
748
|
+
|
749
|
+
@inverse-form-radio-checked-focus-background: darken(@inverse-global-primary-background, 10%);
|
750
|
+
|
751
|
+
.hook-inverse() {
|
752
|
+
|
753
|
+
.uk-input,
|
754
|
+
.uk-select,
|
755
|
+
.uk-textarea {
|
756
|
+
background-color: @inverse-form-background;
|
757
|
+
color: @inverse-form-color;
|
758
|
+
background-clip: padding-box;
|
759
|
+
.hook-inverse-form;
|
760
|
+
|
761
|
+
&:focus {
|
762
|
+
background-color: @inverse-form-focus-background;
|
763
|
+
color: @inverse-form-focus-color;
|
764
|
+
.hook-inverse-form-focus;
|
765
|
+
}
|
766
|
+
}
|
767
|
+
|
768
|
+
//
|
769
|
+
// Placeholder
|
770
|
+
//
|
771
|
+
|
772
|
+
.uk-input:-ms-input-placeholder { color: @inverse-form-placeholder-color !important; }
|
773
|
+
.uk-input::-moz-placeholder { color: @inverse-form-placeholder-color; }
|
774
|
+
.uk-input::-webkit-input-placeholder { color: @inverse-form-placeholder-color; }
|
775
|
+
|
776
|
+
.uk-textarea:-ms-input-placeholder { color: @inverse-form-placeholder-color !important; }
|
777
|
+
.uk-textarea::-moz-placeholder { color: @inverse-form-placeholder-color; }
|
778
|
+
.uk-textarea::-webkit-input-placeholder { color: @inverse-form-placeholder-color; }
|
779
|
+
|
780
|
+
//
|
781
|
+
// Radio and checkbox
|
782
|
+
//
|
783
|
+
|
784
|
+
.uk-select:not([multiple]):not([size]) { .svg-fill(@internal-form-select-image, "#000", @inverse-form-select-icon-color); }
|
785
|
+
|
786
|
+
//
|
787
|
+
// Radio and checkbox
|
788
|
+
//
|
789
|
+
|
790
|
+
.uk-radio,
|
791
|
+
.uk-checkbox {
|
792
|
+
background-color: @inverse-form-radio-background;
|
793
|
+
.hook-inverse-form-radio;
|
794
|
+
}
|
795
|
+
|
796
|
+
// Focus
|
797
|
+
.uk-radio:focus,
|
798
|
+
.uk-checkbox:focus {
|
799
|
+
.hook-inverse-form-radio-focus;
|
800
|
+
}
|
801
|
+
|
802
|
+
// Checked
|
803
|
+
.uk-radio:checked,
|
804
|
+
.uk-checkbox:checked,
|
805
|
+
.uk-checkbox:indeterminate {
|
806
|
+
background-color: @inverse-form-radio-checked-background;
|
807
|
+
.hook-inverse-form-radio-checked;
|
808
|
+
}
|
809
|
+
|
810
|
+
// Focus
|
811
|
+
.uk-radio:checked:focus,
|
812
|
+
.uk-checkbox:checked:focus,
|
813
|
+
.uk-checkbox:indeterminate:focus {
|
814
|
+
background-color: @inverse-form-radio-checked-focus-background;
|
815
|
+
.hook-inverse-form-radio-checked-focus;
|
816
|
+
}
|
817
|
+
|
818
|
+
// Icon
|
819
|
+
.uk-radio:checked { .svg-fill(@internal-form-radio-image, "#000", @inverse-form-radio-checked-icon-color); }
|
820
|
+
.uk-checkbox:checked { .svg-fill(@internal-form-checkbox-image, "#000", @inverse-form-radio-checked-icon-color); }
|
821
|
+
.uk-checkbox:indeterminate { .svg-fill(@internal-form-checkbox-indeterminate-image, "#000", @inverse-form-radio-checked-icon-color); }
|
822
|
+
|
823
|
+
// Label
|
824
|
+
.uk-form-label {
|
825
|
+
.hook-inverse-form-label;
|
826
|
+
}
|
827
|
+
|
828
|
+
}
|
829
|
+
|
830
|
+
.hook-inverse-form() {}
|
831
|
+
.hook-inverse-form-focus() {}
|
832
|
+
.hook-inverse-form-radio() {}
|
833
|
+
.hook-inverse-form-radio-focus() {}
|
834
|
+
.hook-inverse-form-radio-checked() {}
|
835
|
+
.hook-inverse-form-radio-checked-focus() {}
|
836
|
+
.hook-inverse-form-label() {}
|