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,74 @@
|
|
1
|
+
// Name: Drop
|
2
|
+
// Description: Component to position any element next to any other element.
|
3
|
+
//
|
4
|
+
// Component: `uk-drop`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-drop-top-*`
|
7
|
+
// `uk-drop-bottom-*`
|
8
|
+
// `uk-drop-left-*`
|
9
|
+
// `uk-drop-right-*`
|
10
|
+
// `uk-drop-stack`
|
11
|
+
// `uk-drop-grid`
|
12
|
+
//
|
13
|
+
// States: `uk-open`
|
14
|
+
//
|
15
|
+
// Uses: Animation
|
16
|
+
//
|
17
|
+
// ========================================================================
|
18
|
+
|
19
|
+
|
20
|
+
// Variables
|
21
|
+
// ========================================================================
|
22
|
+
|
23
|
+
@drop-z-index: @global-z-index + 20;
|
24
|
+
@drop-width: 300px;
|
25
|
+
@drop-margin: @global-margin;
|
26
|
+
|
27
|
+
|
28
|
+
/* ========================================================================
|
29
|
+
Component: Drop
|
30
|
+
========================================================================== */
|
31
|
+
|
32
|
+
/*
|
33
|
+
* 1. Hide by default
|
34
|
+
* 2. Set position
|
35
|
+
* 3. Set a default width
|
36
|
+
*/
|
37
|
+
|
38
|
+
.uk-drop {
|
39
|
+
/* 1 */
|
40
|
+
display: none;
|
41
|
+
/* 2 */
|
42
|
+
position: absolute;
|
43
|
+
z-index: @drop-z-index;
|
44
|
+
/* 3 */
|
45
|
+
box-sizing: border-box;
|
46
|
+
width: @drop-width;
|
47
|
+
}
|
48
|
+
|
49
|
+
/* Show */
|
50
|
+
.uk-drop.uk-open { display: block; }
|
51
|
+
|
52
|
+
|
53
|
+
/* Direction / Alignment modifiers
|
54
|
+
========================================================================== */
|
55
|
+
|
56
|
+
/* Direction */
|
57
|
+
[class*='uk-drop-top'] { margin-top: -@drop-margin; }
|
58
|
+
[class*='uk-drop-bottom'] { margin-top: @drop-margin; }
|
59
|
+
[class*='uk-drop-left'] { margin-left: -@drop-margin; }
|
60
|
+
[class*='uk-drop-right'] { margin-left: @drop-margin; }
|
61
|
+
|
62
|
+
|
63
|
+
/* Grid modifiers
|
64
|
+
========================================================================== */
|
65
|
+
|
66
|
+
.uk-drop-stack .uk-drop-grid > * { width: 100% !important; }
|
67
|
+
|
68
|
+
|
69
|
+
// Hooks
|
70
|
+
// ========================================================================
|
71
|
+
|
72
|
+
.hook-drop-misc;
|
73
|
+
|
74
|
+
.hook-drop-misc() {}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
// Name: Dropdown
|
2
|
+
// Description: Component to create dropdown menus
|
3
|
+
//
|
4
|
+
// Component: `uk-dropdown`
|
5
|
+
//
|
6
|
+
// Adopted: `uk-dropdown-nav`
|
7
|
+
//
|
8
|
+
// Modifiers: `uk-dropdown-top-*`
|
9
|
+
// `uk-dropdown-bottom-*`
|
10
|
+
// `uk-dropdown-left-*`
|
11
|
+
// `uk-dropdown-right-*`
|
12
|
+
// `uk-dropdown-stack`
|
13
|
+
// `uk-dropdown-grid`
|
14
|
+
//
|
15
|
+
// ========================================================================
|
16
|
+
|
17
|
+
|
18
|
+
// Variables
|
19
|
+
// ========================================================================
|
20
|
+
|
21
|
+
@dropdown-z-index: @global-z-index + 20;
|
22
|
+
@dropdown-min-width: 200px;
|
23
|
+
@dropdown-padding: 15px;
|
24
|
+
@dropdown-background: @global-muted-background;
|
25
|
+
@dropdown-color: @global-color;
|
26
|
+
@dropdown-margin: @global-small-margin;
|
27
|
+
|
28
|
+
@dropdown-nav-item-color: @global-muted-color;
|
29
|
+
@dropdown-nav-item-hover-color: @global-color;
|
30
|
+
@dropdown-nav-header-color: @global-emphasis-color;
|
31
|
+
@dropdown-nav-divider-border-width: @global-border-width;
|
32
|
+
@dropdown-nav-divider-border: @global-border;
|
33
|
+
@dropdown-nav-sublist-item-color: @global-muted-color;
|
34
|
+
@dropdown-nav-sublist-item-hover-color: @global-color;
|
35
|
+
|
36
|
+
|
37
|
+
/* ========================================================================
|
38
|
+
Component: Dropdown
|
39
|
+
========================================================================== */
|
40
|
+
|
41
|
+
/*
|
42
|
+
* 1. Hide by default
|
43
|
+
* 2. Set position
|
44
|
+
* 3. Set a default width
|
45
|
+
* 4. Style
|
46
|
+
*/
|
47
|
+
|
48
|
+
.uk-dropdown {
|
49
|
+
/* 1 */
|
50
|
+
display: none;
|
51
|
+
/* 2 */
|
52
|
+
position: absolute;
|
53
|
+
z-index: @dropdown-z-index;
|
54
|
+
/* 3 */
|
55
|
+
box-sizing: border-box;
|
56
|
+
min-width: @dropdown-min-width;
|
57
|
+
/* 4 */
|
58
|
+
padding: @dropdown-padding;
|
59
|
+
background: @dropdown-background;
|
60
|
+
color: @dropdown-color;
|
61
|
+
.hook-dropdown;
|
62
|
+
}
|
63
|
+
|
64
|
+
/* Show */
|
65
|
+
.uk-dropdown.uk-open { display: block; }
|
66
|
+
|
67
|
+
|
68
|
+
/* Nav
|
69
|
+
* Adopts `uk-nav`
|
70
|
+
========================================================================== */
|
71
|
+
|
72
|
+
.uk-dropdown-nav {
|
73
|
+
white-space: nowrap;
|
74
|
+
.hook-dropdown-nav;
|
75
|
+
}
|
76
|
+
|
77
|
+
/*
|
78
|
+
* Items
|
79
|
+
*/
|
80
|
+
|
81
|
+
.uk-dropdown-nav > li > a {
|
82
|
+
color: @dropdown-nav-item-color;
|
83
|
+
.hook-dropdown-nav-item;
|
84
|
+
}
|
85
|
+
|
86
|
+
/* Hover + Focus + Active */
|
87
|
+
.uk-dropdown-nav > li > a:hover,
|
88
|
+
.uk-dropdown-nav > li > a:focus,
|
89
|
+
.uk-dropdown-nav > li.uk-active > a {
|
90
|
+
color: @dropdown-nav-item-hover-color;
|
91
|
+
.hook-dropdown-nav-item-hover;
|
92
|
+
}
|
93
|
+
|
94
|
+
/*
|
95
|
+
* Header
|
96
|
+
*/
|
97
|
+
|
98
|
+
.uk-dropdown-nav .uk-nav-header {
|
99
|
+
color: @dropdown-nav-header-color;
|
100
|
+
.hook-dropdown-nav-header;
|
101
|
+
}
|
102
|
+
|
103
|
+
/*
|
104
|
+
* Divider
|
105
|
+
*/
|
106
|
+
|
107
|
+
.uk-dropdown-nav .uk-nav-divider {
|
108
|
+
border-top: @dropdown-nav-divider-border-width solid @dropdown-nav-divider-border;
|
109
|
+
.hook-dropdown-nav-divider;
|
110
|
+
}
|
111
|
+
|
112
|
+
/*
|
113
|
+
* Sublists
|
114
|
+
*/
|
115
|
+
|
116
|
+
.uk-dropdown-nav .uk-nav-sub a { color: @dropdown-nav-sublist-item-color; }
|
117
|
+
|
118
|
+
.uk-dropdown-nav .uk-nav-sub a:hover,
|
119
|
+
.uk-dropdown-nav .uk-nav-sub a:focus { color: @dropdown-nav-sublist-item-hover-color; }
|
120
|
+
|
121
|
+
|
122
|
+
/* Direction / Alignment modifiers
|
123
|
+
========================================================================== */
|
124
|
+
|
125
|
+
/* Direction */
|
126
|
+
[class*='uk-dropdown-top'] { margin-top: -@dropdown-margin; }
|
127
|
+
[class*='uk-dropdown-bottom'] { margin-top: @dropdown-margin; }
|
128
|
+
[class*='uk-dropdown-left'] { margin-left: -@dropdown-margin; }
|
129
|
+
[class*='uk-dropdown-right'] { margin-left: @dropdown-margin; }
|
130
|
+
|
131
|
+
|
132
|
+
/* Grid modifiers
|
133
|
+
========================================================================== */
|
134
|
+
|
135
|
+
.uk-dropdown-stack .uk-dropdown-grid > * { width: 100% !important; }
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
// Hooks
|
140
|
+
// ========================================================================
|
141
|
+
|
142
|
+
.hook-dropdown-misc;
|
143
|
+
|
144
|
+
.hook-dropdown() {}
|
145
|
+
.hook-dropdown-nav() {}
|
146
|
+
.hook-dropdown-nav-item() {}
|
147
|
+
.hook-dropdown-nav-item-hover() {}
|
148
|
+
.hook-dropdown-nav-header() {}
|
149
|
+
.hook-dropdown-nav-divider() {}
|
150
|
+
.hook-dropdown-misc() {}
|
@@ -0,0 +1,335 @@
|
|
1
|
+
// Name: Flex
|
2
|
+
// Description: Utilities for layouts based on flexbox
|
3
|
+
//
|
4
|
+
// Component: `uk-flex-*`
|
5
|
+
//
|
6
|
+
// ========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
/* ========================================================================
|
10
|
+
Component: Flex
|
11
|
+
========================================================================== */
|
12
|
+
|
13
|
+
.uk-flex {
|
14
|
+
display: -ms-flexbox;
|
15
|
+
display: -webkit-flex;
|
16
|
+
display: flex;
|
17
|
+
}
|
18
|
+
|
19
|
+
.uk-flex-inline {
|
20
|
+
display: -ms-inline-flexbox;
|
21
|
+
display: -webkit-inline-flex;
|
22
|
+
display: inline-flex;
|
23
|
+
}
|
24
|
+
|
25
|
+
/*
|
26
|
+
* Remove pseudo elements created by micro clearfix as precaution
|
27
|
+
*/
|
28
|
+
|
29
|
+
.uk-flex::before,
|
30
|
+
.uk-flex::after,
|
31
|
+
.uk-flex-inline::before,
|
32
|
+
.uk-flex-inline::after { display: none; }
|
33
|
+
|
34
|
+
|
35
|
+
/* Alignment
|
36
|
+
========================================================================== */
|
37
|
+
|
38
|
+
/*
|
39
|
+
* Align items along the main axis of the current line of the flex container
|
40
|
+
* Row: Horizontal
|
41
|
+
*/
|
42
|
+
|
43
|
+
// Default
|
44
|
+
.uk-flex-left {
|
45
|
+
-ms-flex-pack: start;
|
46
|
+
-webkit-justify-content: flex-start;
|
47
|
+
justify-content: flex-start;
|
48
|
+
}
|
49
|
+
|
50
|
+
.uk-flex-center {
|
51
|
+
-ms-flex-pack: center;
|
52
|
+
-webkit-justify-content: center;
|
53
|
+
justify-content: center;
|
54
|
+
}
|
55
|
+
|
56
|
+
.uk-flex-right {
|
57
|
+
-ms-flex-pack: end;
|
58
|
+
-webkit-justify-content: flex-end;
|
59
|
+
justify-content: flex-end;
|
60
|
+
}
|
61
|
+
|
62
|
+
.uk-flex-between {
|
63
|
+
-ms-flex-pack: justify;
|
64
|
+
-webkit-justify-content: space-between;
|
65
|
+
justify-content: space-between;
|
66
|
+
}
|
67
|
+
|
68
|
+
.uk-flex-around {
|
69
|
+
-ms-flex-pack: distribute;
|
70
|
+
-webkit-justify-content: space-around;
|
71
|
+
justify-content: space-around;
|
72
|
+
}
|
73
|
+
|
74
|
+
/*
|
75
|
+
* Align items in the cross axis of the current line of the flex container
|
76
|
+
* Row: Vertical
|
77
|
+
*/
|
78
|
+
|
79
|
+
// Default
|
80
|
+
.uk-flex-stretch {
|
81
|
+
-ms-flex-align: stretch;
|
82
|
+
-webkit-align-items: stretch;
|
83
|
+
align-items: stretch;
|
84
|
+
}
|
85
|
+
|
86
|
+
.uk-flex-top {
|
87
|
+
-ms-flex-align: start;
|
88
|
+
-webkit-align-items: flex-start;
|
89
|
+
align-items: flex-start;
|
90
|
+
}
|
91
|
+
|
92
|
+
.uk-flex-middle {
|
93
|
+
-ms-flex-align: center;
|
94
|
+
-webkit-align-items: center;
|
95
|
+
align-items: center;
|
96
|
+
}
|
97
|
+
|
98
|
+
.uk-flex-bottom {
|
99
|
+
-ms-flex-align: end;
|
100
|
+
-webkit-align-items: flex-end;
|
101
|
+
align-items: flex-end;
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
/* Direction
|
106
|
+
========================================================================== */
|
107
|
+
|
108
|
+
// Default
|
109
|
+
.uk-flex-row {
|
110
|
+
-ms-flex-direction: row;
|
111
|
+
-webkit-flex-direction: row;
|
112
|
+
flex-direction: row;
|
113
|
+
}
|
114
|
+
|
115
|
+
.uk-flex-row-reverse {
|
116
|
+
-ms-flex-direction: row-reverse;
|
117
|
+
-webkit-flex-direction: row-reverse;
|
118
|
+
flex-direction: row-reverse;
|
119
|
+
}
|
120
|
+
|
121
|
+
.uk-flex-column {
|
122
|
+
-ms-flex-direction: column;
|
123
|
+
-webkit-flex-direction: column;
|
124
|
+
flex-direction: column;
|
125
|
+
}
|
126
|
+
|
127
|
+
.uk-flex-column-reverse {
|
128
|
+
-ms-flex-direction: column-reverse;
|
129
|
+
-webkit-flex-direction: column-reverse;
|
130
|
+
flex-direction: column-reverse;
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
/* Wrap
|
135
|
+
========================================================================== */
|
136
|
+
|
137
|
+
// Default
|
138
|
+
.uk-flex-nowrap {
|
139
|
+
-ms-flex-wrap: nowrap;
|
140
|
+
-webkit-flex-wrap: nowrap;
|
141
|
+
flex-wrap: nowrap;
|
142
|
+
}
|
143
|
+
|
144
|
+
.uk-flex-wrap {
|
145
|
+
-ms-flex-wrap: wrap;
|
146
|
+
-webkit-flex-wrap: wrap;
|
147
|
+
flex-wrap: wrap;
|
148
|
+
}
|
149
|
+
|
150
|
+
.uk-flex-wrap-reverse {
|
151
|
+
-ms-flex-wrap: wrap-reverse;
|
152
|
+
-webkit-flex-wrap: wrap-reverse;
|
153
|
+
flex-wrap: wrap-reverse;
|
154
|
+
}
|
155
|
+
|
156
|
+
/*
|
157
|
+
* Aligns items within the flex container when there is extra space in the cross-axis
|
158
|
+
* Only works if there is more than one line of flex items
|
159
|
+
*/
|
160
|
+
|
161
|
+
// Default
|
162
|
+
.uk-flex-wrap-stretch {
|
163
|
+
-ms-flex-line-pack: stretch;
|
164
|
+
-webkit-align-content: stretch;
|
165
|
+
align-content: stretch;
|
166
|
+
}
|
167
|
+
|
168
|
+
.uk-flex-wrap-top {
|
169
|
+
-ms-flex-line-pack: start;
|
170
|
+
-webkit-align-content: flex-start;
|
171
|
+
align-content: flex-start;
|
172
|
+
}
|
173
|
+
|
174
|
+
.uk-flex-wrap-middle {
|
175
|
+
-ms-flex-line-pack: center;
|
176
|
+
-webkit-align-content: center;
|
177
|
+
align-content: center;
|
178
|
+
}
|
179
|
+
|
180
|
+
.uk-flex-wrap-bottom {
|
181
|
+
-ms-flex-line-pack: end;
|
182
|
+
-webkit-align-content: flex-end;
|
183
|
+
align-content: flex-end;
|
184
|
+
}
|
185
|
+
|
186
|
+
.uk-flex-wrap-between {
|
187
|
+
-ms-flex-line-pack: justify;
|
188
|
+
-webkit-align-content: space-between;
|
189
|
+
align-content: space-between;
|
190
|
+
}
|
191
|
+
|
192
|
+
.uk-flex-wrap-around {
|
193
|
+
-ms-flex-line-pack: distribute;
|
194
|
+
-webkit-align-content: space-around;
|
195
|
+
align-content: space-around;
|
196
|
+
}
|
197
|
+
|
198
|
+
|
199
|
+
/* Item ordering
|
200
|
+
========================================================================== */
|
201
|
+
|
202
|
+
/*
|
203
|
+
* Default is 0
|
204
|
+
*/
|
205
|
+
|
206
|
+
.uk-flex-first {
|
207
|
+
-ms-flex-order: -1;
|
208
|
+
-webkit-order: -1;
|
209
|
+
order: -1;
|
210
|
+
}
|
211
|
+
|
212
|
+
.uk-flex-last {
|
213
|
+
-ms-flex-order: 99;
|
214
|
+
-webkit-order: 99;
|
215
|
+
order: 99;
|
216
|
+
}
|
217
|
+
|
218
|
+
|
219
|
+
/* Phone landscape and bigger */
|
220
|
+
@media (min-width: @breakpoint-small) {
|
221
|
+
|
222
|
+
.uk-flex-first\@s {
|
223
|
+
-ms-flex-order: -1;
|
224
|
+
-webkit-order: -1;
|
225
|
+
order: -1;
|
226
|
+
}
|
227
|
+
|
228
|
+
.uk-flex-last\@s {
|
229
|
+
-ms-flex-order: 99;
|
230
|
+
-webkit-order: 99;
|
231
|
+
order: 99;
|
232
|
+
}
|
233
|
+
|
234
|
+
}
|
235
|
+
|
236
|
+
/* Tablet landscape and bigger */
|
237
|
+
@media (min-width: @breakpoint-medium) {
|
238
|
+
|
239
|
+
.uk-flex-first\@m {
|
240
|
+
-ms-flex-order: -1;
|
241
|
+
-webkit-order: -1;
|
242
|
+
order: -1;
|
243
|
+
}
|
244
|
+
|
245
|
+
.uk-flex-last\@m {
|
246
|
+
-ms-flex-order: 99;
|
247
|
+
-webkit-order: 99;
|
248
|
+
order: 99;
|
249
|
+
}
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
/* Desktop and bigger */
|
254
|
+
@media (min-width: @breakpoint-large) {
|
255
|
+
|
256
|
+
.uk-flex-first\@l {
|
257
|
+
-ms-flex-order: -1;
|
258
|
+
-webkit-order: -1;
|
259
|
+
order: -1;
|
260
|
+
}
|
261
|
+
|
262
|
+
.uk-flex-last\@l {
|
263
|
+
-ms-flex-order: 99;
|
264
|
+
-webkit-order: 99;
|
265
|
+
order: 99;
|
266
|
+
}
|
267
|
+
|
268
|
+
}
|
269
|
+
|
270
|
+
/* Large screen and bigger */
|
271
|
+
@media (min-width: @breakpoint-xlarge) {
|
272
|
+
|
273
|
+
.uk-flex-first\@xl {
|
274
|
+
-ms-flex-order: -1;
|
275
|
+
-webkit-order: -1;
|
276
|
+
order: -1;
|
277
|
+
}
|
278
|
+
|
279
|
+
.uk-flex-last\@xl {
|
280
|
+
-ms-flex-order: 99;
|
281
|
+
-webkit-order: 99;
|
282
|
+
order: 99;
|
283
|
+
}
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
/* Item dimensions
|
289
|
+
========================================================================== */
|
290
|
+
|
291
|
+
/*
|
292
|
+
* Initial: 0 1 auto
|
293
|
+
* Content dimensions, but shrinks
|
294
|
+
*/
|
295
|
+
|
296
|
+
/*
|
297
|
+
* No Flex: 0 0 auto
|
298
|
+
* Content dimensions
|
299
|
+
*/
|
300
|
+
|
301
|
+
.uk-flex-none {
|
302
|
+
-ms-flex: none;
|
303
|
+
-webkit-flex: none;
|
304
|
+
flex: none;
|
305
|
+
}
|
306
|
+
|
307
|
+
/*
|
308
|
+
* Relative Flex: 1 1 auto
|
309
|
+
* Space is allocated considering content
|
310
|
+
*/
|
311
|
+
|
312
|
+
.uk-flex-auto {
|
313
|
+
-ms-flex: auto;
|
314
|
+
-webkit-flex: auto;
|
315
|
+
flex: auto;
|
316
|
+
}
|
317
|
+
|
318
|
+
/*
|
319
|
+
* Absolute Flex: 1 1 0%
|
320
|
+
* Space is allocated solely based on flex
|
321
|
+
*/
|
322
|
+
|
323
|
+
.uk-flex-1 {
|
324
|
+
-ms-flex: 1;
|
325
|
+
-webkit-flex: 1;
|
326
|
+
flex: 1;
|
327
|
+
}
|
328
|
+
|
329
|
+
|
330
|
+
// Hooks
|
331
|
+
// ========================================================================
|
332
|
+
|
333
|
+
.hook-flex-misc;
|
334
|
+
|
335
|
+
.hook-flex-misc() {}
|