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,230 @@
|
|
1
|
+
// Name: Section
|
2
|
+
// Description: Component to create horizontal layout section
|
3
|
+
//
|
4
|
+
// Component: `uk-section`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-section-large`
|
7
|
+
// `uk-section-default`
|
8
|
+
// `uk-section-muted`
|
9
|
+
// `uk-section-primary`
|
10
|
+
// `uk-section-secondary`
|
11
|
+
// `uk-section-media`
|
12
|
+
// `uk-section-overlap`
|
13
|
+
// `uk-preserve-color`
|
14
|
+
//
|
15
|
+
// ========================================================================
|
16
|
+
|
17
|
+
|
18
|
+
// Variables
|
19
|
+
// ========================================================================
|
20
|
+
|
21
|
+
@section-padding-vertical: @global-medium-margin;
|
22
|
+
@section-padding-vertical-m: @global-large-margin;
|
23
|
+
|
24
|
+
@section-xsmall-padding-vertical: @global-margin;
|
25
|
+
|
26
|
+
@section-small-padding-vertical: @global-medium-margin;
|
27
|
+
|
28
|
+
@section-large-padding-vertical: @global-large-margin;
|
29
|
+
@section-large-padding-vertical-m: @global-xlarge-margin;
|
30
|
+
|
31
|
+
@section-xlarge-padding-vertical: @global-xlarge-margin;
|
32
|
+
@section-xlarge-padding-vertical-m: (@global-large-margin + @global-xlarge-margin);
|
33
|
+
|
34
|
+
@section-default-background: @global-background;
|
35
|
+
|
36
|
+
@section-muted-background: @global-muted-background;
|
37
|
+
|
38
|
+
@section-primary-background: @global-primary-background;
|
39
|
+
@section-primary-color-mode: light;
|
40
|
+
|
41
|
+
@section-secondary-background: @global-secondary-background;
|
42
|
+
@section-secondary-color-mode: light;
|
43
|
+
|
44
|
+
|
45
|
+
/* ========================================================================
|
46
|
+
Component: Section
|
47
|
+
========================================================================== */
|
48
|
+
|
49
|
+
/*
|
50
|
+
* 1. Make it work with `100vh` and height in general
|
51
|
+
*/
|
52
|
+
|
53
|
+
.uk-section {
|
54
|
+
box-sizing: border-box; /* 1 */
|
55
|
+
padding-top: @section-padding-vertical;
|
56
|
+
padding-bottom: @section-padding-vertical;
|
57
|
+
.hook-section;
|
58
|
+
}
|
59
|
+
|
60
|
+
/* Desktop and bigger */
|
61
|
+
@media (min-width: @breakpoint-medium) {
|
62
|
+
|
63
|
+
.uk-section {
|
64
|
+
padding-top: @section-padding-vertical-m;
|
65
|
+
padding-bottom: @section-padding-vertical-m;
|
66
|
+
}
|
67
|
+
|
68
|
+
}
|
69
|
+
|
70
|
+
/*
|
71
|
+
* Micro clearfix
|
72
|
+
*/
|
73
|
+
|
74
|
+
.uk-section::before,
|
75
|
+
.uk-section::after {
|
76
|
+
content: "";
|
77
|
+
display: table;
|
78
|
+
}
|
79
|
+
|
80
|
+
.uk-section::after { clear: both; }
|
81
|
+
|
82
|
+
/*
|
83
|
+
* Remove margin from the last-child
|
84
|
+
*/
|
85
|
+
|
86
|
+
.uk-section > :last-child { margin-bottom: 0; }
|
87
|
+
|
88
|
+
|
89
|
+
/* Size modifiers
|
90
|
+
========================================================================== */
|
91
|
+
|
92
|
+
/*
|
93
|
+
* XSmall
|
94
|
+
*/
|
95
|
+
|
96
|
+
.uk-section-xsmall {
|
97
|
+
padding-top: @section-xsmall-padding-vertical;
|
98
|
+
padding-bottom: @section-xsmall-padding-vertical;
|
99
|
+
}
|
100
|
+
|
101
|
+
/*
|
102
|
+
* Small
|
103
|
+
*/
|
104
|
+
|
105
|
+
.uk-section-small {
|
106
|
+
padding-top: @section-small-padding-vertical;
|
107
|
+
padding-bottom: @section-small-padding-vertical;
|
108
|
+
}
|
109
|
+
|
110
|
+
/*
|
111
|
+
* Large
|
112
|
+
*/
|
113
|
+
|
114
|
+
.uk-section-large {
|
115
|
+
padding-top: @section-large-padding-vertical;
|
116
|
+
padding-bottom: @section-large-padding-vertical;
|
117
|
+
}
|
118
|
+
|
119
|
+
/* Tablet landscape and bigger */
|
120
|
+
@media (min-width: @breakpoint-medium) {
|
121
|
+
|
122
|
+
.uk-section-large {
|
123
|
+
padding-top: @section-large-padding-vertical-m;
|
124
|
+
padding-bottom: @section-large-padding-vertical-m;
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
/*
|
131
|
+
* XLarge
|
132
|
+
*/
|
133
|
+
|
134
|
+
.uk-section-xlarge {
|
135
|
+
padding-top: @section-xlarge-padding-vertical;
|
136
|
+
padding-bottom: @section-xlarge-padding-vertical;
|
137
|
+
}
|
138
|
+
|
139
|
+
/* Tablet landscape and bigger */
|
140
|
+
@media (min-width: @breakpoint-medium) {
|
141
|
+
|
142
|
+
.uk-section-xlarge {
|
143
|
+
padding-top: @section-xlarge-padding-vertical-m;
|
144
|
+
padding-bottom: @section-xlarge-padding-vertical-m;
|
145
|
+
}
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
/* Style modifiers
|
151
|
+
========================================================================== */
|
152
|
+
|
153
|
+
/*
|
154
|
+
* Default
|
155
|
+
*/
|
156
|
+
|
157
|
+
.uk-section-default {
|
158
|
+
background: @section-default-background;
|
159
|
+
.hook-section-default;
|
160
|
+
}
|
161
|
+
|
162
|
+
/*
|
163
|
+
* Muted
|
164
|
+
*/
|
165
|
+
|
166
|
+
.uk-section-muted {
|
167
|
+
background: @section-muted-background;
|
168
|
+
.hook-section-muted;
|
169
|
+
}
|
170
|
+
|
171
|
+
/*
|
172
|
+
* Primary
|
173
|
+
*/
|
174
|
+
|
175
|
+
.uk-section-primary {
|
176
|
+
background: @section-primary-background;
|
177
|
+
.hook-section-primary;
|
178
|
+
}
|
179
|
+
|
180
|
+
.uk-section-primary:not(.uk-preserve-color):extend(.uk-light all) when (@section-primary-color-mode = light) {}
|
181
|
+
.uk-section-primary:not(.uk-preserve-color):extend(.uk-dark all) when (@section-primary-color-mode = dark) {}
|
182
|
+
|
183
|
+
|
184
|
+
/*
|
185
|
+
* Secondary
|
186
|
+
*/
|
187
|
+
|
188
|
+
.uk-section-secondary {
|
189
|
+
background: @section-secondary-background;
|
190
|
+
.hook-section-secondary;
|
191
|
+
}
|
192
|
+
|
193
|
+
.uk-section-secondary:not(.uk-preserve-color):extend(.uk-light all) when (@section-secondary-color-mode = light) {}
|
194
|
+
.uk-section-secondary:not(.uk-preserve-color):extend(.uk-dark all) when (@section-secondary-color-mode = dark) {}
|
195
|
+
|
196
|
+
|
197
|
+
/*
|
198
|
+
* Indicate that an image or video is used as background
|
199
|
+
*/
|
200
|
+
|
201
|
+
.uk-section-media {
|
202
|
+
.hook-section-media;
|
203
|
+
}
|
204
|
+
|
205
|
+
/* Overlap modifier
|
206
|
+
========================================================================== */
|
207
|
+
|
208
|
+
/*
|
209
|
+
* Reserved modifier to make a section overlap another section with an border image
|
210
|
+
* Implemented by the theme
|
211
|
+
*/
|
212
|
+
|
213
|
+
.uk-section-overlap {
|
214
|
+
.hook-section-overlap;
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
// Hooks
|
219
|
+
// ========================================================================
|
220
|
+
|
221
|
+
.hook-section-misc;
|
222
|
+
|
223
|
+
.hook-section() {}
|
224
|
+
.hook-section-default() {}
|
225
|
+
.hook-section-muted() {}
|
226
|
+
.hook-section-secondary() {}
|
227
|
+
.hook-section-primary() {}
|
228
|
+
.hook-section-media() {}
|
229
|
+
.hook-section-overlap() {}
|
230
|
+
.hook-section-misc() {}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
// Name: Slidenav
|
2
|
+
// Description: Component to create previous/next icon navigations
|
3
|
+
//
|
4
|
+
// Component: `uk-slidenav`
|
5
|
+
//
|
6
|
+
// Sub-objects: `uk-slidenav-container`
|
7
|
+
//
|
8
|
+
// Modifiers: `uk-slidenav-previous`
|
9
|
+
// `uk-slidenav-next`
|
10
|
+
//
|
11
|
+
// ========================================================================
|
12
|
+
|
13
|
+
|
14
|
+
// Variables
|
15
|
+
// ========================================================================
|
16
|
+
|
17
|
+
@slidenav-padding: 5px;
|
18
|
+
@slidenav-color: fadeout(@global-color, 40%);
|
19
|
+
|
20
|
+
@slidenav-hover-color: fadeout(@global-color, 20%);
|
21
|
+
|
22
|
+
@slidenav-active-color: fadeout(@global-color, 10%);
|
23
|
+
|
24
|
+
@internal-slidenav-previous-image: "../../images/components/slidenav-previous.svg";
|
25
|
+
@internal-slidenav-next-image: "../../images/components/slidenav-next.svg";
|
26
|
+
@internal-slidenav-large-previous-image: "../../images/components/slidenav-large-previous.svg";
|
27
|
+
@internal-slidenav-large-next-image: "../../images/components/slidenav-large-next.svg";
|
28
|
+
|
29
|
+
|
30
|
+
/* ========================================================================
|
31
|
+
Component: Slidenav
|
32
|
+
========================================================================== */
|
33
|
+
|
34
|
+
/*
|
35
|
+
* Adopts `uk-icon`
|
36
|
+
*/
|
37
|
+
|
38
|
+
.uk-slidenav {
|
39
|
+
padding: @slidenav-padding;
|
40
|
+
color: @slidenav-color;
|
41
|
+
.hook-slidenav;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Hover + Focus */
|
45
|
+
.uk-slidenav:hover,
|
46
|
+
.uk-slidenav:focus {
|
47
|
+
color: @slidenav-hover-color;
|
48
|
+
outline: none;
|
49
|
+
.hook-slidenav-hover;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* OnClick */
|
53
|
+
.uk-slidenav:active {
|
54
|
+
color: @slidenav-active-color;
|
55
|
+
.hook-slidenav-active;
|
56
|
+
}
|
57
|
+
|
58
|
+
|
59
|
+
/* Icon modifier
|
60
|
+
========================================================================== */
|
61
|
+
|
62
|
+
/*
|
63
|
+
* Previous
|
64
|
+
*/
|
65
|
+
|
66
|
+
.uk-slidenav-previous::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-slidenav-previous-image); }
|
67
|
+
|
68
|
+
.uk-slidenav-previous {
|
69
|
+
.hook-slidenav-previous;
|
70
|
+
}
|
71
|
+
|
72
|
+
/*
|
73
|
+
* Next
|
74
|
+
*/
|
75
|
+
|
76
|
+
.uk-slidenav-next::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-slidenav-next-image); }
|
77
|
+
|
78
|
+
.uk-slidenav-next {
|
79
|
+
.hook-slidenav-next;
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
/* Size modifier
|
84
|
+
========================================================================== */
|
85
|
+
|
86
|
+
.uk-slidenav-large.uk-slidenav-previous::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-slidenav-large-previous-image); }
|
87
|
+
|
88
|
+
.uk-slidenav-large.uk-slidenav-next::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-slidenav-large-next-image); }
|
89
|
+
|
90
|
+
|
91
|
+
/* Container
|
92
|
+
========================================================================== */
|
93
|
+
|
94
|
+
.uk-slidenav-container {
|
95
|
+
display: -ms-flexbox;
|
96
|
+
display: -webkit-flex;
|
97
|
+
display: flex;
|
98
|
+
.hook-slidenav-container;
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
// Hooks
|
103
|
+
// ========================================================================
|
104
|
+
|
105
|
+
.hook-slidenav-misc;
|
106
|
+
|
107
|
+
.hook-slidenav() {}
|
108
|
+
.hook-slidenav-hover() {}
|
109
|
+
.hook-slidenav-active() {}
|
110
|
+
.hook-slidenav-previous() {}
|
111
|
+
.hook-slidenav-next() {}
|
112
|
+
.hook-slidenav-container() {}
|
113
|
+
.hook-slidenav-misc() {}
|
114
|
+
|
115
|
+
|
116
|
+
// Inverse
|
117
|
+
// ========================================================================
|
118
|
+
|
119
|
+
@inverse-slidenav-color: fadeout(@inverse-global-color, 40%);
|
120
|
+
@inverse-slidenav-hover-color: fadeout(@inverse-global-color, 20%);
|
121
|
+
@inverse-slidenav-active-color: fadeout(@inverse-global-color, 10%);
|
122
|
+
|
123
|
+
.hook-inverse() {
|
124
|
+
|
125
|
+
.uk-slidenav {
|
126
|
+
color: @inverse-slidenav-color;
|
127
|
+
.hook-inverse-slidenav;
|
128
|
+
}
|
129
|
+
|
130
|
+
.uk-slidenav:hover,
|
131
|
+
.uk-slidenav:focus {
|
132
|
+
color: @inverse-slidenav-hover-color;
|
133
|
+
.hook-inverse-slidenav-hover;
|
134
|
+
}
|
135
|
+
|
136
|
+
.uk-slidenav:active {
|
137
|
+
color: @inverse-slidenav-active-color;
|
138
|
+
.hook-inverse-slidenav-active;
|
139
|
+
}
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
.hook-inverse-slidenav() {}
|
144
|
+
.hook-inverse-slidenav-hover() {}
|
145
|
+
.hook-inverse-slidenav-active() {}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
// Name: Sortable
|
2
|
+
// Description: Component to create sortable grids and lists
|
3
|
+
//
|
4
|
+
// Component: `uk-sortable`
|
5
|
+
//
|
6
|
+
// Sub-objects: `uk-sortable-drag`
|
7
|
+
// `uk-sortable-placeholder`
|
8
|
+
// `uk-sortable-handle`
|
9
|
+
//
|
10
|
+
// Modifiers: `uk-sortable-empty`
|
11
|
+
//
|
12
|
+
// States: `uk-drag`
|
13
|
+
//
|
14
|
+
// ========================================================================
|
15
|
+
|
16
|
+
|
17
|
+
// Variables
|
18
|
+
// ========================================================================
|
19
|
+
|
20
|
+
@sortable-dragged-z-index: @global-z-index + 50;
|
21
|
+
|
22
|
+
@sortable-placeholder-opacity: 0;
|
23
|
+
|
24
|
+
@sortable-empty-height: 50px;
|
25
|
+
|
26
|
+
|
27
|
+
/* ========================================================================
|
28
|
+
Component: Sortable
|
29
|
+
========================================================================== */
|
30
|
+
|
31
|
+
.uk-sortable {
|
32
|
+
position: relative;
|
33
|
+
.hook-sortable;
|
34
|
+
}
|
35
|
+
|
36
|
+
/*
|
37
|
+
* Deactivate browser touch actions in IE11
|
38
|
+
*/
|
39
|
+
|
40
|
+
.uk-sortable > * { touch-action: none; }
|
41
|
+
|
42
|
+
/*
|
43
|
+
* Deactivate pointer-events on SVGs in Safari
|
44
|
+
*/
|
45
|
+
|
46
|
+
.uk-sortable svg { pointer-events: none; }
|
47
|
+
|
48
|
+
/*
|
49
|
+
* Remove margin from the last-child
|
50
|
+
*/
|
51
|
+
|
52
|
+
.uk-sortable > :last-child { margin-bottom: 0; }
|
53
|
+
|
54
|
+
|
55
|
+
/* Drag
|
56
|
+
========================================================================== */
|
57
|
+
|
58
|
+
.uk-sortable-drag {
|
59
|
+
position: absolute !important;
|
60
|
+
z-index: @sortable-dragged-z-index !important;
|
61
|
+
pointer-events: none;
|
62
|
+
.hook-sortable-drag;
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
/* Placeholder
|
67
|
+
========================================================================== */
|
68
|
+
|
69
|
+
.uk-sortable-placeholder {
|
70
|
+
opacity: @sortable-placeholder-opacity;
|
71
|
+
.hook-sortable-placeholder;
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
/* Empty modifier
|
76
|
+
========================================================================== */
|
77
|
+
|
78
|
+
.uk-sortable-empty {
|
79
|
+
min-height: @sortable-empty-height;
|
80
|
+
.hook-sortable-empty;
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
/* Handle
|
85
|
+
========================================================================== */
|
86
|
+
|
87
|
+
/* Hover */
|
88
|
+
.uk-sortable-handle:hover { cursor: move; }
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
// Hooks
|
93
|
+
// ========================================================================
|
94
|
+
|
95
|
+
.hook-sortable-misc;
|
96
|
+
|
97
|
+
.hook-sortable() {}
|
98
|
+
.hook-sortable-drag() {}
|
99
|
+
.hook-sortable-placeholder() {}
|
100
|
+
.hook-sortable-empty() {}
|
101
|
+
.hook-sortable-misc() {}
|