rails-uikit-sass 2.27.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +43 -0
- data/lib/assets/stylesheets/rails-uikit-sass.scss +3 -0
- data/lib/rails-uikit-sass.rb +12 -0
- data/vendor/assets/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/javascripts/components/accordion.js +180 -0
- data/vendor/assets/javascripts/components/accordion.min.js +2 -0
- data/vendor/assets/javascripts/components/autocomplete.js +340 -0
- data/vendor/assets/javascripts/components/autocomplete.min.js +2 -0
- data/vendor/assets/javascripts/components/datepicker.js +3167 -0
- data/vendor/assets/javascripts/components/datepicker.min.js +3 -0
- data/vendor/assets/javascripts/components/form-password.js +67 -0
- data/vendor/assets/javascripts/components/form-password.min.js +2 -0
- data/vendor/assets/javascripts/components/form-select.js +85 -0
- data/vendor/assets/javascripts/components/form-select.min.js +2 -0
- data/vendor/assets/javascripts/components/grid-parallax.js +168 -0
- data/vendor/assets/javascripts/components/grid-parallax.min.js +2 -0
- data/vendor/assets/javascripts/components/grid.js +540 -0
- data/vendor/assets/javascripts/components/grid.min.js +2 -0
- data/vendor/assets/javascripts/components/htmleditor.js +679 -0
- data/vendor/assets/javascripts/components/htmleditor.min.js +2 -0
- data/vendor/assets/javascripts/components/lightbox.js +588 -0
- data/vendor/assets/javascripts/components/lightbox.min.js +2 -0
- data/vendor/assets/javascripts/components/nestable.js +653 -0
- data/vendor/assets/javascripts/components/nestable.min.js +2 -0
- data/vendor/assets/javascripts/components/notify.js +189 -0
- data/vendor/assets/javascripts/components/notify.min.js +2 -0
- data/vendor/assets/javascripts/components/pagination.js +147 -0
- data/vendor/assets/javascripts/components/pagination.min.js +2 -0
- data/vendor/assets/javascripts/components/parallax.js +462 -0
- data/vendor/assets/javascripts/components/parallax.min.js +2 -0
- data/vendor/assets/javascripts/components/search.js +92 -0
- data/vendor/assets/javascripts/components/search.min.js +2 -0
- data/vendor/assets/javascripts/components/slider.js +552 -0
- data/vendor/assets/javascripts/components/slider.min.js +2 -0
- data/vendor/assets/javascripts/components/slideset.js +523 -0
- data/vendor/assets/javascripts/components/slideset.min.js +2 -0
- data/vendor/assets/javascripts/components/slideshow-fx.js +382 -0
- data/vendor/assets/javascripts/components/slideshow-fx.min.js +2 -0
- data/vendor/assets/javascripts/components/slideshow.js +596 -0
- data/vendor/assets/javascripts/components/slideshow.min.js +2 -0
- data/vendor/assets/javascripts/components/sortable.js +688 -0
- data/vendor/assets/javascripts/components/sortable.min.js +2 -0
- data/vendor/assets/javascripts/components/sticky.js +364 -0
- data/vendor/assets/javascripts/components/sticky.min.js +2 -0
- data/vendor/assets/javascripts/components/timepicker.js +192 -0
- data/vendor/assets/javascripts/components/timepicker.min.js +2 -0
- data/vendor/assets/javascripts/components/tooltip.js +235 -0
- data/vendor/assets/javascripts/components/tooltip.min.js +2 -0
- data/vendor/assets/javascripts/components/upload.js +262 -0
- data/vendor/assets/javascripts/components/upload.min.js +2 -0
- data/vendor/assets/javascripts/core/alert.js +66 -0
- data/vendor/assets/javascripts/core/alert.min.js +2 -0
- data/vendor/assets/javascripts/core/button.js +156 -0
- data/vendor/assets/javascripts/core/button.min.js +2 -0
- data/vendor/assets/javascripts/core/core.js +820 -0
- data/vendor/assets/javascripts/core/core.min.js +2 -0
- data/vendor/assets/javascripts/core/cover.js +87 -0
- data/vendor/assets/javascripts/core/cover.min.js +2 -0
- data/vendor/assets/javascripts/core/dropdown.js +534 -0
- data/vendor/assets/javascripts/core/dropdown.min.js +2 -0
- data/vendor/assets/javascripts/core/grid.js +117 -0
- data/vendor/assets/javascripts/core/grid.min.js +2 -0
- data/vendor/assets/javascripts/core/modal.js +387 -0
- data/vendor/assets/javascripts/core/modal.min.js +2 -0
- data/vendor/assets/javascripts/core/nav.js +153 -0
- data/vendor/assets/javascripts/core/nav.min.js +2 -0
- data/vendor/assets/javascripts/core/offcanvas.js +197 -0
- data/vendor/assets/javascripts/core/offcanvas.min.js +2 -0
- data/vendor/assets/javascripts/core/scrollspy.js +209 -0
- data/vendor/assets/javascripts/core/scrollspy.min.js +2 -0
- data/vendor/assets/javascripts/core/smooth-scroll.js +62 -0
- data/vendor/assets/javascripts/core/smooth-scroll.min.js +2 -0
- data/vendor/assets/javascripts/core/switcher.js +307 -0
- data/vendor/assets/javascripts/core/switcher.min.js +2 -0
- data/vendor/assets/javascripts/core/tab.js +169 -0
- data/vendor/assets/javascripts/core/tab.min.js +2 -0
- data/vendor/assets/javascripts/core/toggle.js +124 -0
- data/vendor/assets/javascripts/core/toggle.min.js +2 -0
- data/vendor/assets/javascripts/core/touch.js +175 -0
- data/vendor/assets/javascripts/core/touch.min.js +2 -0
- data/vendor/assets/javascripts/core/utility.js +335 -0
- data/vendor/assets/javascripts/core/utility.min.js +2 -0
- data/vendor/assets/javascripts/uikit.js +3898 -0
- data/vendor/assets/javascripts/uikit.min.js +3 -0
- data/vendor/assets/stylesheets/components/accordion.scss +94 -0
- data/vendor/assets/stylesheets/components/autocomplete.scss +107 -0
- data/vendor/assets/stylesheets/components/datepicker.scss +197 -0
- data/vendor/assets/stylesheets/components/dotnav.scss +212 -0
- data/vendor/assets/stylesheets/components/form-advanced.scss +128 -0
- data/vendor/assets/stylesheets/components/form-file.scss +63 -0
- data/vendor/assets/stylesheets/components/form-password.scss +74 -0
- data/vendor/assets/stylesheets/components/form-select.scss +66 -0
- data/vendor/assets/stylesheets/components/htmleditor.scss +269 -0
- data/vendor/assets/stylesheets/components/nestable.scss +231 -0
- data/vendor/assets/stylesheets/components/notify.scss +190 -0
- data/vendor/assets/stylesheets/components/placeholder.scss +66 -0
- data/vendor/assets/stylesheets/components/progress.scss +173 -0
- data/vendor/assets/stylesheets/components/search.scss +309 -0
- data/vendor/assets/stylesheets/components/slidenav.scss +183 -0
- data/vendor/assets/stylesheets/components/slider.scss +139 -0
- data/vendor/assets/stylesheets/components/slideshow.scss +208 -0
- data/vendor/assets/stylesheets/components/sortable.scss +124 -0
- data/vendor/assets/stylesheets/components/sticky.scss +57 -0
- data/vendor/assets/stylesheets/components/tooltip.scss +178 -0
- data/vendor/assets/stylesheets/components/upload.scss +34 -0
- data/vendor/assets/stylesheets/core/alert.scss +141 -0
- data/vendor/assets/stylesheets/core/animation.scss +599 -0
- data/vendor/assets/stylesheets/core/article.scss +139 -0
- data/vendor/assets/stylesheets/core/badge.scss +110 -0
- data/vendor/assets/stylesheets/core/base.scss +563 -0
- data/vendor/assets/stylesheets/core/block.scss +155 -0
- data/vendor/assets/stylesheets/core/breadcrumb.scss +86 -0
- data/vendor/assets/stylesheets/core/button.scss +406 -0
- data/vendor/assets/stylesheets/core/close.scss +132 -0
- data/vendor/assets/stylesheets/core/column.scss +209 -0
- data/vendor/assets/stylesheets/core/comment.scss +172 -0
- data/vendor/assets/stylesheets/core/contrast.scss +493 -0
- data/vendor/assets/stylesheets/core/cover.scss +70 -0
- data/vendor/assets/stylesheets/core/description-list.scss +71 -0
- data/vendor/assets/stylesheets/core/dropdown.scss +283 -0
- data/vendor/assets/stylesheets/core/flex.scss +320 -0
- data/vendor/assets/stylesheets/core/form.scss +629 -0
- data/vendor/assets/stylesheets/core/grid.scss +731 -0
- data/vendor/assets/stylesheets/core/icon.scss +930 -0
- data/vendor/assets/stylesheets/core/list.scss +102 -0
- data/vendor/assets/stylesheets/core/modal.scss +343 -0
- data/vendor/assets/stylesheets/core/nav.scss +468 -0
- data/vendor/assets/stylesheets/core/navbar.scss +325 -0
- data/vendor/assets/stylesheets/core/offcanvas.scss +203 -0
- data/vendor/assets/stylesheets/core/overlay.scss +534 -0
- data/vendor/assets/stylesheets/core/pagination.scss +197 -0
- data/vendor/assets/stylesheets/core/panel.scss +332 -0
- data/vendor/assets/stylesheets/core/print.scss +61 -0
- data/vendor/assets/stylesheets/core/subnav.scss +213 -0
- data/vendor/assets/stylesheets/core/switcher.scss +38 -0
- data/vendor/assets/stylesheets/core/tab.scss +368 -0
- data/vendor/assets/stylesheets/core/table.scss +147 -0
- data/vendor/assets/stylesheets/core/text.scss +136 -0
- data/vendor/assets/stylesheets/core/thumbnail.scss +122 -0
- data/vendor/assets/stylesheets/core/thumbnav.scss +122 -0
- data/vendor/assets/stylesheets/core/utility.scss +610 -0
- data/vendor/assets/stylesheets/core/variables.scss +23 -0
- data/vendor/assets/stylesheets/uikit-mixins.scss +327 -0
- data/vendor/assets/stylesheets/uikit-variables.scss +819 -0
- data/vendor/assets/stylesheets/uikit.scss +52 -0
- metadata +251 -0
@@ -0,0 +1,147 @@
|
|
1
|
+
// Name: Table
|
2
|
+
// Description: Defines styles for tables
|
3
|
+
//
|
4
|
+
// Component: `uk-table`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-table-middle`
|
7
|
+
// `uk-table-striped`
|
8
|
+
// `uk-table-condensed`
|
9
|
+
// `uk-table-hover`
|
10
|
+
//
|
11
|
+
// States: `uk-active`
|
12
|
+
//
|
13
|
+
// ========================================================================
|
14
|
+
|
15
|
+
|
16
|
+
// Variables
|
17
|
+
// ========================================================================
|
18
|
+
|
19
|
+
$table-margin-vertical: 15px !default;
|
20
|
+
$table-padding-vertical: 8px !default;
|
21
|
+
$table-padding-horizontal: 8px !default;
|
22
|
+
|
23
|
+
$table-caption-color: #999 !default;
|
24
|
+
$table-caption-font-size: 12px !default;
|
25
|
+
|
26
|
+
$table-striped-background: #f5f5f5 !default;
|
27
|
+
|
28
|
+
$table-condensed-padding-vertical: 4px !default;
|
29
|
+
$table-condensed-padding-horizontal: 8px !default;
|
30
|
+
|
31
|
+
$table-hover-background: #EEE !default;
|
32
|
+
|
33
|
+
$table-active-background: $table-hover-background !default;
|
34
|
+
|
35
|
+
|
36
|
+
/* ========================================================================
|
37
|
+
Component: Table
|
38
|
+
========================================================================== */
|
39
|
+
|
40
|
+
/*
|
41
|
+
* 1. Remove most spacing between table cells.
|
42
|
+
* 2. Block element behavior
|
43
|
+
* 3. Style
|
44
|
+
*/
|
45
|
+
|
46
|
+
.uk-table {
|
47
|
+
/* 1 */
|
48
|
+
border-collapse: collapse;
|
49
|
+
border-spacing: 0;
|
50
|
+
/* 2 */
|
51
|
+
width: 100%;
|
52
|
+
/* 3 */
|
53
|
+
margin-bottom: $table-margin-vertical;
|
54
|
+
}
|
55
|
+
|
56
|
+
/*
|
57
|
+
* Add margin if adjacent element
|
58
|
+
*/
|
59
|
+
|
60
|
+
* + .uk-table { margin-top: $table-margin-vertical; }
|
61
|
+
|
62
|
+
.uk-table th,
|
63
|
+
.uk-table td {
|
64
|
+
padding: $table-padding-vertical $table-padding-horizontal;
|
65
|
+
@include hook-table();
|
66
|
+
}
|
67
|
+
|
68
|
+
/*
|
69
|
+
* Set alignment
|
70
|
+
*/
|
71
|
+
|
72
|
+
.uk-table th { text-align: left; }
|
73
|
+
.uk-table td { vertical-align: top; }
|
74
|
+
|
75
|
+
.uk-table thead th { vertical-align: bottom; }
|
76
|
+
|
77
|
+
/*
|
78
|
+
* Caption and footer
|
79
|
+
*/
|
80
|
+
|
81
|
+
.uk-table caption,
|
82
|
+
.uk-table tfoot {
|
83
|
+
font-size: $table-caption-font-size;
|
84
|
+
font-style: italic;
|
85
|
+
}
|
86
|
+
|
87
|
+
.uk-table caption {
|
88
|
+
text-align: left;
|
89
|
+
color: $table-caption-color;
|
90
|
+
}
|
91
|
+
|
92
|
+
/*
|
93
|
+
* Active State
|
94
|
+
*/
|
95
|
+
|
96
|
+
.uk-table tbody tr.uk-active {
|
97
|
+
background: $table-active-background;
|
98
|
+
@include hook-table-active();
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
/* Sub-modifier: `uk-table-middle`
|
103
|
+
========================================================================== */
|
104
|
+
|
105
|
+
.uk-table-middle,
|
106
|
+
.uk-table-middle td { vertical-align: middle !important; }
|
107
|
+
|
108
|
+
|
109
|
+
/* Modifier: `uk-table-striped`
|
110
|
+
========================================================================== */
|
111
|
+
|
112
|
+
.uk-table-striped tbody tr:nth-of-type(odd) {
|
113
|
+
background: $table-striped-background;
|
114
|
+
@include hook-table-striped();
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
/* Modifier: `uk-table-condensed`
|
119
|
+
========================================================================== */
|
120
|
+
|
121
|
+
.uk-table-condensed td {
|
122
|
+
padding: $table-condensed-padding-vertical $table-condensed-padding-horizontal;
|
123
|
+
@include hook-table-condensed();
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
/* Modifier: `uk-table-hover`
|
128
|
+
========================================================================== */
|
129
|
+
|
130
|
+
.uk-table-hover tbody tr:hover {
|
131
|
+
background: $table-hover-background;
|
132
|
+
@include hook-table-hover();
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
// Hooks
|
138
|
+
// ========================================================================
|
139
|
+
|
140
|
+
@include hook-table-misc();
|
141
|
+
|
142
|
+
// @mixin hook-table(){}
|
143
|
+
// @mixin hook-table-active(){}
|
144
|
+
// @mixin hook-table-striped(){}
|
145
|
+
// @mixin hook-table-condensed(){}
|
146
|
+
// @mixin hook-table-hover(){}
|
147
|
+
// @mixin hook-table-misc(){}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
// Name: Text
|
2
|
+
// Description: Collection of useful text utility classes to style your content
|
3
|
+
//
|
4
|
+
// Component: `uk-text-*`
|
5
|
+
//
|
6
|
+
// ========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
// Variables
|
10
|
+
// ========================================================================
|
11
|
+
|
12
|
+
$text-small-font-size: 11px !default;
|
13
|
+
$text-small-line-height: 16px !default;
|
14
|
+
$text-large-font-size: 18px !default;
|
15
|
+
$text-large-line-height: 24px !default;
|
16
|
+
$text-large-font-weight: normal !default;
|
17
|
+
|
18
|
+
$text-muted-color: #999 !default;
|
19
|
+
$text-primary-color: #2d7091 !default;
|
20
|
+
$text-success-color: #659f13 !default;
|
21
|
+
$text-warning-color: #e28327 !default;
|
22
|
+
$text-danger-color: #d85030 !default;
|
23
|
+
$text-contrast-color: #fff !default;
|
24
|
+
|
25
|
+
|
26
|
+
/* ========================================================================
|
27
|
+
Component: Text
|
28
|
+
========================================================================== */
|
29
|
+
|
30
|
+
/* Size modifiers
|
31
|
+
========================================================================== */
|
32
|
+
|
33
|
+
.uk-text-small {
|
34
|
+
font-size: $text-small-font-size;
|
35
|
+
line-height: $text-small-line-height;
|
36
|
+
}
|
37
|
+
|
38
|
+
.uk-text-large {
|
39
|
+
font-size: $text-large-font-size;
|
40
|
+
line-height: $text-large-line-height;
|
41
|
+
font-weight: $text-large-font-weight;
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
/* Weight modifiers
|
46
|
+
========================================================================== */
|
47
|
+
|
48
|
+
.uk-text-bold { font-weight: bold; }
|
49
|
+
|
50
|
+
|
51
|
+
/* Color modifiers
|
52
|
+
========================================================================== */
|
53
|
+
|
54
|
+
.uk-text-muted { color: $text-muted-color !important; }
|
55
|
+
.uk-text-primary { color: $text-primary-color !important; }
|
56
|
+
.uk-text-success { color: $text-success-color !important; }
|
57
|
+
.uk-text-warning { color: $text-warning-color !important; }
|
58
|
+
.uk-text-danger { color: $text-danger-color !important; }
|
59
|
+
.uk-text-contrast { color: $text-contrast-color !important; }
|
60
|
+
|
61
|
+
|
62
|
+
/* Alignment modifiers
|
63
|
+
========================================================================== */
|
64
|
+
|
65
|
+
.uk-text-left { text-align: left !important; }
|
66
|
+
.uk-text-right { text-align: right !important; }
|
67
|
+
.uk-text-center { text-align: center !important; }
|
68
|
+
.uk-text-justify { text-align: justify !important; }
|
69
|
+
|
70
|
+
.uk-text-top { vertical-align: top !important; }
|
71
|
+
.uk-text-middle { vertical-align: middle !important; }
|
72
|
+
.uk-text-bottom { vertical-align: bottom !important; }
|
73
|
+
|
74
|
+
/* Only tablets portrait and smaller */
|
75
|
+
@media (max-width: $breakpoint-medium-max) {
|
76
|
+
|
77
|
+
.uk-text-center-medium { text-align: center !important; }
|
78
|
+
.uk-text-left-medium { text-align: left !important; }
|
79
|
+
|
80
|
+
}
|
81
|
+
|
82
|
+
/* Phone landscape and smaller */
|
83
|
+
@media (max-width: $breakpoint-small-max) {
|
84
|
+
|
85
|
+
.uk-text-center-small { text-align: center !important; }
|
86
|
+
.uk-text-left-small { text-align: left !important; }
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
/* Wrap modifiers
|
92
|
+
========================================================================== */
|
93
|
+
|
94
|
+
/*
|
95
|
+
* Prevent text from wrapping onto multiple lines
|
96
|
+
*/
|
97
|
+
|
98
|
+
.uk-text-nowrap { white-space: nowrap; }
|
99
|
+
|
100
|
+
/*
|
101
|
+
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis
|
102
|
+
*/
|
103
|
+
|
104
|
+
.uk-text-truncate {
|
105
|
+
overflow: hidden;
|
106
|
+
text-overflow: ellipsis;
|
107
|
+
white-space: nowrap;
|
108
|
+
}
|
109
|
+
|
110
|
+
/*
|
111
|
+
* Break strings if their length exceeds the width of their container
|
112
|
+
*/
|
113
|
+
|
114
|
+
.uk-text-break {
|
115
|
+
word-wrap: break-word;
|
116
|
+
-webkit-hyphens: auto;
|
117
|
+
-ms-hyphens: auto;
|
118
|
+
-moz-hyphens: auto;
|
119
|
+
hyphens: auto;
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
/* Transform modifiers
|
124
|
+
========================================================================== */
|
125
|
+
|
126
|
+
.uk-text-capitalize { text-transform: capitalize !important; }
|
127
|
+
.uk-text-lowercase { text-transform: lowercase !important; }
|
128
|
+
.uk-text-uppercase { text-transform: uppercase !important; }
|
129
|
+
|
130
|
+
|
131
|
+
// Hooks
|
132
|
+
// ========================================================================
|
133
|
+
|
134
|
+
@include hook-text-misc();
|
135
|
+
|
136
|
+
// @mixin hook-text-misc(){}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
// Name: Thumbnail
|
2
|
+
// Description: Defines styles for image thumbnails
|
3
|
+
//
|
4
|
+
// Component: `uk-thumbnail`
|
5
|
+
//
|
6
|
+
// Sub-objects: `uk-thumbnail-caption`
|
7
|
+
//
|
8
|
+
// Modifiers: `uk-thumbnail-mini`
|
9
|
+
// `uk-thumbnail-small`
|
10
|
+
// `uk-thumbnail-medium`
|
11
|
+
// `uk-thumbnail-large`
|
12
|
+
// `uk-thumbnail-expand`
|
13
|
+
//
|
14
|
+
// Markup:
|
15
|
+
//
|
16
|
+
// <!-- uk-thumbnail -->
|
17
|
+
// <figure class="uk-thumbnail">
|
18
|
+
// <img src="" alt="">
|
19
|
+
// <figcaption class="uk-thumbnail-caption"></figcaption>
|
20
|
+
// </figure>
|
21
|
+
//
|
22
|
+
// ========================================================================
|
23
|
+
|
24
|
+
|
25
|
+
// Variables
|
26
|
+
// ========================================================================
|
27
|
+
|
28
|
+
$thumbnail-padding: 4px !default;
|
29
|
+
$thumbnail-border: #ddd !default;
|
30
|
+
$thumbnail-border-width: 1px !default;
|
31
|
+
$thumbnail-background: #fff !default;
|
32
|
+
$thumbnail-hover-border: #aaa !default;
|
33
|
+
$thumbnail-hover-background: #fff !default;
|
34
|
+
|
35
|
+
$thumbnail-caption-padding: $thumbnail-padding !default;
|
36
|
+
$thumbnail-caption-color: #444 !default;
|
37
|
+
|
38
|
+
$thumbnail-mini-width: 150px !default;
|
39
|
+
$thumbnail-small-width: 200px !default;
|
40
|
+
$thumbnail-medium-width: 300px !default;
|
41
|
+
$thumbnail-large-width: 400px !default;
|
42
|
+
|
43
|
+
|
44
|
+
/* ========================================================================
|
45
|
+
Component: Thumbnail
|
46
|
+
========================================================================== */
|
47
|
+
|
48
|
+
/*
|
49
|
+
* 1. Container width fits its content
|
50
|
+
* 2. Responsive behavior
|
51
|
+
* 3. Corrects `max-width` behavior sed
|
52
|
+
* 4. Required for `figure` element
|
53
|
+
* 5. Style
|
54
|
+
*/
|
55
|
+
|
56
|
+
.uk-thumbnail {
|
57
|
+
/* 1 */
|
58
|
+
display: inline-block;
|
59
|
+
/* 2 */
|
60
|
+
max-width: 100%;
|
61
|
+
/* 3 */
|
62
|
+
box-sizing: border-box;
|
63
|
+
/* 3 */
|
64
|
+
margin: 0;
|
65
|
+
/* 4 */
|
66
|
+
padding: $thumbnail-padding;
|
67
|
+
border: $thumbnail-border-width solid $thumbnail-border;
|
68
|
+
background: $thumbnail-background;
|
69
|
+
@include hook-thumbnail();
|
70
|
+
}
|
71
|
+
|
72
|
+
/*
|
73
|
+
* Hover state for `a` elements
|
74
|
+
* 1. Apply hover style also to focus state
|
75
|
+
* 2. Needed for caption
|
76
|
+
* 3. Remove default focus style
|
77
|
+
*/
|
78
|
+
|
79
|
+
a.uk-thumbnail:hover,
|
80
|
+
a.uk-thumbnail:focus { // 1
|
81
|
+
border-color: $thumbnail-hover-border;
|
82
|
+
background-color: $thumbnail-hover-background;
|
83
|
+
/* 2 */
|
84
|
+
text-decoration: none;
|
85
|
+
/* 3 */
|
86
|
+
outline: none;
|
87
|
+
@include hook-thumbnail-hover();
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
/* Caption
|
92
|
+
========================================================================== */
|
93
|
+
|
94
|
+
.uk-thumbnail-caption {
|
95
|
+
padding-top: $thumbnail-caption-padding;
|
96
|
+
text-align: center;
|
97
|
+
color: $thumbnail-caption-color;
|
98
|
+
@include hook-thumbnail-caption();
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
/* Sizes
|
103
|
+
========================================================================== */
|
104
|
+
|
105
|
+
.uk-thumbnail-mini { width: $thumbnail-mini-width; }
|
106
|
+
.uk-thumbnail-small { width: $thumbnail-small-width; }
|
107
|
+
.uk-thumbnail-medium { width: $thumbnail-medium-width; }
|
108
|
+
.uk-thumbnail-large { width: $thumbnail-large-width; }
|
109
|
+
|
110
|
+
.uk-thumbnail-expand,
|
111
|
+
.uk-thumbnail-expand > img { width: 100%; }
|
112
|
+
|
113
|
+
|
114
|
+
// Hooks
|
115
|
+
// ========================================================================
|
116
|
+
|
117
|
+
@include hook-thumbnail-misc();
|
118
|
+
|
119
|
+
// @mixin hook-thumbnail(){}
|
120
|
+
// @mixin hook-thumbnail-hover(){}
|
121
|
+
// @mixin hook-thumbnail-caption(){}
|
122
|
+
// @mixin hook-thumbnail-misc(){}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
// Name: Thumbnav
|
2
|
+
// Description: Defines styles for a thumbnail navigation
|
3
|
+
//
|
4
|
+
// Component: `uk-thumbnav`
|
5
|
+
//
|
6
|
+
// States: `uk-active`
|
7
|
+
//
|
8
|
+
// Markup:
|
9
|
+
//
|
10
|
+
// <!-- uk-thumbnav -->
|
11
|
+
// <ul class="uk-thumbnav">
|
12
|
+
// <li class="uk-active"><a href=""></a></li>
|
13
|
+
// <li><a href=""></a></li>
|
14
|
+
// </ul>
|
15
|
+
//
|
16
|
+
// ========================================================================
|
17
|
+
|
18
|
+
|
19
|
+
// Variables
|
20
|
+
// ========================================================================
|
21
|
+
|
22
|
+
$thumbnav-margin-horizontal: 10px !default;
|
23
|
+
$thumbnav-margin-vertical: $thumbnav-margin-horizontal !default;
|
24
|
+
|
25
|
+
$thumbnav-background: #fff !default;
|
26
|
+
|
27
|
+
$thumbnav-opacity: 0.7 !default;
|
28
|
+
$thumbnav-hover-opacity: 1 !default;
|
29
|
+
$thumbnav-active-opacity: 1 !default;
|
30
|
+
|
31
|
+
|
32
|
+
/* ========================================================================
|
33
|
+
Component: Thumbnav
|
34
|
+
========================================================================== */
|
35
|
+
|
36
|
+
/*
|
37
|
+
* 1. Gutter
|
38
|
+
* 2. Remove default list style
|
39
|
+
*/
|
40
|
+
|
41
|
+
.uk-thumbnav {
|
42
|
+
display: -ms-flexbox;
|
43
|
+
display: -webkit-flex;
|
44
|
+
display: flex;
|
45
|
+
-ms-flex-wrap: wrap;
|
46
|
+
-webkit-flex-wrap: wrap;
|
47
|
+
flex-wrap: wrap;
|
48
|
+
/* 1 */
|
49
|
+
margin-left: -$thumbnav-margin-horizontal;
|
50
|
+
margin-top: -$thumbnav-margin-vertical;
|
51
|
+
/* 2 */
|
52
|
+
padding: 0;
|
53
|
+
list-style: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
/*
|
57
|
+
* 1. Space is allocated solely based on content dimensions
|
58
|
+
* 2. Horizontal gutter is using `padding` so `uk-width-*` classes can be applied
|
59
|
+
*/
|
60
|
+
|
61
|
+
.uk-thumbnav > * {
|
62
|
+
/* 1 */
|
63
|
+
-ms-flex: none;
|
64
|
+
-webkit-flex: none;
|
65
|
+
flex: none;
|
66
|
+
/* 2 */
|
67
|
+
padding-left: $thumbnav-margin-horizontal;
|
68
|
+
margin-top: $thumbnav-margin-vertical;
|
69
|
+
}
|
70
|
+
|
71
|
+
/*
|
72
|
+
* DEPRECATED IE9 Support
|
73
|
+
*/
|
74
|
+
|
75
|
+
.uk-thumbnav:before,
|
76
|
+
.uk-thumbnav:after {
|
77
|
+
content: "";
|
78
|
+
display: block;
|
79
|
+
overflow: hidden;
|
80
|
+
}
|
81
|
+
|
82
|
+
.uk-thumbnav:after { clear: both; }
|
83
|
+
|
84
|
+
.uk-thumbnav > * { float: left; }
|
85
|
+
|
86
|
+
|
87
|
+
/* Items
|
88
|
+
========================================================================== */
|
89
|
+
|
90
|
+
.uk-thumbnav > * > * {
|
91
|
+
display: block;
|
92
|
+
background: $thumbnav-background;
|
93
|
+
@include hook-thumbnav();
|
94
|
+
}
|
95
|
+
|
96
|
+
.uk-thumbnav > * > * > img {
|
97
|
+
opacity: $thumbnav-opacity;
|
98
|
+
-webkit-transition: opacity 0.15s linear;
|
99
|
+
transition: opacity 0.15s linear;
|
100
|
+
}
|
101
|
+
|
102
|
+
/*
|
103
|
+
* Hover
|
104
|
+
*/
|
105
|
+
|
106
|
+
.uk-thumbnav > * > :hover > img,
|
107
|
+
.uk-thumbnav > * > :focus > img { opacity: $thumbnav-hover-opacity; }
|
108
|
+
|
109
|
+
/*
|
110
|
+
* Active
|
111
|
+
*/
|
112
|
+
|
113
|
+
.uk-thumbnav > .uk-active > * > img { opacity: $thumbnav-active-opacity; }
|
114
|
+
|
115
|
+
|
116
|
+
// Hooks
|
117
|
+
// ========================================================================
|
118
|
+
|
119
|
+
@include hook-thumbnav-misc();
|
120
|
+
|
121
|
+
// @mixin hook-thumbnav(){}
|
122
|
+
// @mixin hook-thumbnav-misc(){}
|