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,79 @@
|
|
1
|
+
// Name: Padding
|
2
|
+
// Description: Utilities for padding
|
3
|
+
//
|
4
|
+
// Component: `uk-padding`
|
5
|
+
// `uk-padding-large`
|
6
|
+
// `uk-padding-remove-*`
|
7
|
+
//
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
|
11
|
+
// Variables
|
12
|
+
// ========================================================================
|
13
|
+
|
14
|
+
@padding-padding: @global-gutter;
|
15
|
+
@padding-padding-l: @global-medium-gutter;
|
16
|
+
|
17
|
+
@padding-small-padding: @global-small-gutter;
|
18
|
+
|
19
|
+
@padding-large-padding: @global-gutter;
|
20
|
+
@padding-large-padding-l: @global-large-gutter;
|
21
|
+
|
22
|
+
|
23
|
+
/* ========================================================================
|
24
|
+
Component: Padding
|
25
|
+
========================================================================== */
|
26
|
+
|
27
|
+
.uk-padding { padding: @padding-padding; }
|
28
|
+
|
29
|
+
/* Desktop and bigger */
|
30
|
+
@media (min-width: @breakpoint-large) {
|
31
|
+
|
32
|
+
.uk-padding { padding: @padding-padding-l; }
|
33
|
+
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
/* Small
|
38
|
+
========================================================================== */
|
39
|
+
|
40
|
+
.uk-padding-small { padding: @padding-small-padding; }
|
41
|
+
|
42
|
+
|
43
|
+
/* Large
|
44
|
+
========================================================================== */
|
45
|
+
|
46
|
+
.uk-padding-large { padding: @padding-large-padding; }
|
47
|
+
|
48
|
+
/* Desktop and bigger */
|
49
|
+
@media (min-width: @breakpoint-large) {
|
50
|
+
|
51
|
+
.uk-padding-large { padding: @padding-large-padding-l; }
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
/* Remove
|
57
|
+
========================================================================== */
|
58
|
+
|
59
|
+
.uk-padding-remove { padding: 0 !important; }
|
60
|
+
.uk-padding-remove-top { padding-top: 0 !important; }
|
61
|
+
.uk-padding-remove-bottom { padding-bottom: 0 !important; }
|
62
|
+
|
63
|
+
.uk-padding-remove-vertical {
|
64
|
+
padding-top: 0 !important;
|
65
|
+
padding-bottom: 0 !important;
|
66
|
+
}
|
67
|
+
|
68
|
+
.uk-padding-remove-horizontal {
|
69
|
+
padding-left: 0 !important;
|
70
|
+
padding-right: 0 !important;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
// Hooks
|
75
|
+
// ========================================================================
|
76
|
+
|
77
|
+
.hook-padding-misc;
|
78
|
+
|
79
|
+
.hook-padding-misc() {}
|
@@ -0,0 +1,169 @@
|
|
1
|
+
// Name: Pagination
|
2
|
+
// Description: Component to create a page navigation
|
3
|
+
//
|
4
|
+
// Component: `uk-pagination`
|
5
|
+
//
|
6
|
+
// Adopted: `uk-pagination-next`
|
7
|
+
// `uk-pagination-previous`
|
8
|
+
//
|
9
|
+
// States: `uk-active`
|
10
|
+
// `uk-disabled`
|
11
|
+
//
|
12
|
+
// ========================================================================
|
13
|
+
|
14
|
+
|
15
|
+
// Variables
|
16
|
+
// ========================================================================
|
17
|
+
|
18
|
+
@pagination-margin-horizontal: 20px;
|
19
|
+
|
20
|
+
@pagination-item-color: @global-muted-color;
|
21
|
+
@pagination-item-hover-color: @global-color;
|
22
|
+
@pagination-item-hover-text-decoration: none;
|
23
|
+
@pagination-item-active-color: @global-color;
|
24
|
+
@pagination-item-disabled-color: @global-muted-color;
|
25
|
+
|
26
|
+
@internal-pagination-next-image: "../../images/components/pagination-next.svg";
|
27
|
+
@internal-pagination-previous-image: "../../images/components/pagination-previous.svg";
|
28
|
+
|
29
|
+
|
30
|
+
/* ========================================================================
|
31
|
+
Component: Pagination
|
32
|
+
========================================================================== */
|
33
|
+
|
34
|
+
/*
|
35
|
+
* 1. Allow items to wrap into the next line
|
36
|
+
* 2. Gutter
|
37
|
+
* 3. Reset lists
|
38
|
+
*/
|
39
|
+
|
40
|
+
.uk-pagination {
|
41
|
+
display: -ms-flexbox;
|
42
|
+
display: -webkit-flex;
|
43
|
+
display: flex;
|
44
|
+
/* 1 */
|
45
|
+
-ms-flex-wrap: wrap;
|
46
|
+
-webkit-flex-wrap: wrap;
|
47
|
+
flex-wrap: wrap;
|
48
|
+
/* 2 */
|
49
|
+
margin-left: -@pagination-margin-horizontal;
|
50
|
+
/* 3 */
|
51
|
+
padding: 0;
|
52
|
+
list-style: none;
|
53
|
+
.hook-pagination;
|
54
|
+
}
|
55
|
+
|
56
|
+
/*
|
57
|
+
* 1. Space is allocated solely based on content dimensions: 0 0 auto
|
58
|
+
* 2. Gutter
|
59
|
+
* 3. Create position context for dropdowns
|
60
|
+
*/
|
61
|
+
|
62
|
+
.uk-pagination > * {
|
63
|
+
/* 1 */
|
64
|
+
-ms-flex: none;
|
65
|
+
-webkit-flex: none;
|
66
|
+
flex: none;
|
67
|
+
/* 2 */
|
68
|
+
padding-left: @pagination-margin-horizontal;
|
69
|
+
/* 3 */
|
70
|
+
position: relative;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
/* Items
|
75
|
+
========================================================================== */
|
76
|
+
|
77
|
+
/*
|
78
|
+
* 1. Prevent gap if child element is `inline-block`, e.g. an icon
|
79
|
+
* 2. Style
|
80
|
+
*/
|
81
|
+
|
82
|
+
.uk-pagination > * > * {
|
83
|
+
/* 1 */
|
84
|
+
display: block;
|
85
|
+
/* 2 */
|
86
|
+
color: @pagination-item-color;
|
87
|
+
.hook-pagination-item;
|
88
|
+
}
|
89
|
+
|
90
|
+
/* Hover + Focus */
|
91
|
+
.uk-pagination > * > :hover,
|
92
|
+
.uk-pagination > * > :focus {
|
93
|
+
color: @pagination-item-hover-color;
|
94
|
+
text-decoration: @pagination-item-hover-text-decoration;
|
95
|
+
.hook-pagination-item-hover;
|
96
|
+
}
|
97
|
+
|
98
|
+
/* Active */
|
99
|
+
.uk-pagination > .uk-active > * {
|
100
|
+
color: @pagination-item-active-color;
|
101
|
+
.hook-pagination-item-active;
|
102
|
+
}
|
103
|
+
|
104
|
+
/* Disabled */
|
105
|
+
.uk-pagination > .uk-disabled > * {
|
106
|
+
color: @pagination-item-disabled-color;
|
107
|
+
.hook-pagination-item-disabled;
|
108
|
+
}
|
109
|
+
|
110
|
+
/*
|
111
|
+
* Icon
|
112
|
+
* Adopts `uk-icon`
|
113
|
+
*/
|
114
|
+
|
115
|
+
.uk-pagination-next::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-pagination-next-image); }
|
116
|
+
.uk-pagination-previous::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-pagination-previous-image); }
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
// Hooks
|
121
|
+
// ========================================================================
|
122
|
+
|
123
|
+
.hook-pagination-misc;
|
124
|
+
|
125
|
+
.hook-pagination() {}
|
126
|
+
.hook-pagination-item() {}
|
127
|
+
.hook-pagination-item-hover() {}
|
128
|
+
.hook-pagination-item-active() {}
|
129
|
+
.hook-pagination-item-disabled() {}
|
130
|
+
.hook-pagination-misc() {}
|
131
|
+
|
132
|
+
|
133
|
+
// Inverse
|
134
|
+
// ========================================================================
|
135
|
+
|
136
|
+
@inverse-pagination-item-color: @inverse-global-muted-color;
|
137
|
+
@inverse-pagination-item-hover-color: @inverse-global-color;
|
138
|
+
@inverse-pagination-item-active-color: @inverse-global-color;
|
139
|
+
@inverse-pagination-item-disabled-color: @inverse-global-muted-color;
|
140
|
+
|
141
|
+
.hook-inverse() {
|
142
|
+
|
143
|
+
.uk-pagination > * > * {
|
144
|
+
color: @inverse-pagination-item-color;
|
145
|
+
.hook-inverse-pagination-item;
|
146
|
+
}
|
147
|
+
|
148
|
+
.uk-pagination > * > :hover,
|
149
|
+
.uk-pagination > * > :focus {
|
150
|
+
color: @inverse-pagination-item-hover-color;
|
151
|
+
.hook-inverse-pagination-item-hover;
|
152
|
+
}
|
153
|
+
|
154
|
+
.uk-pagination > .uk-active > * {
|
155
|
+
color: @inverse-pagination-item-active-color;
|
156
|
+
.hook-inverse-pagination-item-active;
|
157
|
+
}
|
158
|
+
|
159
|
+
.uk-pagination > .uk-disabled > * {
|
160
|
+
color: @inverse-pagination-item-disabled-color;
|
161
|
+
.hook-inverse-pagination-item-disabled;
|
162
|
+
}
|
163
|
+
|
164
|
+
}
|
165
|
+
|
166
|
+
.hook-inverse-pagination-item() {}
|
167
|
+
.hook-inverse-pagination-item-hover() {}
|
168
|
+
.hook-inverse-pagination-item-active() {}
|
169
|
+
.hook-inverse-pagination-item-disabled() {}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// Name: Placeholder
|
2
|
+
// Description: Component to create placeholder boxes
|
3
|
+
//
|
4
|
+
// Component: `uk-placeholder`
|
5
|
+
//
|
6
|
+
// ========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
// Variables
|
10
|
+
// ========================================================================
|
11
|
+
|
12
|
+
@placeholder-margin-vertical: @global-margin;
|
13
|
+
@placeholder-padding-vertical: @global-gutter;
|
14
|
+
@placeholder-padding-horizontal: @global-gutter;
|
15
|
+
@placeholder-background: @global-muted-background;
|
16
|
+
|
17
|
+
|
18
|
+
/* ========================================================================
|
19
|
+
Component: Placeholder
|
20
|
+
========================================================================== */
|
21
|
+
|
22
|
+
.uk-placeholder {
|
23
|
+
margin-bottom: @placeholder-margin-vertical;
|
24
|
+
padding: @placeholder-padding-vertical @placeholder-padding-horizontal;
|
25
|
+
background: @placeholder-background;
|
26
|
+
.hook-placeholder;
|
27
|
+
}
|
28
|
+
|
29
|
+
/* Add margin if adjacent element */
|
30
|
+
* + .uk-placeholder { margin-top: @placeholder-margin-vertical; }
|
31
|
+
|
32
|
+
/*
|
33
|
+
* Remove margin from the last-child
|
34
|
+
*/
|
35
|
+
|
36
|
+
.uk-placeholder > :last-child { margin-bottom: 0; }
|
37
|
+
|
38
|
+
|
39
|
+
// Hooks
|
40
|
+
// ========================================================================
|
41
|
+
|
42
|
+
.hook-placeholder-misc;
|
43
|
+
|
44
|
+
.hook-placeholder() {}
|
45
|
+
.hook-placeholder-misc() {}
|
@@ -0,0 +1,221 @@
|
|
1
|
+
// Name: Position
|
2
|
+
// Description: Utilities to position content
|
3
|
+
//
|
4
|
+
// Component: `uk-position-absolute`
|
5
|
+
// `uk-position-relative`
|
6
|
+
// `uk-position-z-index`
|
7
|
+
// `uk-position-top`
|
8
|
+
// `uk-position-bottom`
|
9
|
+
// `uk-position-left`
|
10
|
+
// `uk-position-right`
|
11
|
+
// `uk-position-top-left`
|
12
|
+
// `uk-position-top-center`
|
13
|
+
// `uk-position-top-right`
|
14
|
+
// `uk-position-bottom-left`
|
15
|
+
// `uk-position-bottom-center`
|
16
|
+
// `uk-position-bottom-right`
|
17
|
+
// `uk-position-center`
|
18
|
+
// `uk-position-center-left`
|
19
|
+
// `uk-position-center-right`
|
20
|
+
// `uk-position-cover`
|
21
|
+
//
|
22
|
+
// Modifiers: `uk-position-small`
|
23
|
+
// `uk-position-medium`
|
24
|
+
//
|
25
|
+
// ========================================================================
|
26
|
+
|
27
|
+
|
28
|
+
// Variables
|
29
|
+
// ========================================================================
|
30
|
+
|
31
|
+
@position-small-margin: @global-small-gutter;
|
32
|
+
@position-medium-margin: @global-gutter;
|
33
|
+
|
34
|
+
|
35
|
+
/* ========================================================================
|
36
|
+
Component: Position
|
37
|
+
========================================================================== */
|
38
|
+
|
39
|
+
|
40
|
+
/* Directions
|
41
|
+
========================================================================== */
|
42
|
+
|
43
|
+
[class*='uk-position-top'],
|
44
|
+
[class*='uk-position-bottom'],
|
45
|
+
[class*='uk-position-left'],
|
46
|
+
[class*='uk-position-right'],
|
47
|
+
[class*='uk-position-center'] { position: absolute !important; }
|
48
|
+
|
49
|
+
|
50
|
+
/* Edges
|
51
|
+
========================================================================== */
|
52
|
+
|
53
|
+
/* Don't use `width: 100%` because it is wrong if the parent has padding. */
|
54
|
+
.uk-position-top {
|
55
|
+
top: 0;
|
56
|
+
left: 0;
|
57
|
+
right: 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
.uk-position-bottom {
|
61
|
+
bottom: 0;
|
62
|
+
left: 0;
|
63
|
+
right: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
.uk-position-left {
|
67
|
+
top: 0;
|
68
|
+
bottom: 0;
|
69
|
+
left: 0;
|
70
|
+
}
|
71
|
+
|
72
|
+
.uk-position-right {
|
73
|
+
top: 0;
|
74
|
+
bottom: 0;
|
75
|
+
right: 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
/* Corners
|
80
|
+
========================================================================== */
|
81
|
+
|
82
|
+
.uk-position-top-left {
|
83
|
+
top: 0;
|
84
|
+
left: 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
.uk-position-top-right {
|
88
|
+
top: 0;
|
89
|
+
right: 0;
|
90
|
+
}
|
91
|
+
|
92
|
+
.uk-position-bottom-left {
|
93
|
+
bottom: 0;
|
94
|
+
left: 0;
|
95
|
+
}
|
96
|
+
|
97
|
+
.uk-position-bottom-right {
|
98
|
+
bottom: 0;
|
99
|
+
right: 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
/*
|
103
|
+
* Center
|
104
|
+
* 1. Fix text wrapping if content is larger than 50% of the container
|
105
|
+
*/
|
106
|
+
|
107
|
+
.uk-position-center {
|
108
|
+
top: 50%;
|
109
|
+
left: 50%;
|
110
|
+
-webkit-transform: translate(-50%,-50%);
|
111
|
+
transform: translate(-50%,-50%);
|
112
|
+
/* 1 */
|
113
|
+
display: table;
|
114
|
+
}
|
115
|
+
|
116
|
+
/* Vertical */
|
117
|
+
.uk-position-center-left,
|
118
|
+
.uk-position-center-right {
|
119
|
+
top: 50%;
|
120
|
+
-webkit-transform: translateY(-50%);
|
121
|
+
transform: translateY(-50%);
|
122
|
+
}
|
123
|
+
|
124
|
+
.uk-position-center-left { left: 0; }
|
125
|
+
.uk-position-center-right { right: 0; }
|
126
|
+
|
127
|
+
/* Horizontal */
|
128
|
+
.uk-position-top-center,
|
129
|
+
.uk-position-bottom-center {
|
130
|
+
left: 50%;
|
131
|
+
-webkit-transform: translateX(-50%);
|
132
|
+
transform: translateX(-50%);
|
133
|
+
/* 1 */
|
134
|
+
display: table;
|
135
|
+
}
|
136
|
+
|
137
|
+
.uk-position-top-center { top: 0; }
|
138
|
+
.uk-position-bottom-center { bottom: 0; }
|
139
|
+
|
140
|
+
|
141
|
+
/* Cover
|
142
|
+
========================================================================== */
|
143
|
+
|
144
|
+
.uk-position-cover {
|
145
|
+
position: absolute;
|
146
|
+
top: 0;
|
147
|
+
bottom: 0;
|
148
|
+
left: 0;
|
149
|
+
right: 0;
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
/* Utility
|
154
|
+
========================================================================== */
|
155
|
+
|
156
|
+
.uk-position-relative { position: relative !important; }
|
157
|
+
|
158
|
+
.uk-position-absolute { position: absolute !important; }
|
159
|
+
|
160
|
+
.uk-position-fixed { position: fixed !important; }
|
161
|
+
|
162
|
+
.uk-position-z-index { z-index: 1; }
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
/* Margin modifier
|
167
|
+
========================================================================== */
|
168
|
+
|
169
|
+
/*
|
170
|
+
* Small
|
171
|
+
*/
|
172
|
+
|
173
|
+
.uk-position-small { margin: @position-small-margin; }
|
174
|
+
|
175
|
+
.uk-position-small.uk-position-center {
|
176
|
+
-webkit-transform: translate(~'calc(-50% - @{position-small-margin})', ~'calc(-50% - @{position-small-margin})');
|
177
|
+
transform: translate(~'calc(-50% - @{position-small-margin})', ~'calc(-50% - @{position-small-margin})');
|
178
|
+
}
|
179
|
+
|
180
|
+
.uk-position-small.uk-position-center-left,
|
181
|
+
.uk-position-small.uk-position-center-right {
|
182
|
+
-webkit-transform: translateY(~'calc(-50% - @{position-small-margin})');
|
183
|
+
transform: translateY(~'calc(-50% - @{position-small-margin})');
|
184
|
+
}
|
185
|
+
|
186
|
+
.uk-position-small.uk-position-top-center,
|
187
|
+
.uk-position-small.uk-position-bottom-center {
|
188
|
+
-webkit-transform: translateX(~'calc(-50% - @{position-small-margin})');
|
189
|
+
transform: translateX(~'calc(-50% - @{position-small-margin})');
|
190
|
+
}
|
191
|
+
|
192
|
+
/*
|
193
|
+
* Medium
|
194
|
+
*/
|
195
|
+
|
196
|
+
.uk-position-medium { margin: @position-medium-margin; }
|
197
|
+
|
198
|
+
.uk-position-medium.uk-position-center {
|
199
|
+
-webkit-transform: translate(~'calc(-50% - @{position-medium-margin})', ~'calc(-50% - @{position-medium-margin})');
|
200
|
+
transform: translate(~'calc(-50% - @{position-medium-margin})', ~'calc(-50% - @{position-medium-margin})');
|
201
|
+
}
|
202
|
+
|
203
|
+
.uk-position-medium.uk-position-center-left,
|
204
|
+
.uk-position-medium.uk-position-center-right {
|
205
|
+
-webkit-transform: translateY(~'calc(-50% - @{position-medium-margin})');
|
206
|
+
transform: translateY(~'calc(-50% - @{position-medium-margin})');
|
207
|
+
}
|
208
|
+
|
209
|
+
.uk-position-medium.uk-position-top-center,
|
210
|
+
.uk-position-medium.uk-position-bottom-center {
|
211
|
+
-webkit-transform: translateX(~'calc(-50% - @{position-medium-margin})');
|
212
|
+
transform: translateX(~'calc(-50% - @{position-medium-margin})');
|
213
|
+
}
|
214
|
+
|
215
|
+
|
216
|
+
// Hooks
|
217
|
+
// ========================================================================
|
218
|
+
|
219
|
+
.hook-position-misc;
|
220
|
+
|
221
|
+
.hook-position-misc() {}
|