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,110 @@
|
|
1
|
+
// Name: Label
|
2
|
+
// Description: Component to indicate important notes
|
3
|
+
//
|
4
|
+
// Component: `uk-label`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-label-success`
|
7
|
+
// `uk-label-warning`
|
8
|
+
// `uk-label-danger`
|
9
|
+
//
|
10
|
+
// ========================================================================
|
11
|
+
|
12
|
+
|
13
|
+
// Variables
|
14
|
+
// ========================================================================
|
15
|
+
|
16
|
+
@label-padding-vertical: 0;
|
17
|
+
@label-padding-horizontal: @global-small-margin;
|
18
|
+
@label-background: @global-primary-background;
|
19
|
+
@label-line-height: @global-line-height;
|
20
|
+
@label-font-size: @global-small-font-size;
|
21
|
+
@label-color: @global-inverse-color;
|
22
|
+
|
23
|
+
@label-success-background: @global-success-background;
|
24
|
+
@label-success-color: @global-inverse-color;
|
25
|
+
@label-warning-background: @global-warning-background;
|
26
|
+
@label-warning-color: @global-inverse-color;
|
27
|
+
@label-danger-background: @global-danger-background;
|
28
|
+
@label-danger-color: @global-inverse-color;
|
29
|
+
|
30
|
+
|
31
|
+
/* ========================================================================
|
32
|
+
Component: Label
|
33
|
+
========================================================================== */
|
34
|
+
|
35
|
+
.uk-label {
|
36
|
+
display: inline-block;
|
37
|
+
padding: @label-padding-vertical @label-padding-horizontal;
|
38
|
+
background: @label-background;
|
39
|
+
line-height: @label-line-height;
|
40
|
+
font-size: @label-font-size;
|
41
|
+
color: @label-color;
|
42
|
+
vertical-align: middle;
|
43
|
+
white-space: nowrap;
|
44
|
+
.hook-label;
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
/* Color modifiers
|
49
|
+
========================================================================== */
|
50
|
+
|
51
|
+
/*
|
52
|
+
* Success
|
53
|
+
*/
|
54
|
+
|
55
|
+
.uk-label-success {
|
56
|
+
background-color: @label-success-background;
|
57
|
+
color: @label-success-color;
|
58
|
+
.hook-label-success;
|
59
|
+
}
|
60
|
+
|
61
|
+
/*
|
62
|
+
* Warning
|
63
|
+
*/
|
64
|
+
|
65
|
+
.uk-label-warning {
|
66
|
+
background-color: @label-warning-background;
|
67
|
+
color: @label-warning-color;
|
68
|
+
.hook-label-warning;
|
69
|
+
}
|
70
|
+
|
71
|
+
/*
|
72
|
+
* Danger
|
73
|
+
*/
|
74
|
+
|
75
|
+
.uk-label-danger {
|
76
|
+
background-color: @label-danger-background;
|
77
|
+
color: @label-danger-color;
|
78
|
+
.hook-label-danger;
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// Hooks
|
83
|
+
// ========================================================================
|
84
|
+
|
85
|
+
.hook-label-misc;
|
86
|
+
|
87
|
+
.hook-label() {}
|
88
|
+
.hook-label-success() {}
|
89
|
+
.hook-label-warning() {}
|
90
|
+
.hook-label-danger() {}
|
91
|
+
.hook-label-misc() {}
|
92
|
+
|
93
|
+
|
94
|
+
// Inverse
|
95
|
+
// ========================================================================
|
96
|
+
|
97
|
+
@inverse-label-background: @inverse-global-primary-background;
|
98
|
+
@inverse-label-color: @inverse-global-inverse-color;
|
99
|
+
|
100
|
+
.hook-inverse() {
|
101
|
+
|
102
|
+
.uk-label {
|
103
|
+
background-color: @inverse-label-background;
|
104
|
+
color: @inverse-label-color;
|
105
|
+
.hook-inverse-label;
|
106
|
+
}
|
107
|
+
|
108
|
+
}
|
109
|
+
|
110
|
+
.hook-inverse-label() {}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
// Name: Link
|
2
|
+
// Description: Styles for links
|
3
|
+
//
|
4
|
+
// Component: `uk-link-muted`
|
5
|
+
// `uk-link-reset`
|
6
|
+
//
|
7
|
+
// ========================================================================
|
8
|
+
|
9
|
+
|
10
|
+
// Variables
|
11
|
+
// ========================================================================
|
12
|
+
|
13
|
+
@link-muted-color: @global-muted-color;
|
14
|
+
@link-muted-hover-color: @global-color;
|
15
|
+
|
16
|
+
|
17
|
+
/* ========================================================================
|
18
|
+
Component: Link
|
19
|
+
========================================================================== */
|
20
|
+
|
21
|
+
|
22
|
+
/* Muted
|
23
|
+
========================================================================== */
|
24
|
+
|
25
|
+
a.uk-link-muted,
|
26
|
+
.uk-link-muted a {
|
27
|
+
color: @link-muted-color;
|
28
|
+
.hook-link-muted;
|
29
|
+
}
|
30
|
+
|
31
|
+
a.uk-link-muted:hover,
|
32
|
+
.uk-link-muted a:hover {
|
33
|
+
color: @link-muted-hover-color;
|
34
|
+
.hook-link-muted-hover;
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
/* Reset
|
39
|
+
========================================================================== */
|
40
|
+
|
41
|
+
/*
|
42
|
+
* `!important` needed to override inverse component
|
43
|
+
*/
|
44
|
+
|
45
|
+
a.uk-link-reset,
|
46
|
+
a.uk-link-reset:hover,
|
47
|
+
a.uk-link-reset:focus,
|
48
|
+
.uk-link-reset a,
|
49
|
+
.uk-link-reset a:hover,
|
50
|
+
.uk-link-reset a:focus {
|
51
|
+
color: inherit !important;
|
52
|
+
text-decoration: none !important;
|
53
|
+
.hook-link-reset;
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Hooks
|
58
|
+
// ========================================================================
|
59
|
+
|
60
|
+
.hook-link-misc;
|
61
|
+
|
62
|
+
.hook-link-muted() {}
|
63
|
+
.hook-link-muted-hover() {}
|
64
|
+
.hook-link-reset() {}
|
65
|
+
.hook-link-misc() {}
|
66
|
+
|
67
|
+
|
68
|
+
// Inverse
|
69
|
+
// ========================================================================
|
70
|
+
|
71
|
+
@inverse-link-muted-color: @inverse-global-muted-color;
|
72
|
+
@inverse-link-muted-hover-color: @inverse-global-color;
|
73
|
+
|
74
|
+
.hook-inverse() {
|
75
|
+
|
76
|
+
a.uk-link-muted,
|
77
|
+
.uk-link-muted a {
|
78
|
+
color: @inverse-link-muted-color;
|
79
|
+
.hook-inverse-link-muted;
|
80
|
+
}
|
81
|
+
|
82
|
+
a.uk-link-muted:hover,
|
83
|
+
.uk-link-muted a:hover {
|
84
|
+
color: @inverse-link-muted-hover-color;
|
85
|
+
.hook-inverse-link-muted-hover;
|
86
|
+
}
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
.hook-inverse-link-muted() {}
|
91
|
+
.hook-inverse-link-muted-hover() {}
|
@@ -0,0 +1,205 @@
|
|
1
|
+
// Name: List
|
2
|
+
// Description: Styles for lists
|
3
|
+
//
|
4
|
+
// Component: `uk-list`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-list-divider`
|
7
|
+
// `uk-list-striped`
|
8
|
+
// `uk-list-bullet`
|
9
|
+
// `uk-list-large`
|
10
|
+
//
|
11
|
+
// ========================================================================
|
12
|
+
|
13
|
+
|
14
|
+
// Variables
|
15
|
+
// ========================================================================
|
16
|
+
|
17
|
+
@list-margin-top: @global-small-margin;
|
18
|
+
|
19
|
+
@list-nested-padding-left: @global-gutter;
|
20
|
+
|
21
|
+
@list-divider-margin-top: @global-small-margin;
|
22
|
+
@list-divider-border-width: @global-border-width;
|
23
|
+
@list-divider-border: @global-border;
|
24
|
+
|
25
|
+
@list-striped-padding-vertical: @global-small-margin;
|
26
|
+
@list-striped-padding-horizontal: @global-small-margin;
|
27
|
+
@list-striped-background: @global-muted-background;
|
28
|
+
|
29
|
+
@list-bullet-width: (@global-line-height * 1em);
|
30
|
+
@list-bullet-height: @list-bullet-width;
|
31
|
+
@list-bullet-margin-right: @global-small-margin;
|
32
|
+
@list-bullet-icon-color: @global-color;
|
33
|
+
|
34
|
+
@list-large-margin-top: @global-margin;
|
35
|
+
@list-large-divider-margin-top: @global-margin;
|
36
|
+
@list-large-striped-padding-vertical: @global-margin;
|
37
|
+
@list-large-striped-padding-horizontal: @global-small-margin;
|
38
|
+
|
39
|
+
@internal-list-bullet-image: "../../images/backgrounds/list-bullet.svg";
|
40
|
+
|
41
|
+
|
42
|
+
/* ========================================================================
|
43
|
+
Component: List
|
44
|
+
========================================================================== */
|
45
|
+
|
46
|
+
.uk-list {
|
47
|
+
padding: 0;
|
48
|
+
list-style: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
/*
|
52
|
+
* Micro clearfix
|
53
|
+
*/
|
54
|
+
|
55
|
+
.uk-list > li::before,
|
56
|
+
.uk-list > li::after {
|
57
|
+
content: "";
|
58
|
+
display: table;
|
59
|
+
}
|
60
|
+
|
61
|
+
.uk-list > li::after { clear: both; }
|
62
|
+
|
63
|
+
/*
|
64
|
+
* Remove margin from the last-child
|
65
|
+
*/
|
66
|
+
|
67
|
+
.uk-list > li > :last-child { margin-bottom: 0; }
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Nested lists
|
71
|
+
*/
|
72
|
+
|
73
|
+
.uk-list ul {
|
74
|
+
margin: 0;
|
75
|
+
padding-left: @list-nested-padding-left;
|
76
|
+
list-style: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
/*
|
80
|
+
* Style
|
81
|
+
*/
|
82
|
+
|
83
|
+
.uk-list > li:nth-child(n+2),
|
84
|
+
.uk-list > li > ul { margin-top: @list-margin-top; }
|
85
|
+
|
86
|
+
|
87
|
+
/* Style modifiers
|
88
|
+
========================================================================== */
|
89
|
+
|
90
|
+
/*
|
91
|
+
* Divider
|
92
|
+
*/
|
93
|
+
|
94
|
+
.uk-list-divider > li:nth-child(n+2) {
|
95
|
+
margin-top: @list-divider-margin-top;
|
96
|
+
padding-top: @list-divider-margin-top;
|
97
|
+
border-top: @list-divider-border-width solid @list-divider-border;
|
98
|
+
.hook-list-divider;
|
99
|
+
}
|
100
|
+
|
101
|
+
/*
|
102
|
+
* Striped
|
103
|
+
*/
|
104
|
+
|
105
|
+
.uk-list-striped > li {
|
106
|
+
padding: @list-striped-padding-vertical @list-striped-padding-horizontal;
|
107
|
+
.hook-list-striped;
|
108
|
+
}
|
109
|
+
|
110
|
+
.uk-list-striped > li:nth-of-type(odd) { background: @list-striped-background; }
|
111
|
+
|
112
|
+
.uk-list-striped > li:nth-child(n+2) { margin-top: 0; }
|
113
|
+
|
114
|
+
/*
|
115
|
+
* Bullet
|
116
|
+
*/
|
117
|
+
|
118
|
+
.uk-list-bullet > li {
|
119
|
+
position: relative;
|
120
|
+
padding-left: ~'calc(@{list-bullet-width} + @{list-bullet-margin-right})';
|
121
|
+
}
|
122
|
+
|
123
|
+
.uk-list-bullet > li::before {
|
124
|
+
content: "";
|
125
|
+
position: absolute;
|
126
|
+
top: 0;
|
127
|
+
left: 0;
|
128
|
+
width: @list-bullet-width;
|
129
|
+
height: @list-bullet-height;
|
130
|
+
.svg-fill(@internal-list-bullet-image, "#000", @list-bullet-icon-color);
|
131
|
+
background-repeat: no-repeat;
|
132
|
+
background-position: 50% 50%;
|
133
|
+
float: left;
|
134
|
+
.hook-list-bullet;
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
/* Size modifier
|
139
|
+
========================================================================== */
|
140
|
+
|
141
|
+
.uk-list-large > li:nth-child(n+2),
|
142
|
+
.uk-list-large > li > ul { margin-top: @list-large-margin-top; }
|
143
|
+
|
144
|
+
/*
|
145
|
+
* Divider
|
146
|
+
*/
|
147
|
+
|
148
|
+
.uk-list-large.uk-list-divider > li:nth-child(n+2) {
|
149
|
+
margin-top: @list-large-divider-margin-top;
|
150
|
+
padding-top: @list-large-divider-margin-top;
|
151
|
+
}
|
152
|
+
|
153
|
+
/*
|
154
|
+
* Striped
|
155
|
+
*/
|
156
|
+
|
157
|
+
.uk-list-large.uk-list-striped > li {
|
158
|
+
padding: @list-large-striped-padding-vertical @list-large-striped-padding-horizontal;
|
159
|
+
.hook-list-striped;
|
160
|
+
}
|
161
|
+
|
162
|
+
.uk-list-large.uk-list-striped > li:nth-child(n+2) { margin-top: 0; }
|
163
|
+
|
164
|
+
|
165
|
+
// Hooks
|
166
|
+
// ========================================================================
|
167
|
+
|
168
|
+
.hook-list-misc;
|
169
|
+
|
170
|
+
.hook-list-divider() {}
|
171
|
+
.hook-list-striped() {}
|
172
|
+
.hook-list-bullet() {}
|
173
|
+
.hook-list-misc() {}
|
174
|
+
|
175
|
+
|
176
|
+
// Inverse
|
177
|
+
// ========================================================================
|
178
|
+
|
179
|
+
@inverse-list-divider-border: @inverse-global-border;
|
180
|
+
@inverse-list-striped-background: @inverse-global-muted-background;
|
181
|
+
@inverse-list-bullet-icon-color: @inverse-global-color;
|
182
|
+
|
183
|
+
.hook-inverse() {
|
184
|
+
|
185
|
+
.uk-list-divider > li:nth-child(n+2) {
|
186
|
+
border-top-color: @inverse-list-divider-border;
|
187
|
+
.hook-inverse-list-divider;
|
188
|
+
}
|
189
|
+
|
190
|
+
.uk-list-striped > li {
|
191
|
+
.hook-inverse-list-striped;
|
192
|
+
}
|
193
|
+
|
194
|
+
.uk-list-striped > li:nth-of-type(odd) { background-color: @inverse-list-striped-background; }
|
195
|
+
|
196
|
+
.uk-list-bullet > li::before {
|
197
|
+
.svg-fill(@internal-list-bullet-image, "#000", @inverse-list-bullet-icon-color);
|
198
|
+
.hook-inverse-list-bullet;
|
199
|
+
}
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
.hook-inverse-list-divider() {}
|
204
|
+
.hook-inverse-list-striped() {}
|
205
|
+
.hook-inverse-list-bullet() {}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
// Name: Margin
|
2
|
+
// Description: Utilities for margins
|
3
|
+
//
|
4
|
+
// Component: `uk-margin-*`
|
5
|
+
// `uk-margin-small-*`
|
6
|
+
// `uk-margin-medium-*`
|
7
|
+
// `uk-margin-large-*`
|
8
|
+
// `uk-margin-xlarge-*`
|
9
|
+
// `uk-margin-remove-*`
|
10
|
+
// `uk-margin-auto-*`
|
11
|
+
//
|
12
|
+
// ========================================================================
|
13
|
+
|
14
|
+
|
15
|
+
// Variables
|
16
|
+
// ========================================================================
|
17
|
+
|
18
|
+
@margin-margin: @global-margin;
|
19
|
+
|
20
|
+
@margin-small-margin: @global-small-margin;
|
21
|
+
|
22
|
+
@margin-medium-margin: @global-medium-margin;
|
23
|
+
|
24
|
+
@margin-large-margin: @global-medium-margin;
|
25
|
+
@margin-large-margin-l: @global-large-margin;
|
26
|
+
|
27
|
+
@margin-xlarge-margin: @global-large-margin;
|
28
|
+
@margin-xlarge-margin-l: @global-xlarge-margin;
|
29
|
+
|
30
|
+
|
31
|
+
/* ========================================================================
|
32
|
+
Component: Margin
|
33
|
+
========================================================================== */
|
34
|
+
|
35
|
+
/*
|
36
|
+
* Default
|
37
|
+
*/
|
38
|
+
|
39
|
+
.uk-margin { margin-bottom: @margin-margin; }
|
40
|
+
* + .uk-margin { margin-top: @margin-margin !important; }
|
41
|
+
|
42
|
+
.uk-margin-top { margin-top: @margin-margin !important; }
|
43
|
+
.uk-margin-bottom { margin-bottom: @margin-margin !important; }
|
44
|
+
.uk-margin-left { margin-left: @margin-margin !important; }
|
45
|
+
.uk-margin-right { margin-right: @margin-margin !important; }
|
46
|
+
|
47
|
+
|
48
|
+
/* Small
|
49
|
+
========================================================================== */
|
50
|
+
|
51
|
+
.uk-margin-small { margin-bottom: @margin-small-margin; }
|
52
|
+
* + .uk-margin-small { margin-top: @margin-small-margin !important; }
|
53
|
+
|
54
|
+
.uk-margin-small-top { margin-top: @margin-small-margin !important; }
|
55
|
+
.uk-margin-small-bottom { margin-bottom: @margin-small-margin !important; }
|
56
|
+
.uk-margin-small-left { margin-left: @margin-small-margin !important; }
|
57
|
+
.uk-margin-small-right { margin-right: @margin-small-margin !important; }
|
58
|
+
|
59
|
+
|
60
|
+
/* Medium
|
61
|
+
========================================================================== */
|
62
|
+
|
63
|
+
.uk-margin-medium { margin-bottom: @margin-medium-margin; }
|
64
|
+
* + .uk-margin-medium { margin-top: @margin-medium-margin !important; }
|
65
|
+
|
66
|
+
.uk-margin-medium-top { margin-top: @margin-medium-margin !important; }
|
67
|
+
.uk-margin-medium-bottom { margin-bottom: @margin-medium-margin !important; }
|
68
|
+
.uk-margin-medium-left { margin-left: @margin-medium-margin !important; }
|
69
|
+
.uk-margin-medium-right { margin-right: @margin-medium-margin !important; }
|
70
|
+
|
71
|
+
|
72
|
+
/* Large
|
73
|
+
========================================================================== */
|
74
|
+
|
75
|
+
.uk-margin-large { margin-bottom: @margin-large-margin; }
|
76
|
+
* + .uk-margin-large { margin-top: @margin-large-margin !important; }
|
77
|
+
|
78
|
+
.uk-margin-large-top { margin-top: @margin-large-margin!important; }
|
79
|
+
.uk-margin-large-bottom { margin-bottom: @margin-large-margin!important; }
|
80
|
+
.uk-margin-large-left { margin-left: @margin-large-margin!important; }
|
81
|
+
.uk-margin-large-right { margin-right: @margin-large-margin!important; }
|
82
|
+
|
83
|
+
/* Desktop and bigger */
|
84
|
+
@media (min-width: @breakpoint-large) {
|
85
|
+
|
86
|
+
.uk-margin-large { margin-bottom: @margin-large-margin-l; }
|
87
|
+
* + .uk-margin-large { margin-top: @margin-large-margin-l !important; }
|
88
|
+
|
89
|
+
.uk-margin-large-top { margin-top: @margin-large-margin-l !important; }
|
90
|
+
.uk-margin-large-bottom { margin-bottom: @margin-large-margin-l !important; }
|
91
|
+
.uk-margin-large-left { margin-left: @margin-large-margin-l !important; }
|
92
|
+
.uk-margin-large-right { margin-right: @margin-large-margin-l !important; }
|
93
|
+
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
/* XLarge
|
98
|
+
========================================================================== */
|
99
|
+
|
100
|
+
.uk-margin-xlarge { margin-bottom: @margin-xlarge-margin; }
|
101
|
+
* + .uk-margin-xlarge { margin-top: @margin-xlarge-margin !important; }
|
102
|
+
|
103
|
+
.uk-margin-xlarge-top { margin-top: @margin-xlarge-margin !important; }
|
104
|
+
.uk-margin-xlarge-bottom { margin-bottom: @margin-xlarge-margin !important; }
|
105
|
+
.uk-margin-xlarge-left { margin-left: @margin-xlarge-margin !important; }
|
106
|
+
.uk-margin-xlarge-right { margin-right: @margin-xlarge-margin !important; }
|
107
|
+
|
108
|
+
/* Desktop and bigger */
|
109
|
+
@media (min-width: @breakpoint-large) {
|
110
|
+
|
111
|
+
.uk-margin-xlarge { margin-bottom: @margin-xlarge-margin-l; }
|
112
|
+
* + .uk-margin-xlarge { margin-top: @margin-xlarge-margin-l !important; }
|
113
|
+
|
114
|
+
.uk-margin-xlarge-top { margin-top: @margin-xlarge-margin-l !important; }
|
115
|
+
.uk-margin-xlarge-bottom { margin-bottom: @margin-xlarge-margin-l !important; }
|
116
|
+
.uk-margin-xlarge-left { margin-left: @margin-xlarge-margin-l !important; }
|
117
|
+
.uk-margin-xlarge-right { margin-right: @margin-xlarge-margin-l !important; }
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
/* Remove
|
123
|
+
========================================================================== */
|
124
|
+
|
125
|
+
.uk-margin-remove { margin: 0 !important; }
|
126
|
+
.uk-margin-remove-top { margin-top: 0 !important; }
|
127
|
+
.uk-margin-remove-bottom { margin-bottom: 0 !important; }
|
128
|
+
.uk-margin-remove-left { margin-left: 0 !important; }
|
129
|
+
.uk-margin-remove-right { margin-right: 0 !important; }
|
130
|
+
|
131
|
+
.uk-margin-remove-vertical {
|
132
|
+
margin-top: 0 !important;
|
133
|
+
margin-bottom: 0 !important;
|
134
|
+
}
|
135
|
+
|
136
|
+
.uk-margin-remove-adjacent + * { margin-top: 0 !important; }
|
137
|
+
|
138
|
+
|
139
|
+
/* Auto
|
140
|
+
========================================================================== */
|
141
|
+
|
142
|
+
.uk-margin-auto {
|
143
|
+
margin-left: auto !important;
|
144
|
+
margin-right: auto !important;
|
145
|
+
}
|
146
|
+
|
147
|
+
.uk-margin-auto-left { margin-left: auto !important; }
|
148
|
+
.uk-margin-auto-right { margin-right: auto !important; }
|
149
|
+
|
150
|
+
.uk-margin-auto-vertical {
|
151
|
+
margin-top: auto !important;
|
152
|
+
margin-bottom: auto !important;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
// Hooks
|
157
|
+
// ========================================================================
|
158
|
+
|
159
|
+
.hook-margin-misc;
|
160
|
+
|
161
|
+
.hook-margin-misc() {}
|