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,516 @@
|
|
1
|
+
// Name: Utility
|
2
|
+
// Description: Utilities collection
|
3
|
+
//
|
4
|
+
// Component: `uk-panel-*`
|
5
|
+
// `uk-clearfix`
|
6
|
+
// `uk-float-*`
|
7
|
+
// `uk-overflow-*`
|
8
|
+
// `uk-resize-*`
|
9
|
+
// `uk-display-*`
|
10
|
+
// `uk-inline-*`
|
11
|
+
// `uk-height-*`
|
12
|
+
// `uk-responsive-*`
|
13
|
+
// `uk-preserve-width`
|
14
|
+
// `uk-border-*`
|
15
|
+
// `uk-box-shadow-*`
|
16
|
+
// `uk-dropcap`
|
17
|
+
// `uk-logo`
|
18
|
+
// `uk-svg`
|
19
|
+
// `uk-blend-*`
|
20
|
+
// `uk-transform-origin-*`
|
21
|
+
//
|
22
|
+
// States: `uk-disabled`
|
23
|
+
// `uk-drag`
|
24
|
+
// `uk-dragover`
|
25
|
+
// `uk-preserve`
|
26
|
+
//
|
27
|
+
// ========================================================================
|
28
|
+
|
29
|
+
|
30
|
+
// Variables
|
31
|
+
// ========================================================================
|
32
|
+
|
33
|
+
@panel-scrollable-height: 170px;
|
34
|
+
@panel-scrollable-padding: 10px;
|
35
|
+
@panel-scrollable-border-width: @global-border-width;
|
36
|
+
@panel-scrollable-border: @global-border;
|
37
|
+
|
38
|
+
@height-small-height: 150px;
|
39
|
+
@height-medium-height: 300px;
|
40
|
+
@height-large-height: 450px;
|
41
|
+
|
42
|
+
@border-rounded-border-radius: 5px;
|
43
|
+
|
44
|
+
@box-shadow-duration: 0.1s;
|
45
|
+
|
46
|
+
@dropcap-margin-right: 10px;
|
47
|
+
@dropcap-font-size: ((@global-line-height * 3) * 1em);
|
48
|
+
|
49
|
+
@logo-font-size: @global-large-font-size;
|
50
|
+
@logo-font-family: @global-font-family;
|
51
|
+
@logo-color: @global-color;
|
52
|
+
@logo-hover-color: @global-color;
|
53
|
+
|
54
|
+
@dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3);
|
55
|
+
|
56
|
+
|
57
|
+
/* ========================================================================
|
58
|
+
Component: Utility
|
59
|
+
========================================================================== */
|
60
|
+
|
61
|
+
|
62
|
+
/* Panel
|
63
|
+
========================================================================== */
|
64
|
+
|
65
|
+
.uk-panel {
|
66
|
+
position: relative;
|
67
|
+
box-sizing: border-box;
|
68
|
+
}
|
69
|
+
|
70
|
+
/*
|
71
|
+
* Micro clearfix
|
72
|
+
*/
|
73
|
+
|
74
|
+
.uk-panel::before,
|
75
|
+
.uk-panel::after {
|
76
|
+
content: "";
|
77
|
+
display: table;
|
78
|
+
}
|
79
|
+
|
80
|
+
.uk-panel::after { clear: both; }
|
81
|
+
|
82
|
+
/*
|
83
|
+
* Remove margin from the last-child
|
84
|
+
*/
|
85
|
+
|
86
|
+
.uk-panel > :last-child { margin-bottom: 0; }
|
87
|
+
|
88
|
+
|
89
|
+
/*
|
90
|
+
* Scrollable
|
91
|
+
*/
|
92
|
+
|
93
|
+
.uk-panel-scrollable {
|
94
|
+
height: @panel-scrollable-height;
|
95
|
+
padding: @panel-scrollable-padding;
|
96
|
+
border: @panel-scrollable-border-width solid @panel-scrollable-border;
|
97
|
+
overflow: auto;
|
98
|
+
-webkit-overflow-scrolling: touch;
|
99
|
+
resize: both;
|
100
|
+
.hook-panel-scrollable;
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
/* Clearfix
|
105
|
+
========================================================================== */
|
106
|
+
|
107
|
+
/*
|
108
|
+
* 1. `table-cell` is used with `::before` because `table` creates a 1px gap when it becomes a flex item, only in Webkit
|
109
|
+
* 2. `table` is used again with `::after` because `clear` only works with block elements.
|
110
|
+
* Note: `display: block` with `overflow: hidden` is currently not working in the latest Safari
|
111
|
+
*/
|
112
|
+
|
113
|
+
/* 1 */
|
114
|
+
.uk-clearfix::before {
|
115
|
+
content: "";
|
116
|
+
display: table-cell;
|
117
|
+
}
|
118
|
+
|
119
|
+
/* 2 */
|
120
|
+
.uk-clearfix::after {
|
121
|
+
content: "";
|
122
|
+
display: table;
|
123
|
+
clear: both;
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
/* Float
|
128
|
+
========================================================================== */
|
129
|
+
|
130
|
+
/*
|
131
|
+
* 1. Prevent content overflow
|
132
|
+
*/
|
133
|
+
|
134
|
+
.uk-float-left { float: left; }
|
135
|
+
.uk-float-right { float: right; }
|
136
|
+
|
137
|
+
/* 1 */
|
138
|
+
[class*='uk-float-'] { max-width: 100%; }
|
139
|
+
|
140
|
+
|
141
|
+
/* Overfow
|
142
|
+
========================================================================== */
|
143
|
+
|
144
|
+
.uk-overflow-hidden { overflow: hidden; }
|
145
|
+
|
146
|
+
/*
|
147
|
+
* Enable scrollbars if content is clipped
|
148
|
+
*/
|
149
|
+
|
150
|
+
.uk-overflow-auto {
|
151
|
+
overflow: auto;
|
152
|
+
-webkit-overflow-scrolling: touch;
|
153
|
+
}
|
154
|
+
|
155
|
+
.uk-overflow-auto > :last-child { margin-bottom: 0; }
|
156
|
+
|
157
|
+
|
158
|
+
/* Resize
|
159
|
+
========================================================================== */
|
160
|
+
|
161
|
+
.uk-resize { resize: both; }
|
162
|
+
.uk-resize-vertical { resize: vertical; }
|
163
|
+
|
164
|
+
|
165
|
+
/* Display
|
166
|
+
========================================================================== */
|
167
|
+
|
168
|
+
.uk-display-block { display: block !important; }
|
169
|
+
.uk-display-inline { display: inline !important; }
|
170
|
+
.uk-display-inline-block { display: inline-block !important; }
|
171
|
+
|
172
|
+
|
173
|
+
/* Inline
|
174
|
+
========================================================================== */
|
175
|
+
|
176
|
+
/*
|
177
|
+
* 1. Container fits its content
|
178
|
+
* 2. Create position context
|
179
|
+
* 3. Prevent content overflow
|
180
|
+
* 4. Behave like most inline-block elements
|
181
|
+
* 5. Clip child elements
|
182
|
+
*/
|
183
|
+
|
184
|
+
[class*='uk-inline'] {
|
185
|
+
/* 1 */
|
186
|
+
display: inline-block;
|
187
|
+
/* 2 */
|
188
|
+
position: relative;
|
189
|
+
/* 3 */
|
190
|
+
max-width: 100%;
|
191
|
+
/* 4 */
|
192
|
+
vertical-align: middle;
|
193
|
+
}
|
194
|
+
|
195
|
+
.uk-inline-clip {
|
196
|
+
/* 5 */
|
197
|
+
overflow: hidden;
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
/* Height
|
202
|
+
========================================================================== */
|
203
|
+
|
204
|
+
[class*='uk-height'] { box-sizing: border-box; }
|
205
|
+
|
206
|
+
/*
|
207
|
+
* Only works if parent element has a height set
|
208
|
+
*/
|
209
|
+
|
210
|
+
.uk-height-1-1 { height: 100%; }
|
211
|
+
|
212
|
+
/*
|
213
|
+
* Useful to create image teasers
|
214
|
+
*/
|
215
|
+
|
216
|
+
.uk-height-viewport { min-height: 100vh; }
|
217
|
+
|
218
|
+
/*
|
219
|
+
* Pixel
|
220
|
+
* Useful for `overflow: auto`
|
221
|
+
*/
|
222
|
+
|
223
|
+
.uk-height-small { height: @height-small-height; }
|
224
|
+
.uk-height-medium { height: @height-medium-height; }
|
225
|
+
.uk-height-large { height: @height-large-height; }
|
226
|
+
|
227
|
+
.uk-height-max-small { max-height: @height-small-height; }
|
228
|
+
.uk-height-max-medium { max-height: @height-medium-height; }
|
229
|
+
.uk-height-max-large { max-height: @height-large-height; }
|
230
|
+
|
231
|
+
|
232
|
+
/* Responsive objects
|
233
|
+
========================================================================== */
|
234
|
+
|
235
|
+
/*
|
236
|
+
* Preserve original dimensions
|
237
|
+
* Because `img, `video`, `canvas` and `audio` are already responsive by default, see Base component
|
238
|
+
*/
|
239
|
+
|
240
|
+
.uk-preserve-width,
|
241
|
+
.uk-preserve-width audio,
|
242
|
+
.uk-preserve-width canvas,
|
243
|
+
.uk-preserve-width img,
|
244
|
+
.uk-preserve-width svg,
|
245
|
+
.uk-preserve-width video { max-width: none; }
|
246
|
+
|
247
|
+
/*
|
248
|
+
* Responsiveness
|
249
|
+
* Corrects `max-width` and `max-height` behavior if padding and border are used
|
250
|
+
*/
|
251
|
+
|
252
|
+
.uk-responsive-width,
|
253
|
+
.uk-responsive-height { box-sizing: border-box; }
|
254
|
+
|
255
|
+
/*
|
256
|
+
* 1. Set a maximum width. `important` needed to override `uk-preserve-width img`
|
257
|
+
* 2. Auto scale the height. Only needed if `height` attribute is present
|
258
|
+
*/
|
259
|
+
|
260
|
+
.uk-responsive-width {
|
261
|
+
/* 1 */
|
262
|
+
max-width: 100% !important;
|
263
|
+
/* 2 */
|
264
|
+
height: auto;
|
265
|
+
}
|
266
|
+
|
267
|
+
/*
|
268
|
+
* 1. Set a maximum height. Only works if the parent element has a fixed height
|
269
|
+
* 2. Auto scale the width. Only needed if `width` attribute is present
|
270
|
+
* 3. Reset max-width, which `img, `video`, `canvas` and `audio` already have by default
|
271
|
+
*/
|
272
|
+
|
273
|
+
.uk-responsive-height {
|
274
|
+
/* 1 */
|
275
|
+
max-height: 100%;
|
276
|
+
/* 2 */
|
277
|
+
width: auto;
|
278
|
+
/* 3 */
|
279
|
+
max-width: none;
|
280
|
+
}
|
281
|
+
|
282
|
+
|
283
|
+
/* Border
|
284
|
+
========================================================================== */
|
285
|
+
|
286
|
+
.uk-border-circle { border-radius: 50%; }
|
287
|
+
.uk-border-rounded { border-radius: @border-rounded-border-radius; }
|
288
|
+
|
289
|
+
|
290
|
+
/* Box-shadow
|
291
|
+
========================================================================== */
|
292
|
+
|
293
|
+
.uk-box-shadow-small { box-shadow: @global-small-box-shadow; }
|
294
|
+
.uk-box-shadow-medium { box-shadow: @global-medium-box-shadow; }
|
295
|
+
.uk-box-shadow-large { box-shadow: @global-large-box-shadow; }
|
296
|
+
.uk-box-shadow-xlarge { box-shadow: @global-xlarge-box-shadow; }
|
297
|
+
|
298
|
+
/*
|
299
|
+
* Hover
|
300
|
+
*/
|
301
|
+
|
302
|
+
[class*='uk-box-shadow-hover'] {
|
303
|
+
-webkit-transition: box-shadow @box-shadow-duration ease-in-out;
|
304
|
+
transition: box-shadow @box-shadow-duration ease-in-out;
|
305
|
+
}
|
306
|
+
|
307
|
+
.uk-box-shadow-hover-small:hover { box-shadow: @global-small-box-shadow; }
|
308
|
+
.uk-box-shadow-hover-medium:hover { box-shadow: @global-medium-box-shadow; }
|
309
|
+
.uk-box-shadow-hover-large:hover { box-shadow: @global-large-box-shadow; }
|
310
|
+
.uk-box-shadow-hover-xlarge:hover { box-shadow: @global-xlarge-box-shadow; }
|
311
|
+
|
312
|
+
|
313
|
+
/* Drop cap
|
314
|
+
========================================================================== */
|
315
|
+
|
316
|
+
.uk-dropcap::first-letter,
|
317
|
+
.uk-dropcap > p:first-of-type::first-letter {
|
318
|
+
display: block;
|
319
|
+
margin-right: @dropcap-margin-right;
|
320
|
+
float: left;
|
321
|
+
font-size: @dropcap-font-size;
|
322
|
+
line-height: 1;
|
323
|
+
.hook-dropcap;
|
324
|
+
}
|
325
|
+
|
326
|
+
|
327
|
+
/* Logo
|
328
|
+
========================================================================== */
|
329
|
+
|
330
|
+
/*
|
331
|
+
* 1. Required for `a`
|
332
|
+
*/
|
333
|
+
|
334
|
+
.uk-logo {
|
335
|
+
font-size: @logo-font-size;
|
336
|
+
font-family: @logo-font-family;
|
337
|
+
color: @logo-color;
|
338
|
+
/* 1 */
|
339
|
+
text-decoration: none;
|
340
|
+
.hook-logo;
|
341
|
+
}
|
342
|
+
|
343
|
+
/* Hover + Focus */
|
344
|
+
.uk-logo:hover,
|
345
|
+
.uk-logo:focus {
|
346
|
+
color: @logo-hover-color;
|
347
|
+
outline: none;
|
348
|
+
/* 1 */
|
349
|
+
text-decoration: none;
|
350
|
+
.hook-logo-hover;
|
351
|
+
}
|
352
|
+
|
353
|
+
.uk-logo-inverse { display: none; }
|
354
|
+
|
355
|
+
|
356
|
+
/* SVG
|
357
|
+
========================================================================== */
|
358
|
+
|
359
|
+
/*
|
360
|
+
* 1. Fill all SVG elements with the current text color if no `fill` attribute is set
|
361
|
+
* 2. Set the fill and stroke color of all SVG elements to the current text color
|
362
|
+
*/
|
363
|
+
|
364
|
+
/* 1 */
|
365
|
+
.uk-svg,
|
366
|
+
/* 2 */
|
367
|
+
.uk-svg:not(.uk-preserve) [fill*='#']:not(.uk-preserve) { fill: currentcolor; }
|
368
|
+
.uk-svg:not(.uk-preserve) [stroke*='#']:not(.uk-preserve) { stroke: currentcolor; }
|
369
|
+
|
370
|
+
/*
|
371
|
+
* Fix Firefox blurry SVG rendering: https://bugzilla.mozilla.org/show_bug.cgi?id=1046835
|
372
|
+
*/
|
373
|
+
|
374
|
+
.uk-svg { transform: translate(0,0); }
|
375
|
+
|
376
|
+
|
377
|
+
/* Disabled State
|
378
|
+
========================================================================== */
|
379
|
+
|
380
|
+
.uk-disabled { pointer-events: none; }
|
381
|
+
|
382
|
+
|
383
|
+
/* Drag State
|
384
|
+
========================================================================== */
|
385
|
+
|
386
|
+
/*
|
387
|
+
* 1. Needed if moving over elements with have their own cursor on hover, e.g. links or buttons
|
388
|
+
* 2. Fix dragging over iframes
|
389
|
+
*/
|
390
|
+
|
391
|
+
.uk-drag,
|
392
|
+
/* 1 */
|
393
|
+
.uk-drag * { cursor: move; }
|
394
|
+
|
395
|
+
/* 2 */
|
396
|
+
.uk-drag iframe { pointer-events: none; }
|
397
|
+
|
398
|
+
|
399
|
+
/* Dragover State
|
400
|
+
========================================================================== */
|
401
|
+
|
402
|
+
/*
|
403
|
+
* Create a box-shadow when dragging a file over the upload area
|
404
|
+
*/
|
405
|
+
|
406
|
+
.uk-dragover { box-shadow: @dragover-box-shadow; }
|
407
|
+
|
408
|
+
|
409
|
+
/* Blend modes
|
410
|
+
========================================================================== */
|
411
|
+
|
412
|
+
.uk-blend-multiply { mix-blend-mode: multiply; }
|
413
|
+
.uk-blend-screen { mix-blend-mode: screen; }
|
414
|
+
.uk-blend-overlay { mix-blend-mode: overlay; }
|
415
|
+
.uk-blend-darken { mix-blend-mode: darken; }
|
416
|
+
.uk-blend-lighten { mix-blend-mode: lighten; }
|
417
|
+
.uk-blend-color-dodge { mix-blend-mode: color-dodge; }
|
418
|
+
.uk-blend-color-burn { mix-blend-mode: color-burn; }
|
419
|
+
.uk-blend-hard-light { mix-blend-mode: hard-light; }
|
420
|
+
.uk-blend-soft-light { mix-blend-mode: soft-light; }
|
421
|
+
.uk-blend-difference { mix-blend-mode: difference; }
|
422
|
+
.uk-blend-exclusion { mix-blend-mode: exclusion; }
|
423
|
+
.uk-blend-hue { mix-blend-mode: hue; }
|
424
|
+
.uk-blend-saturation { mix-blend-mode: saturation; }
|
425
|
+
.uk-blend-color { mix-blend-mode: color; }
|
426
|
+
.uk-blend-luminosity { mix-blend-mode: luminosity; }
|
427
|
+
|
428
|
+
|
429
|
+
/* Transform Origin
|
430
|
+
========================================================================== */
|
431
|
+
|
432
|
+
.uk-transform-origin-top-left {
|
433
|
+
-webkit-transform-origin: 0 0;
|
434
|
+
transform-origin: 0 0;
|
435
|
+
}
|
436
|
+
|
437
|
+
.uk-transform-origin-top-center {
|
438
|
+
-webkit-transform-origin: 50% 0;
|
439
|
+
transform-origin: 50% 0;
|
440
|
+
}
|
441
|
+
|
442
|
+
.uk-transform-origin-top-right {
|
443
|
+
-webkit-transform-origin: 100% 0;
|
444
|
+
transform-origin: 100% 0;
|
445
|
+
}
|
446
|
+
|
447
|
+
.uk-transform-origin-center-left {
|
448
|
+
-webkit-transform-origin: 0 50%;
|
449
|
+
transform-origin: 0 50%;
|
450
|
+
}
|
451
|
+
|
452
|
+
.uk-transform-origin-center-right {
|
453
|
+
-webkit-transform-origin: 100% 50%;
|
454
|
+
transform-origin: 100% 50%;
|
455
|
+
}
|
456
|
+
|
457
|
+
.uk-transform-origin-bottom-left {
|
458
|
+
-webkit-transform-origin: 0 100%;
|
459
|
+
transform-origin: 0 100%;
|
460
|
+
}
|
461
|
+
|
462
|
+
.uk-transform-origin-bottom-center {
|
463
|
+
-webkit-transform-origin: 50% 100%;
|
464
|
+
transform-origin: 50% 100%;
|
465
|
+
}
|
466
|
+
|
467
|
+
.uk-transform-origin-bottom-right {
|
468
|
+
-webkit-transform-origin: 100% 100%;
|
469
|
+
transform-origin: 100% 100%;
|
470
|
+
}
|
471
|
+
|
472
|
+
|
473
|
+
// Hooks
|
474
|
+
// ========================================================================
|
475
|
+
|
476
|
+
.hook-utility-misc;
|
477
|
+
|
478
|
+
.hook-panel-scrollable() {}
|
479
|
+
.hook-dropcap() {}
|
480
|
+
.hook-logo() {}
|
481
|
+
.hook-logo-hover() {}
|
482
|
+
.hook-utility-misc() {}
|
483
|
+
|
484
|
+
|
485
|
+
// Inverse
|
486
|
+
// ========================================================================
|
487
|
+
|
488
|
+
@inverse-logo-color: @inverse-global-color;
|
489
|
+
@inverse-logo-hover-color: @inverse-global-color;
|
490
|
+
|
491
|
+
.hook-inverse() {
|
492
|
+
|
493
|
+
.uk-dropcap::first-letter,
|
494
|
+
.uk-dropcap p:first-of-type::first-letter {
|
495
|
+
.hook-inverse-dropcap;
|
496
|
+
}
|
497
|
+
|
498
|
+
.uk-logo {
|
499
|
+
color: @inverse-logo-color;
|
500
|
+
.hook-inverse-logo;
|
501
|
+
}
|
502
|
+
|
503
|
+
.uk-logo:hover,
|
504
|
+
.uk-logo:focus {
|
505
|
+
color: @inverse-logo-hover-color;
|
506
|
+
.hook-inverse-logo-hover;
|
507
|
+
}
|
508
|
+
|
509
|
+
.uk-logo > :not(.uk-logo-inverse):not(:only-of-type) { display: none; }
|
510
|
+
.uk-logo-inverse { display: inline; }
|
511
|
+
|
512
|
+
}
|
513
|
+
|
514
|
+
.hook-inverse-dropcap() {}
|
515
|
+
.hook-inverse-logo() {}
|
516
|
+
.hook-inverse-logo-hover() {}
|