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,61 @@
|
|
1
|
+
// Name: Print
|
2
|
+
// Description: Optimize page for printing
|
3
|
+
//
|
4
|
+
// Adapted from http://github.com/h5bp/html5-boilerplate
|
5
|
+
//
|
6
|
+
// Modifications: Removed link `href` and `title` related rules
|
7
|
+
//
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
|
11
|
+
/* ========================================================================
|
12
|
+
Component: Print
|
13
|
+
========================================================================== */
|
14
|
+
|
15
|
+
@media print {
|
16
|
+
|
17
|
+
*,
|
18
|
+
*::before,
|
19
|
+
*::after {
|
20
|
+
background: transparent !important;
|
21
|
+
color: black !important;
|
22
|
+
box-shadow: none !important;
|
23
|
+
text-shadow: none !important;
|
24
|
+
}
|
25
|
+
|
26
|
+
a,
|
27
|
+
a:visited { text-decoration: underline; }
|
28
|
+
|
29
|
+
pre,
|
30
|
+
blockquote {
|
31
|
+
border: 1px solid #999;
|
32
|
+
page-break-inside: avoid;
|
33
|
+
}
|
34
|
+
|
35
|
+
thead { display: table-header-group; }
|
36
|
+
|
37
|
+
tr,
|
38
|
+
img { page-break-inside: avoid; }
|
39
|
+
|
40
|
+
img { max-width: 100% !important; }
|
41
|
+
|
42
|
+
@page { margin: 0.5cm; }
|
43
|
+
|
44
|
+
p,
|
45
|
+
h2,
|
46
|
+
h3 {
|
47
|
+
orphans: 3;
|
48
|
+
widows: 3;
|
49
|
+
}
|
50
|
+
|
51
|
+
h2,
|
52
|
+
h3 { page-break-after: avoid; }
|
53
|
+
|
54
|
+
.hook-print;
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
// Hooks
|
59
|
+
// ========================================================================
|
60
|
+
|
61
|
+
.hook-print() {}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
// Name: Progress
|
2
|
+
// Description: Component to create progress bars
|
3
|
+
//
|
4
|
+
// Component: `uk-progress`
|
5
|
+
//
|
6
|
+
// ========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
// Variables
|
10
|
+
// ========================================================================
|
11
|
+
|
12
|
+
@progress-height: 15px;
|
13
|
+
@progress-margin-vertical: @global-margin;
|
14
|
+
@progress-background: @global-muted-background;
|
15
|
+
|
16
|
+
@progress-bar-background: @global-primary-background;
|
17
|
+
|
18
|
+
|
19
|
+
/* ========================================================================
|
20
|
+
Component: Progress
|
21
|
+
========================================================================== */
|
22
|
+
|
23
|
+
/*
|
24
|
+
* 1. Remove default style
|
25
|
+
* 2. Behave like a block element
|
26
|
+
* 3. Remove borders in Firefox and Edge
|
27
|
+
* 4. Set background color for progress container in Firefox, IE11 and Edge
|
28
|
+
* 5. Style
|
29
|
+
*/
|
30
|
+
|
31
|
+
.uk-progress {
|
32
|
+
/* 1 */
|
33
|
+
-webkit-appearance: none;
|
34
|
+
-moz-appearance: none;
|
35
|
+
/* 2 */
|
36
|
+
display: block;
|
37
|
+
width: 100%;
|
38
|
+
/* 3 */
|
39
|
+
border: 0;
|
40
|
+
/* 4 */
|
41
|
+
background-color: @progress-background;
|
42
|
+
/* 5 */
|
43
|
+
margin-bottom: @progress-margin-vertical;
|
44
|
+
height: @progress-height;
|
45
|
+
.hook-progress;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Add margin if adjacent element */
|
49
|
+
* + .uk-progress { margin-top: @progress-margin-vertical; }
|
50
|
+
|
51
|
+
/*
|
52
|
+
* Remove animated circles for indeterminate state in IE11 and Edge
|
53
|
+
*/
|
54
|
+
|
55
|
+
.uk-progress:indeterminate { color: transparent; }
|
56
|
+
|
57
|
+
/*
|
58
|
+
* Progress container
|
59
|
+
* 2. Remove progress bar for indeterminate state in Firefox
|
60
|
+
*/
|
61
|
+
|
62
|
+
.uk-progress::-webkit-progress-bar {
|
63
|
+
background-color: @progress-background;
|
64
|
+
.hook-progress;
|
65
|
+
}
|
66
|
+
|
67
|
+
/* 2 */
|
68
|
+
.uk-progress:indeterminate::-moz-progress-bar { width: 0; }
|
69
|
+
|
70
|
+
/*
|
71
|
+
* Progress bar
|
72
|
+
* 1. Remove right border in IE11 and Edge
|
73
|
+
*/
|
74
|
+
|
75
|
+
.uk-progress::-webkit-progress-value {
|
76
|
+
background-color: @progress-bar-background;
|
77
|
+
transition: width 0.6s ease;
|
78
|
+
.hook-progress-bar;
|
79
|
+
}
|
80
|
+
|
81
|
+
.uk-progress::-moz-progress-bar {
|
82
|
+
background-color: @progress-bar-background;
|
83
|
+
.hook-progress-bar;
|
84
|
+
}
|
85
|
+
|
86
|
+
.uk-progress::-ms-fill {
|
87
|
+
background-color: @progress-bar-background;
|
88
|
+
transition: width 0.6s ease;
|
89
|
+
/* 1 */
|
90
|
+
border: 0;
|
91
|
+
.hook-progress-bar;
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
// Hooks
|
96
|
+
// ========================================================================
|
97
|
+
|
98
|
+
.hook-progress-misc;
|
99
|
+
|
100
|
+
.hook-progress() {}
|
101
|
+
.hook-progress-bar() {}
|
102
|
+
.hook-progress-misc() {}
|
@@ -0,0 +1,442 @@
|
|
1
|
+
// Name: Search
|
2
|
+
// Description: Component to create the search
|
3
|
+
//
|
4
|
+
// Component: `uk-search`
|
5
|
+
//
|
6
|
+
// Sub-objects: `uk-search-input`
|
7
|
+
// `uk-search-toggle`
|
8
|
+
//
|
9
|
+
// Adopted: `uk-search-icon`
|
10
|
+
//
|
11
|
+
// Modifier: `uk-search-default`
|
12
|
+
// `uk-search-navbar`
|
13
|
+
// `uk-search-large`
|
14
|
+
//
|
15
|
+
// ========================================================================
|
16
|
+
|
17
|
+
|
18
|
+
// Variables
|
19
|
+
// ========================================================================
|
20
|
+
|
21
|
+
@search-color: @global-color;
|
22
|
+
@search-placeholder-color: @global-muted-color;
|
23
|
+
|
24
|
+
@search-icon-color: @global-muted-color;
|
25
|
+
|
26
|
+
@search-default-width: 180px;
|
27
|
+
@search-default-height: @global-control-height;
|
28
|
+
@search-default-padding-horizontal: 6px;
|
29
|
+
@search-default-background: @global-muted-background;
|
30
|
+
@search-default-focus-background: @search-default-background;
|
31
|
+
|
32
|
+
@search-default-icon-width: @global-control-height;
|
33
|
+
|
34
|
+
@search-navbar-width: 400px;
|
35
|
+
@search-navbar-height: 40px;
|
36
|
+
@search-navbar-background: transparent;
|
37
|
+
@search-navbar-font-size: @global-large-font-size;
|
38
|
+
|
39
|
+
@search-navbar-icon-width: 40px;
|
40
|
+
|
41
|
+
@search-large-width: 500px;
|
42
|
+
@search-large-height: 80px;
|
43
|
+
@search-large-background: transparent;
|
44
|
+
@search-large-font-size: @global-xxlarge-font-size;
|
45
|
+
|
46
|
+
@search-large-icon-width: 80px;
|
47
|
+
|
48
|
+
@search-toggle-color: @global-muted-color;
|
49
|
+
@search-toggle-hover-color: @global-color;
|
50
|
+
|
51
|
+
@internal-search-default-image: "../../images/components/search-default.svg";
|
52
|
+
@internal-search-navbar-image: "../../images/components/search-navbar.svg";
|
53
|
+
@internal-search-large-image: "../../images/components/search-large.svg";
|
54
|
+
|
55
|
+
|
56
|
+
/* ========================================================================
|
57
|
+
Component: Search
|
58
|
+
========================================================================== */
|
59
|
+
|
60
|
+
/*
|
61
|
+
* 1. Container fits its content
|
62
|
+
* 2. Create position context
|
63
|
+
* 3. Prevent content overflow
|
64
|
+
* 4. Reset `form`
|
65
|
+
*/
|
66
|
+
|
67
|
+
.uk-search {
|
68
|
+
/* 1 */
|
69
|
+
display: inline-block;
|
70
|
+
/* 2 */
|
71
|
+
position: relative;
|
72
|
+
/* 3 */
|
73
|
+
max-width: 100%;
|
74
|
+
/* 4 */
|
75
|
+
margin: 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
/* Input
|
80
|
+
========================================================================== */
|
81
|
+
|
82
|
+
/*
|
83
|
+
* Remove the inner padding and cancel buttons in Chrome on OS X and Safari on OS X.
|
84
|
+
*/
|
85
|
+
|
86
|
+
.uk-search-input::-webkit-search-cancel-button,
|
87
|
+
.uk-search-input::-webkit-search-decoration { -webkit-appearance: none; }
|
88
|
+
|
89
|
+
/*
|
90
|
+
* Removes placeholder transparency in Firefox.
|
91
|
+
*/
|
92
|
+
|
93
|
+
.uk-search-input::-moz-placeholder { opacity: 1; }
|
94
|
+
|
95
|
+
/*
|
96
|
+
* 1. Define consistent box sizing.
|
97
|
+
* 2. Address margins set differently in Firefox/IE and Chrome/Safari/Opera.
|
98
|
+
* 3. Remove `border-radius` in iOS.
|
99
|
+
* 4. Change font properties to `inherit` in all browsers
|
100
|
+
* 5. Show the overflow in Edge.
|
101
|
+
* 6. Remove default style in iOS.
|
102
|
+
* 7. Vertical alignment
|
103
|
+
* 8. Take the full container width
|
104
|
+
* 9. Style
|
105
|
+
*/
|
106
|
+
|
107
|
+
.uk-search-input {
|
108
|
+
/* 1 */
|
109
|
+
box-sizing: border-box;
|
110
|
+
/* 2 */
|
111
|
+
margin: 0;
|
112
|
+
/* 3 */
|
113
|
+
border-radius: 0;
|
114
|
+
/* 4 */
|
115
|
+
font: inherit;
|
116
|
+
/* 5 */
|
117
|
+
overflow: visible;
|
118
|
+
/* 6 */
|
119
|
+
-webkit-appearance: none;
|
120
|
+
/* 7 */
|
121
|
+
vertical-align: middle;
|
122
|
+
/* 8 */
|
123
|
+
width: 100%;
|
124
|
+
/* 9 */
|
125
|
+
border: none;
|
126
|
+
color: @search-color;
|
127
|
+
}
|
128
|
+
|
129
|
+
.uk-search-input:focus { outline: 0; }
|
130
|
+
|
131
|
+
/* Placeholder */
|
132
|
+
.uk-search-input:-ms-input-placeholder { color: @search-placeholder-color !important; }
|
133
|
+
.uk-search-input::-moz-placeholder { color: @search-placeholder-color; }
|
134
|
+
.uk-search-input::-webkit-input-placeholder { color: @search-placeholder-color; }
|
135
|
+
|
136
|
+
|
137
|
+
/* Icon
|
138
|
+
========================================================================== */
|
139
|
+
|
140
|
+
.uk-search-icon::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-search-default-image); }
|
141
|
+
|
142
|
+
/*
|
143
|
+
* Adopts `uk-icon`
|
144
|
+
* Required for `button`
|
145
|
+
* 1. Remove margins in Chrome, Safari and Opera.
|
146
|
+
* 2. Remove borders for `button`.
|
147
|
+
* 3. Address `overflow` set to `hidden` in IE.
|
148
|
+
* 4. Correct `font` properties and `color` not being inherited for `button`.
|
149
|
+
* 5. Remove the inheritance of text transform in Edge, Firefox, and IE.
|
150
|
+
* 6. Remove default `button` padding and background color
|
151
|
+
* 7. Required for `button`.
|
152
|
+
*/
|
153
|
+
|
154
|
+
.uk-search-icon {
|
155
|
+
/* 1 */
|
156
|
+
margin: 0;
|
157
|
+
/* 2 */
|
158
|
+
border: none;
|
159
|
+
/* 3 */
|
160
|
+
overflow: visible;
|
161
|
+
/* 4 */
|
162
|
+
font: inherit;
|
163
|
+
color: inherit;
|
164
|
+
/* 5 */
|
165
|
+
text-transform: none;
|
166
|
+
/* 6. */
|
167
|
+
padding: 0;
|
168
|
+
background-color: transparent;
|
169
|
+
/* 7 */
|
170
|
+
cursor: pointer;
|
171
|
+
}
|
172
|
+
|
173
|
+
/*
|
174
|
+
* Remove the inner border and padding in Firefox. Required for `button`.
|
175
|
+
*/
|
176
|
+
|
177
|
+
.uk-search-icon::-moz-focus-inner {
|
178
|
+
border: 0;
|
179
|
+
padding: 0;
|
180
|
+
}
|
181
|
+
|
182
|
+
/*
|
183
|
+
* Remove default focus style
|
184
|
+
*/
|
185
|
+
|
186
|
+
.uk-search-icon:focus { outline: none; }
|
187
|
+
|
188
|
+
/*
|
189
|
+
* Position above input
|
190
|
+
* 1. Set position
|
191
|
+
* 2. Center icon vertically and horizontally
|
192
|
+
* 3. Style
|
193
|
+
*/
|
194
|
+
|
195
|
+
.uk-search .uk-search-icon {
|
196
|
+
/* 1 */
|
197
|
+
position: absolute;
|
198
|
+
top: 0;
|
199
|
+
bottom: 0;
|
200
|
+
left: 0;
|
201
|
+
/* 2 */
|
202
|
+
display: -ms-inline-flexbox;
|
203
|
+
display: -webkit-inline-flex;
|
204
|
+
display: inline-flex;
|
205
|
+
-ms-flex-pack: center;
|
206
|
+
-webkit-justify-content: center;
|
207
|
+
justify-content: center;
|
208
|
+
-ms-flex-align: center;
|
209
|
+
-webkit-align-items: center;
|
210
|
+
align-items: center;
|
211
|
+
/* 3 */
|
212
|
+
color: @search-icon-color;
|
213
|
+
}
|
214
|
+
|
215
|
+
/*
|
216
|
+
* Required for `a`.
|
217
|
+
*/
|
218
|
+
|
219
|
+
.uk-search .uk-search-icon:hover { color: @search-icon-color; }
|
220
|
+
|
221
|
+
/*
|
222
|
+
* Make `input` element clickable through icon, e.g. if it's a `span`
|
223
|
+
*/
|
224
|
+
|
225
|
+
.uk-search .uk-search-icon:not(a):not(button):not(input) { pointer-events: none; }
|
226
|
+
|
227
|
+
/*
|
228
|
+
* Position modifier
|
229
|
+
*/
|
230
|
+
|
231
|
+
.uk-search .uk-search-icon-flip {
|
232
|
+
right: 0;
|
233
|
+
left: auto;
|
234
|
+
}
|
235
|
+
|
236
|
+
|
237
|
+
/* Default modifier
|
238
|
+
========================================================================== */
|
239
|
+
|
240
|
+
.uk-search-default { width: @search-default-width; }
|
241
|
+
|
242
|
+
/*
|
243
|
+
* Input
|
244
|
+
*/
|
245
|
+
|
246
|
+
.uk-search-default .uk-search-input {
|
247
|
+
height: @search-default-height;
|
248
|
+
padding-left: @search-default-padding-horizontal;
|
249
|
+
padding-right: @search-default-padding-horizontal;
|
250
|
+
background: @search-default-background;
|
251
|
+
.hook-search-default-input;
|
252
|
+
}
|
253
|
+
|
254
|
+
/* Focus */
|
255
|
+
.uk-search-default .uk-search-input:focus {
|
256
|
+
background-color: @search-default-focus-background;
|
257
|
+
.hook-search-default-input-focus;
|
258
|
+
}
|
259
|
+
|
260
|
+
/*
|
261
|
+
* Icon
|
262
|
+
*/
|
263
|
+
|
264
|
+
.uk-search-default .uk-search-icon { width: @search-default-icon-width; }
|
265
|
+
|
266
|
+
.uk-search-default .uk-search-icon:not(.uk-search-icon-flip) + .uk-search-input { padding-left: (@search-default-icon-width); }
|
267
|
+
.uk-search-default .uk-search-icon-flip + .uk-search-input { padding-right: (@search-default-icon-width); }
|
268
|
+
|
269
|
+
|
270
|
+
/* Navbar modifier
|
271
|
+
========================================================================== */
|
272
|
+
|
273
|
+
.uk-search-navbar { width: @search-navbar-width; }
|
274
|
+
|
275
|
+
/*
|
276
|
+
* Input
|
277
|
+
*/
|
278
|
+
|
279
|
+
.uk-search-navbar .uk-search-input {
|
280
|
+
height: @search-navbar-height;
|
281
|
+
background: @search-navbar-background;
|
282
|
+
font-size: @search-navbar-font-size;
|
283
|
+
.hook-search-navbar-input;
|
284
|
+
}
|
285
|
+
|
286
|
+
/*
|
287
|
+
* Icon
|
288
|
+
*/
|
289
|
+
|
290
|
+
.uk-search-navbar .uk-search-icon::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-search-navbar-image); }
|
291
|
+
|
292
|
+
.uk-search-navbar .uk-search-icon { width: @search-navbar-icon-width; }
|
293
|
+
|
294
|
+
.uk-search-navbar .uk-search-icon:not(.uk-search-icon-flip) + .uk-search-input { padding-left: (@search-navbar-icon-width); }
|
295
|
+
.uk-search-navbar .uk-search-icon-flip + .uk-search-input { padding-right: (@search-navbar-icon-width); }
|
296
|
+
|
297
|
+
|
298
|
+
/* Large modifier
|
299
|
+
========================================================================== */
|
300
|
+
|
301
|
+
.uk-search-large { width: @search-large-width; }
|
302
|
+
|
303
|
+
/*
|
304
|
+
* Input
|
305
|
+
*/
|
306
|
+
|
307
|
+
.uk-search-large .uk-search-input {
|
308
|
+
height: @search-large-height;
|
309
|
+
background: @search-large-background;
|
310
|
+
font-size: @search-large-font-size;
|
311
|
+
.hook-search-large-input;
|
312
|
+
}
|
313
|
+
|
314
|
+
/*
|
315
|
+
* Icon
|
316
|
+
*/
|
317
|
+
|
318
|
+
.uk-search-large .uk-search-icon::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-search-large-image); }
|
319
|
+
|
320
|
+
.uk-search-large .uk-search-icon { width: @search-large-icon-width; }
|
321
|
+
|
322
|
+
.uk-search-large .uk-search-icon:not(.uk-search-icon-flip) + .uk-search-input { padding-left: (@search-large-icon-width); }
|
323
|
+
.uk-search-large .uk-search-icon-flip + .uk-search-input { padding-right: (@search-large-icon-width); }
|
324
|
+
|
325
|
+
|
326
|
+
/* Toggle
|
327
|
+
========================================================================== */
|
328
|
+
|
329
|
+
.uk-search-toggle {
|
330
|
+
color: @search-toggle-color;
|
331
|
+
.hook-search-toggle;
|
332
|
+
}
|
333
|
+
|
334
|
+
/* Hover + Focus */
|
335
|
+
.uk-search-toggle:hover,
|
336
|
+
.uk-search-toggle:focus {
|
337
|
+
color: @search-toggle-hover-color;
|
338
|
+
.hook-search-toggle-hover;
|
339
|
+
}
|
340
|
+
|
341
|
+
|
342
|
+
// Hooks
|
343
|
+
// ========================================================================
|
344
|
+
|
345
|
+
.hook-search-misc;
|
346
|
+
|
347
|
+
.hook-search-default-input() {}
|
348
|
+
.hook-search-default-input-focus() {}
|
349
|
+
.hook-search-navbar-input() {}
|
350
|
+
.hook-search-large-input() {}
|
351
|
+
|
352
|
+
.hook-search-toggle() {}
|
353
|
+
.hook-search-toggle-hover() {}
|
354
|
+
|
355
|
+
.hook-search-misc() {}
|
356
|
+
|
357
|
+
|
358
|
+
// Inverse
|
359
|
+
// ========================================================================
|
360
|
+
|
361
|
+
@inverse-search-color: @inverse-global-color;
|
362
|
+
@inverse-search-placeholder-color: @inverse-global-muted-color;
|
363
|
+
|
364
|
+
@inverse-search-icon-color: @inverse-global-muted-color;
|
365
|
+
|
366
|
+
@inverse-search-default-background: @inverse-global-muted-background;
|
367
|
+
@inverse-search-default-focus-background: @inverse-search-default-background;
|
368
|
+
|
369
|
+
@inverse-search-navbar-background: transparent;
|
370
|
+
|
371
|
+
@inverse-search-large-background: transparent;
|
372
|
+
|
373
|
+
@inverse-search-toggle-color: @inverse-global-muted-color;
|
374
|
+
@inverse-search-toggle-hover-color: @inverse-global-color;
|
375
|
+
|
376
|
+
.hook-inverse() {
|
377
|
+
|
378
|
+
//
|
379
|
+
// Input
|
380
|
+
//
|
381
|
+
|
382
|
+
.uk-search-input { color: @inverse-search-color; }
|
383
|
+
|
384
|
+
.uk-search-input:-ms-input-placeholder { color: @inverse-search-placeholder-color !important; }
|
385
|
+
.uk-search-input::-moz-placeholder { color: @inverse-search-placeholder-color; }
|
386
|
+
.uk-search-input::-webkit-input-placeholder { color: @inverse-search-placeholder-color; }
|
387
|
+
|
388
|
+
|
389
|
+
//
|
390
|
+
// Icon
|
391
|
+
//
|
392
|
+
|
393
|
+
.uk-search .uk-search-icon { color: @inverse-search-icon-color; }
|
394
|
+
|
395
|
+
.uk-search .uk-search-icon:hover { color: @inverse-search-icon-color; }
|
396
|
+
|
397
|
+
//
|
398
|
+
// Style modifier
|
399
|
+
//
|
400
|
+
|
401
|
+
.uk-search-default .uk-search-input {
|
402
|
+
background-color: @inverse-search-default-background;
|
403
|
+
.hook-inverse-search-default-input;
|
404
|
+
}
|
405
|
+
.uk-search-default .uk-search-input:focus {
|
406
|
+
background-color: @inverse-search-default-background;
|
407
|
+
.hook-inverse-search-default-input-focus;
|
408
|
+
}
|
409
|
+
|
410
|
+
.uk-search-navbar .uk-search-input {
|
411
|
+
background-color: @inverse-search-navbar-background;
|
412
|
+
.hook-inverse-search-navbar-input;
|
413
|
+
}
|
414
|
+
|
415
|
+
.uk-search-large .uk-search-input {
|
416
|
+
background-color: @inverse-search-large-background;
|
417
|
+
.hook-inverse-search-large-input;
|
418
|
+
}
|
419
|
+
|
420
|
+
//
|
421
|
+
// Toggle
|
422
|
+
//
|
423
|
+
|
424
|
+
.uk-search-toggle {
|
425
|
+
color: @inverse-search-toggle-color;
|
426
|
+
.hook-inverse-search-toggle;
|
427
|
+
}
|
428
|
+
|
429
|
+
.uk-search-toggle:hover,
|
430
|
+
.uk-search-toggle:focus {
|
431
|
+
color: @inverse-search-toggle-hover-color;
|
432
|
+
.hook-inverse-search-toggle-hover;
|
433
|
+
}
|
434
|
+
|
435
|
+
}
|
436
|
+
|
437
|
+
.hook-inverse-search-default-input() {}
|
438
|
+
.hook-inverse-search-default-input-focus() {}
|
439
|
+
.hook-inverse-search-navbar-input() {}
|
440
|
+
.hook-inverse-search-large-input() {}
|
441
|
+
.hook-inverse-search-toggle() {}
|
442
|
+
.hook-inverse-search-toggle-hover() {}
|