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,117 @@
|
|
1
|
+
//
|
2
|
+
// Component: Variables
|
3
|
+
// Description: Defines common values which are used across all components
|
4
|
+
//
|
5
|
+
// ========================================================================
|
6
|
+
|
7
|
+
|
8
|
+
// Breakpoints
|
9
|
+
// ========================================================================
|
10
|
+
|
11
|
+
// Phone Portrait: Galaxy (360x640), iPhone 6 (375x667), iPhone 6+ (414x736)
|
12
|
+
// Phone Landscape: Galaxy (640x360), iPhone 6 (667x375), iPhone 6+ (736x414)
|
13
|
+
// Tablet Portrait: iPad (768x1024), Galaxy Tab (800x1280),
|
14
|
+
// Tablet Landscape: iPad (1024x768), iPad Pro (1024x1366),
|
15
|
+
// Desktop: Galaxy Tab (1280x800), iPad Pro (1366x1024)
|
16
|
+
|
17
|
+
@breakpoint-small: 640px; // Phone landscape
|
18
|
+
@breakpoint-medium: 960px; // Tablet Landscape
|
19
|
+
@breakpoint-large: 1200px; // Desktop
|
20
|
+
@breakpoint-xlarge: 1600px; // Large Screens
|
21
|
+
|
22
|
+
@breakpoint-xsmall-max: (@breakpoint-small - 1);
|
23
|
+
@breakpoint-small-max: (@breakpoint-medium - 1);
|
24
|
+
@breakpoint-medium-max: (@breakpoint-large - 1);
|
25
|
+
@breakpoint-large-max: (@breakpoint-xlarge - 1);
|
26
|
+
|
27
|
+
|
28
|
+
// Global variables
|
29
|
+
// ========================================================================
|
30
|
+
|
31
|
+
//
|
32
|
+
// Typography
|
33
|
+
//
|
34
|
+
|
35
|
+
@global-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
36
|
+
@global-font-size: 16px;
|
37
|
+
@global-line-height: 1.5; // 24px
|
38
|
+
|
39
|
+
@global-xxlarge-font-size: 2.625rem; // 42px
|
40
|
+
@global-xlarge-font-size: 2rem; // 32px
|
41
|
+
@global-large-font-size: 1.5rem; // 24px
|
42
|
+
@global-medium-font-size: 1.25rem; // 20px
|
43
|
+
@global-small-font-size: 0.875rem; // 14px
|
44
|
+
|
45
|
+
//
|
46
|
+
// Colors
|
47
|
+
//
|
48
|
+
|
49
|
+
@global-color: #666;
|
50
|
+
@global-emphasis-color: #333;
|
51
|
+
@global-muted-color: #999;
|
52
|
+
|
53
|
+
@global-link-color: #1e87f0;
|
54
|
+
@global-link-hover-color: #0f6ecd;
|
55
|
+
|
56
|
+
@global-inverse-color: #fff;
|
57
|
+
|
58
|
+
//
|
59
|
+
// Backgrounds
|
60
|
+
//
|
61
|
+
|
62
|
+
@global-background: #fff;
|
63
|
+
|
64
|
+
@global-muted-background: #f8f8f8;
|
65
|
+
@global-primary-background: #1e87f0;
|
66
|
+
@global-secondary-background: #222;
|
67
|
+
|
68
|
+
@global-success-background: #32d296;
|
69
|
+
@global-warning-background: #faa05a;
|
70
|
+
@global-danger-background: #f0506e;
|
71
|
+
|
72
|
+
//
|
73
|
+
// Borders
|
74
|
+
//
|
75
|
+
|
76
|
+
@global-border-width: 1px;
|
77
|
+
@global-border: #e5e5e5;
|
78
|
+
|
79
|
+
//
|
80
|
+
// Box-Shadows
|
81
|
+
//
|
82
|
+
|
83
|
+
@global-small-box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
84
|
+
@global-medium-box-shadow: 0 5px 15px rgba(0,0,0,0.08);
|
85
|
+
@global-large-box-shadow: 0 14px 25px rgba(0,0,0,0.16);
|
86
|
+
@global-xlarge-box-shadow: 0 28px 50px rgba(0,0,0,0.16);
|
87
|
+
|
88
|
+
//
|
89
|
+
// Spacings
|
90
|
+
//
|
91
|
+
|
92
|
+
// Used in margin, section, list
|
93
|
+
@global-margin: 20px;
|
94
|
+
@global-small-margin: 10px;
|
95
|
+
@global-medium-margin: 40px;
|
96
|
+
@global-large-margin: 70px;
|
97
|
+
@global-xlarge-margin: 140px;
|
98
|
+
|
99
|
+
// Used in grid, column, container, align, card, padding
|
100
|
+
@global-gutter: 30px;
|
101
|
+
@global-small-gutter: 15px;
|
102
|
+
@global-medium-gutter: 40px;
|
103
|
+
@global-large-gutter: 70px;
|
104
|
+
|
105
|
+
//
|
106
|
+
// Controls
|
107
|
+
//
|
108
|
+
|
109
|
+
@global-control-height: 40px;
|
110
|
+
@global-control-small-height: 30px;
|
111
|
+
@global-control-large-height: 55px;
|
112
|
+
|
113
|
+
//
|
114
|
+
// Z-index
|
115
|
+
//
|
116
|
+
|
117
|
+
@global-z-index: 1000;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
// Name: Visibility
|
2
|
+
// Description: Utilities to show or hide content on breakpoints, hover or touch
|
3
|
+
//
|
4
|
+
// Component: `uk-hidden-*`
|
5
|
+
// `uk-visible-*`
|
6
|
+
// `uk-invisible`
|
7
|
+
// `uk-visible-toggle`
|
8
|
+
// `uk-hidden-hover`
|
9
|
+
// `uk-invisible-hover`
|
10
|
+
//
|
11
|
+
// ========================================================================
|
12
|
+
|
13
|
+
|
14
|
+
/* ========================================================================
|
15
|
+
Component: Visibility
|
16
|
+
========================================================================== */
|
17
|
+
|
18
|
+
/*
|
19
|
+
* Hidden
|
20
|
+
* `hidden` attribute also set here to make it stronger
|
21
|
+
*/
|
22
|
+
|
23
|
+
[hidden],
|
24
|
+
.uk-hidden { display: none !important; }
|
25
|
+
|
26
|
+
/* Phone landscape and bigger */
|
27
|
+
@media (min-width: @breakpoint-small) {
|
28
|
+
|
29
|
+
.uk-hidden\@s { display: none !important; }
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
/* Tablet landscape and bigger */
|
34
|
+
@media (min-width: @breakpoint-medium) {
|
35
|
+
|
36
|
+
.uk-hidden\@m { display: none !important; }
|
37
|
+
|
38
|
+
}
|
39
|
+
|
40
|
+
/* Desktop and bigger */
|
41
|
+
@media (min-width: @breakpoint-large) {
|
42
|
+
|
43
|
+
.uk-hidden\@l { display: none !important; }
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
/* Large screen and bigger */
|
48
|
+
@media (min-width: @breakpoint-xlarge) {
|
49
|
+
|
50
|
+
.uk-hidden\@xl { display: none !important; }
|
51
|
+
|
52
|
+
}
|
53
|
+
|
54
|
+
/*
|
55
|
+
* Visible
|
56
|
+
*/
|
57
|
+
|
58
|
+
/* Phone portrait and smaller */
|
59
|
+
@media (max-width: @breakpoint-xsmall-max) {
|
60
|
+
|
61
|
+
.uk-visible\@s { display: none !important; }
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
/* Phone landscape and smaller */
|
66
|
+
@media (max-width: @breakpoint-small-max) {
|
67
|
+
|
68
|
+
.uk-visible\@m { display: none !important; }
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
/* Tablet landscape and smaller */
|
73
|
+
@media (max-width: @breakpoint-medium-max) {
|
74
|
+
|
75
|
+
.uk-visible\@l { display: none !important; }
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
/* Desktop and smaller */
|
80
|
+
@media (max-width: @breakpoint-large-max) {
|
81
|
+
|
82
|
+
.uk-visible\@xl { display: none !important; }
|
83
|
+
|
84
|
+
}
|
85
|
+
|
86
|
+
|
87
|
+
/* Visibility
|
88
|
+
========================================================================== */
|
89
|
+
|
90
|
+
.uk-invisible { visibility: hidden !important; }
|
91
|
+
|
92
|
+
|
93
|
+
/* Hover
|
94
|
+
========================================================================== */
|
95
|
+
|
96
|
+
/* Hidden */
|
97
|
+
.uk-visible-toggle:not(:hover):not(.uk-hover) .uk-hidden-hover { display: none !important; }
|
98
|
+
|
99
|
+
/* Invisible */
|
100
|
+
.uk-visible-toggle:not(:hover):not(.uk-hover) .uk-invisible-hover { visibility: hidden !important; }
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
// Hooks
|
105
|
+
// ========================================================================
|
106
|
+
|
107
|
+
.hook-visibility-misc;
|
108
|
+
|
109
|
+
.hook-visibility-misc() {}
|
@@ -0,0 +1,418 @@
|
|
1
|
+
// Name: Width
|
2
|
+
// Description: Utilities for widths
|
3
|
+
//
|
4
|
+
// Component: `uk-child-width-*`
|
5
|
+
// `uk-width-*`
|
6
|
+
//
|
7
|
+
//
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
|
11
|
+
// Variables
|
12
|
+
// ========================================================================
|
13
|
+
|
14
|
+
@width-small-width: 150px;
|
15
|
+
@width-medium-width: 300px;
|
16
|
+
@width-large-width: 450px;
|
17
|
+
@width-xlarge-width: 600px;
|
18
|
+
@width-xxlarge-width: 750px;
|
19
|
+
|
20
|
+
|
21
|
+
/* ========================================================================
|
22
|
+
Component: Width
|
23
|
+
========================================================================== */
|
24
|
+
|
25
|
+
|
26
|
+
/* Equal child widths
|
27
|
+
========================================================================== */
|
28
|
+
|
29
|
+
[class*='uk-child-width'] > * {
|
30
|
+
box-sizing: border-box;
|
31
|
+
width: 100%;
|
32
|
+
}
|
33
|
+
|
34
|
+
.uk-child-width-1-2 > * { width: 50%; }
|
35
|
+
.uk-child-width-1-3 > * { width: ~'calc(100% * 1 / 3.001)'; }
|
36
|
+
.uk-child-width-1-4 > * { width: 25%; }
|
37
|
+
.uk-child-width-1-5 > * { width: 20%; }
|
38
|
+
.uk-child-width-1-6 > * { width: ~'calc(100% * 1 / 6.001)'; }
|
39
|
+
|
40
|
+
.uk-child-width-auto > * { width: auto; }
|
41
|
+
|
42
|
+
/*
|
43
|
+
* Instead of 0, 1px is needed to make cell wrap into next row if predecessor is 100% wide
|
44
|
+
* and the grid gutter is 0 pixels wide
|
45
|
+
*/
|
46
|
+
|
47
|
+
.uk-child-width-expand > * { width: 1px; }
|
48
|
+
|
49
|
+
/*
|
50
|
+
* 1. Make `width: 1px` work, because according to the spec flex items won’t shrink
|
51
|
+
* below their minimum content size. To change this, set the min-width.
|
52
|
+
* Only needed for Firefox. All other browsers ignore this.
|
53
|
+
*
|
54
|
+
* 2. `width` is ignored when wrapping flex items in Safari
|
55
|
+
* https://github.com/philipwalton/flexbugs#11-min-and-max-size-declarations-are-ignored-when-wrapping-flex-items
|
56
|
+
*/
|
57
|
+
|
58
|
+
.uk-child-width-expand > :not([class*='uk-width']) {
|
59
|
+
-ms-flex: 1;
|
60
|
+
-webkit-flex: 1;
|
61
|
+
flex: 1;
|
62
|
+
/* 1 */
|
63
|
+
min-width: 0;
|
64
|
+
/* 2 */
|
65
|
+
flex-basis: 1px;
|
66
|
+
}
|
67
|
+
|
68
|
+
/* Phone landscape and bigger */
|
69
|
+
@media (min-width: @breakpoint-small) {
|
70
|
+
|
71
|
+
.uk-child-width-1-1\@s > * { width: 100%; }
|
72
|
+
.uk-child-width-1-2\@s > * { width: 50%; }
|
73
|
+
.uk-child-width-1-3\@s > * { width: ~'calc(100% * 1 / 3.001)'; }
|
74
|
+
.uk-child-width-1-4\@s > * { width: 25%; }
|
75
|
+
.uk-child-width-1-5\@s > * { width: 20%; }
|
76
|
+
.uk-child-width-1-6\@s > * { width: ~'calc(100% * 1 / 6.001)'; }
|
77
|
+
|
78
|
+
.uk-child-width-auto\@s > * { width: auto; }
|
79
|
+
.uk-child-width-expand\@s > * { width: 1px; }
|
80
|
+
|
81
|
+
.uk-child-width-expand\@s > :not([class*='uk-width']) {
|
82
|
+
-ms-flex: 1;
|
83
|
+
-webkit-flex: 1;
|
84
|
+
flex: 1;
|
85
|
+
min-width: 0;
|
86
|
+
flex-basis: 1px;
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
/* Tablet landscape and bigger */
|
92
|
+
@media (min-width: @breakpoint-medium) {
|
93
|
+
|
94
|
+
.uk-child-width-1-1\@m > * { width: 100%; }
|
95
|
+
.uk-child-width-1-2\@m > * { width: 50%; }
|
96
|
+
.uk-child-width-1-3\@m > * { width: ~'calc(100% * 1 / 3.001)'; }
|
97
|
+
.uk-child-width-1-4\@m > * { width: 25%; }
|
98
|
+
.uk-child-width-1-5\@m > * { width: 20%; }
|
99
|
+
.uk-child-width-1-6\@m > * { width: ~'calc(100% * 1 / 6.001)'; }
|
100
|
+
|
101
|
+
.uk-child-width-auto\@m > * { width: auto; }
|
102
|
+
.uk-child-width-expand\@m > * { width: 1px; }
|
103
|
+
|
104
|
+
.uk-child-width-expand\@m > :not([class*='uk-width']) {
|
105
|
+
-ms-flex: 1;
|
106
|
+
-webkit-flex: 1;
|
107
|
+
flex: 1;
|
108
|
+
min-width: 0;
|
109
|
+
flex-basis: 1px;
|
110
|
+
}
|
111
|
+
|
112
|
+
}
|
113
|
+
|
114
|
+
/* Desktop and bigger */
|
115
|
+
@media (min-width: @breakpoint-large) {
|
116
|
+
|
117
|
+
.uk-child-width-1-1\@l > * { width: 100%; }
|
118
|
+
.uk-child-width-1-2\@l > * { width: 50%; }
|
119
|
+
.uk-child-width-1-3\@l > * { width: ~'calc(100% * 1 / 3.001)'; }
|
120
|
+
.uk-child-width-1-4\@l > * { width: 25%; }
|
121
|
+
.uk-child-width-1-5\@l > * { width: 20%; }
|
122
|
+
.uk-child-width-1-6\@l > * { width: ~'calc(100% * 1 / 6.001)'; }
|
123
|
+
|
124
|
+
.uk-child-width-auto\@l > * { width: auto; }
|
125
|
+
.uk-child-width-expand\@l > * { width: 1px; }
|
126
|
+
|
127
|
+
.uk-child-width-expand\@l > :not([class*='uk-width']) {
|
128
|
+
-ms-flex: 1;
|
129
|
+
-webkit-flex: 1;
|
130
|
+
flex: 1;
|
131
|
+
min-width: 0;
|
132
|
+
flex-basis: 1px;
|
133
|
+
}
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
/* Large screen and bigger */
|
138
|
+
@media (min-width: @breakpoint-xlarge) {
|
139
|
+
|
140
|
+
.uk-child-width-1-1\@xl > * { width: 100%; }
|
141
|
+
.uk-child-width-1-2\@xl > * { width: 50%; }
|
142
|
+
.uk-child-width-1-3\@xl > * { width: ~'calc(100% * 1 / 3.001)'; }
|
143
|
+
.uk-child-width-1-4\@xl > * { width: 25%; }
|
144
|
+
.uk-child-width-1-5\@xl > * { width: 20%; }
|
145
|
+
.uk-child-width-1-6\@xl > * { width: ~'calc(100% * 1 / 6.001)'; }
|
146
|
+
|
147
|
+
.uk-child-width-auto\@xl > * { width: auto; }
|
148
|
+
.uk-child-width-expand\@xl > * { width: 1px; }
|
149
|
+
|
150
|
+
.uk-child-width-expand\@xl > :not([class*='uk-width']) {
|
151
|
+
-ms-flex: 1;
|
152
|
+
-webkit-flex: 1;
|
153
|
+
flex: 1;
|
154
|
+
min-width: 0;
|
155
|
+
flex-basis: 1px;
|
156
|
+
}
|
157
|
+
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
/* Single Widths
|
162
|
+
========================================================================== */
|
163
|
+
|
164
|
+
/*
|
165
|
+
* 1. `max-width` is needed for the pixel-based classes
|
166
|
+
*/
|
167
|
+
|
168
|
+
[class*='uk-width'] {
|
169
|
+
box-sizing: border-box;
|
170
|
+
width: 100%;
|
171
|
+
/* 1 */
|
172
|
+
max-width: 100%;
|
173
|
+
}
|
174
|
+
|
175
|
+
/* Halves */
|
176
|
+
.uk-width-1-2 { width: 50%; }
|
177
|
+
|
178
|
+
/* Thirds */
|
179
|
+
.uk-width-1-3 { width: ~'calc(100% * 1 / 3.001)'; }
|
180
|
+
.uk-width-2-3 { width: ~'calc(100% * 2 / 3.001)'; }
|
181
|
+
|
182
|
+
/* Quarters */
|
183
|
+
.uk-width-1-4 { width: 25%; }
|
184
|
+
.uk-width-3-4 { width: 75%; }
|
185
|
+
|
186
|
+
/* Fifths */
|
187
|
+
.uk-width-1-5 { width: 20%; }
|
188
|
+
.uk-width-2-5 { width: 40%; }
|
189
|
+
.uk-width-3-5 { width: 60%; }
|
190
|
+
.uk-width-4-5 { width: 80%; }
|
191
|
+
|
192
|
+
/* Sixths */
|
193
|
+
.uk-width-1-6 { width: ~'calc(100% * 1 / 6.001)'; }
|
194
|
+
.uk-width-5-6 { width: ~'calc(100% * 5 / 6.001)'; }
|
195
|
+
|
196
|
+
/* Pixel */
|
197
|
+
.uk-width-small { width: @width-small-width; }
|
198
|
+
.uk-width-medium { width: @width-medium-width; }
|
199
|
+
.uk-width-large { width: @width-large-width; }
|
200
|
+
.uk-width-xlarge { width: @width-xlarge-width; }
|
201
|
+
.uk-width-xxlarge { width: @width-xxlarge-width; }
|
202
|
+
|
203
|
+
/* Auto */
|
204
|
+
.uk-width-auto { width: auto; }
|
205
|
+
|
206
|
+
/* Expand */
|
207
|
+
.uk-width-expand {
|
208
|
+
width: 1px;
|
209
|
+
-ms-flex: 1;
|
210
|
+
-webkit-flex: 1;
|
211
|
+
flex: 1;
|
212
|
+
min-width: 0;
|
213
|
+
flex-basis: 1px;
|
214
|
+
}
|
215
|
+
|
216
|
+
/* Phone landscape and bigger */
|
217
|
+
@media (min-width: @breakpoint-small) {
|
218
|
+
|
219
|
+
/* Whole */
|
220
|
+
.uk-width-1-1\@s { width: 100%; }
|
221
|
+
|
222
|
+
/* Halves */
|
223
|
+
.uk-width-1-2\@s { width: 50%; }
|
224
|
+
|
225
|
+
/* Thirds */
|
226
|
+
.uk-width-1-3\@s { width: ~'calc(100% * 1 / 3.001)'; }
|
227
|
+
.uk-width-2-3\@s { width: ~'calc(100% * 2 / 3.001)'; }
|
228
|
+
|
229
|
+
/* Quarters */
|
230
|
+
.uk-width-1-4\@s { width: 25%; }
|
231
|
+
.uk-width-3-4\@s { width: 75%; }
|
232
|
+
|
233
|
+
/* Fifths */
|
234
|
+
.uk-width-1-5\@s { width: 20%; }
|
235
|
+
.uk-width-2-5\@s { width: 40%; }
|
236
|
+
.uk-width-3-5\@s { width: 60%; }
|
237
|
+
.uk-width-4-5\@s { width: 80%; }
|
238
|
+
|
239
|
+
/* Sixths */
|
240
|
+
.uk-width-1-6\@s { width: ~'calc(100% * 1 / 6.001)'; }
|
241
|
+
.uk-width-5-6\@s { width: ~'calc(100% * 5 / 6.001)'; }
|
242
|
+
|
243
|
+
/* Pixel */
|
244
|
+
.uk-width-small\@s { width: @width-small-width; }
|
245
|
+
.uk-width-medium\@s { width: @width-medium-width; }
|
246
|
+
.uk-width-large\@s { width: @width-large-width; }
|
247
|
+
.uk-width-xlarge\@s { width: @width-xlarge-width; }
|
248
|
+
.uk-width-xxlarge\@s { width: @width-xxlarge-width; }
|
249
|
+
|
250
|
+
/* Auto */
|
251
|
+
.uk-width-auto\@s { width: auto; }
|
252
|
+
|
253
|
+
/* Expand */
|
254
|
+
.uk-width-expand\@s {
|
255
|
+
width: 1px;
|
256
|
+
-ms-flex: 1;
|
257
|
+
-webkit-flex: 1;
|
258
|
+
flex: 1;
|
259
|
+
min-width: 0;
|
260
|
+
flex-basis: 1px;
|
261
|
+
}
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
/* Tablet landscape and bigger */
|
266
|
+
@media (min-width: @breakpoint-medium) {
|
267
|
+
|
268
|
+
/* Whole */
|
269
|
+
.uk-width-1-1\@m { width: 100%; }
|
270
|
+
|
271
|
+
/* Halves */
|
272
|
+
.uk-width-1-2\@m { width: 50%; }
|
273
|
+
|
274
|
+
/* Thirds */
|
275
|
+
.uk-width-1-3\@m { width: ~'calc(100% * 1 / 3.001)'; }
|
276
|
+
.uk-width-2-3\@m { width: ~'calc(100% * 2 / 3.001)'; }
|
277
|
+
|
278
|
+
/* Quarters */
|
279
|
+
.uk-width-1-4\@m { width: 25%; }
|
280
|
+
.uk-width-3-4\@m { width: 75%; }
|
281
|
+
|
282
|
+
/* Fifths */
|
283
|
+
.uk-width-1-5\@m { width: 20%; }
|
284
|
+
.uk-width-2-5\@m { width: 40%; }
|
285
|
+
.uk-width-3-5\@m { width: 60%; }
|
286
|
+
.uk-width-4-5\@m { width: 80%; }
|
287
|
+
|
288
|
+
/* Sixths */
|
289
|
+
.uk-width-1-6\@m { width: ~'calc(100% * 1 / 6.001)'; }
|
290
|
+
.uk-width-5-6\@m { width: ~'calc(100% * 5 / 6.001)'; }
|
291
|
+
|
292
|
+
/* Pixel */
|
293
|
+
.uk-width-small\@m { width: @width-small-width; }
|
294
|
+
.uk-width-medium\@m { width: @width-medium-width; }
|
295
|
+
.uk-width-large\@m { width: @width-large-width; }
|
296
|
+
.uk-width-xlarge\@m { width: @width-xlarge-width; }
|
297
|
+
.uk-width-xxlarge\@m { width: @width-xxlarge-width; }
|
298
|
+
|
299
|
+
/* Auto */
|
300
|
+
.uk-width-auto\@m { width: auto; }
|
301
|
+
|
302
|
+
/* Expand */
|
303
|
+
.uk-width-expand\@m {
|
304
|
+
width: 1px;
|
305
|
+
-ms-flex: 1;
|
306
|
+
-webkit-flex: 1;
|
307
|
+
flex: 1;
|
308
|
+
min-width: 0;
|
309
|
+
flex-basis: 1px;
|
310
|
+
}
|
311
|
+
|
312
|
+
}
|
313
|
+
|
314
|
+
/* Desktop and bigger */
|
315
|
+
@media (min-width: @breakpoint-large) {
|
316
|
+
|
317
|
+
/* Whole */
|
318
|
+
.uk-width-1-1\@l { width: 100%; }
|
319
|
+
|
320
|
+
/* Halves */
|
321
|
+
.uk-width-1-2\@l { width: 50%; }
|
322
|
+
|
323
|
+
/* Thirds */
|
324
|
+
.uk-width-1-3\@l { width: ~'calc(100% * 1 / 3.001)'; }
|
325
|
+
.uk-width-2-3\@l { width: ~'calc(100% * 2 / 3.001)'; }
|
326
|
+
|
327
|
+
/* Quarters */
|
328
|
+
.uk-width-1-4\@l { width: 25%; }
|
329
|
+
.uk-width-3-4\@l { width: 75%; }
|
330
|
+
|
331
|
+
/* Fifths */
|
332
|
+
.uk-width-1-5\@l { width: 20%; }
|
333
|
+
.uk-width-2-5\@l { width: 40%; }
|
334
|
+
.uk-width-3-5\@l { width: 60%; }
|
335
|
+
.uk-width-4-5\@l { width: 80%; }
|
336
|
+
|
337
|
+
/* Sixths */
|
338
|
+
.uk-width-1-6\@l { width: ~'calc(100% * 1 / 6.001)'; }
|
339
|
+
.uk-width-5-6\@l { width: ~'calc(100% * 5 / 6.001)'; }
|
340
|
+
|
341
|
+
/* Pixel */
|
342
|
+
.uk-width-small\@l { width: @width-small-width; }
|
343
|
+
.uk-width-medium\@l { width: @width-medium-width; }
|
344
|
+
.uk-width-large\@l { width: @width-large-width; }
|
345
|
+
.uk-width-xlarge\@l { width: @width-xlarge-width; }
|
346
|
+
.uk-width-xxlarge\@l { width: @width-xxlarge-width; }
|
347
|
+
|
348
|
+
/* Auto */
|
349
|
+
.uk-width-auto\@l { width: auto; }
|
350
|
+
|
351
|
+
/* Expand */
|
352
|
+
.uk-width-expand\@l {
|
353
|
+
width: 1px;
|
354
|
+
-ms-flex: 1;
|
355
|
+
-webkit-flex: 1;
|
356
|
+
flex: 1;
|
357
|
+
min-width: 0;
|
358
|
+
flex-basis: 1px;
|
359
|
+
}
|
360
|
+
|
361
|
+
}
|
362
|
+
|
363
|
+
/* Large screen and bigger */
|
364
|
+
@media (min-width: @breakpoint-xlarge) {
|
365
|
+
|
366
|
+
/* Whole */
|
367
|
+
.uk-width-1-1\@xl { width: 100%; }
|
368
|
+
|
369
|
+
/* Halves */
|
370
|
+
.uk-width-1-2\@xl { width: 50%; }
|
371
|
+
|
372
|
+
/* Thirds */
|
373
|
+
.uk-width-1-3\@xl { width: ~'calc(100% * 1 / 3.001)'; }
|
374
|
+
.uk-width-2-3\@xl { width: ~'calc(100% * 2 / 3.001)'; }
|
375
|
+
|
376
|
+
/* Quarters */
|
377
|
+
.uk-width-1-4\@xl { width: 25%; }
|
378
|
+
.uk-width-3-4\@xl { width: 75%; }
|
379
|
+
|
380
|
+
/* Fifths */
|
381
|
+
.uk-width-1-5\@xl { width: 20%; }
|
382
|
+
.uk-width-2-5\@xl { width: 40%; }
|
383
|
+
.uk-width-3-5\@xl { width: 60%; }
|
384
|
+
.uk-width-4-5\@xl { width: 80%; }
|
385
|
+
|
386
|
+
/* Sixths */
|
387
|
+
.uk-width-1-6\@xl { width: ~'calc(100% * 1 / 6.001)'; }
|
388
|
+
.uk-width-5-6\@xl { width: ~'calc(100% * 5 / 6.001)'; }
|
389
|
+
|
390
|
+
/* Pixel */
|
391
|
+
.uk-width-small\@xl { width: @width-small-width; }
|
392
|
+
.uk-width-medium\@xl { width: @width-medium-width; }
|
393
|
+
.uk-width-large\@xl { width: @width-large-width; }
|
394
|
+
.uk-width-xlarge\@xl { width: @width-xlarge-width; }
|
395
|
+
.uk-width-xxlarge\@xl { width: @width-xxlarge-width; }
|
396
|
+
|
397
|
+
/* Auto */
|
398
|
+
.uk-width-auto\@xl { width: auto; }
|
399
|
+
|
400
|
+
/* Expand */
|
401
|
+
.uk-width-expand\@xl {
|
402
|
+
width: 1px;
|
403
|
+
-ms-flex: 1;
|
404
|
+
-webkit-flex: 1;
|
405
|
+
flex: 1;
|
406
|
+
min-width: 0;
|
407
|
+
flex-basis: 1px;
|
408
|
+
}
|
409
|
+
|
410
|
+
}
|
411
|
+
|
412
|
+
|
413
|
+
// Hooks
|
414
|
+
// ========================================================================
|
415
|
+
|
416
|
+
.hook-width-misc;
|
417
|
+
|
418
|
+
.hook-width-misc() {}
|