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,47 @@
|
|
1
|
+
// Name: Switcher
|
2
|
+
// Description: Component to navigate through different content panes
|
3
|
+
//
|
4
|
+
// Component: `uk-switcher`
|
5
|
+
//
|
6
|
+
// States: `uk-active`
|
7
|
+
//
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
|
11
|
+
/* ========================================================================
|
12
|
+
Component: Switcher
|
13
|
+
========================================================================== */
|
14
|
+
|
15
|
+
/*
|
16
|
+
* Reset lists
|
17
|
+
*/
|
18
|
+
|
19
|
+
.uk-switcher {
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
22
|
+
list-style: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
/* Items
|
27
|
+
========================================================================== */
|
28
|
+
|
29
|
+
/*
|
30
|
+
* Hide not active items
|
31
|
+
*/
|
32
|
+
|
33
|
+
.uk-switcher > :not(.uk-active) { display: none; }
|
34
|
+
|
35
|
+
/*
|
36
|
+
* Remove margin from the last-child
|
37
|
+
*/
|
38
|
+
|
39
|
+
.uk-switcher > * > :last-child { margin-bottom: 0; }
|
40
|
+
|
41
|
+
|
42
|
+
// Hooks
|
43
|
+
// ========================================================================
|
44
|
+
|
45
|
+
.hook-switcher-misc;
|
46
|
+
|
47
|
+
.hook-switcher-misc() {}
|
@@ -0,0 +1,226 @@
|
|
1
|
+
// Name: Tab
|
2
|
+
// Description: Component to create a tabbed navigation
|
3
|
+
//
|
4
|
+
// Component: `uk-tab`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-tab-bottom`
|
7
|
+
// `uk-tab-left`
|
8
|
+
// `uk-tab-right`
|
9
|
+
//
|
10
|
+
// States: `uk-active`
|
11
|
+
// `uk-disabled`
|
12
|
+
//
|
13
|
+
// ========================================================================
|
14
|
+
|
15
|
+
|
16
|
+
// Variables
|
17
|
+
// ========================================================================
|
18
|
+
|
19
|
+
@tab-margin-horizontal: 20px;
|
20
|
+
|
21
|
+
@tab-item-padding-horizontal: 10px;
|
22
|
+
@tab-item-padding-vertical: 5px;
|
23
|
+
@tab-item-color: @global-muted-color;
|
24
|
+
@tab-item-hover-color: @global-color;
|
25
|
+
@tab-item-hover-text-decoration: none;
|
26
|
+
@tab-item-active-color: @global-emphasis-color;
|
27
|
+
@tab-item-disabled-color: @global-muted-color;
|
28
|
+
|
29
|
+
|
30
|
+
/* ========================================================================
|
31
|
+
Component: Tab
|
32
|
+
========================================================================== */
|
33
|
+
|
34
|
+
/*
|
35
|
+
* 1. Allow items to wrap into the next line
|
36
|
+
* 2. Gutter
|
37
|
+
* 3. Reset lists
|
38
|
+
*/
|
39
|
+
|
40
|
+
.uk-tab {
|
41
|
+
display: -ms-flexbox;
|
42
|
+
display: -webkit-flex;
|
43
|
+
display: flex;
|
44
|
+
/* 1 */
|
45
|
+
-ms-flex-wrap: wrap;
|
46
|
+
-webkit-flex-wrap: wrap;
|
47
|
+
flex-wrap: wrap;
|
48
|
+
/* 2 */
|
49
|
+
margin-left: -@tab-margin-horizontal;
|
50
|
+
/* 3 */
|
51
|
+
padding: 0;
|
52
|
+
list-style: none;
|
53
|
+
.hook-tab;
|
54
|
+
}
|
55
|
+
|
56
|
+
/*
|
57
|
+
* 1. Space is allocated solely based on content dimensions: 0 0 auto
|
58
|
+
* 2. Gutter
|
59
|
+
* 3. Create position context for dropdowns
|
60
|
+
*/
|
61
|
+
|
62
|
+
.uk-tab > * {
|
63
|
+
/* 1 */
|
64
|
+
-ms-flex: none;
|
65
|
+
-webkit-flex: none;
|
66
|
+
flex: none;
|
67
|
+
/* 2 */
|
68
|
+
padding-left: @tab-margin-horizontal;
|
69
|
+
/* 3 */
|
70
|
+
position: relative;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
/* Items
|
75
|
+
========================================================================== */
|
76
|
+
|
77
|
+
/*
|
78
|
+
* Items must target `a` elements to exclude other elements (e.g. dropdowns)
|
79
|
+
* 1. Center text if a width is set
|
80
|
+
* 2. Style
|
81
|
+
*/
|
82
|
+
|
83
|
+
.uk-tab > * > a {
|
84
|
+
/* 1 */
|
85
|
+
display: block;
|
86
|
+
text-align: center;
|
87
|
+
/* 2 */
|
88
|
+
padding: @tab-item-padding-vertical @tab-item-padding-horizontal;
|
89
|
+
color: @tab-item-color;
|
90
|
+
.hook-tab-item;
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Hover + Focus */
|
94
|
+
.uk-tab > * > a:hover,
|
95
|
+
.uk-tab > * > a:focus {
|
96
|
+
color: @tab-item-hover-color;
|
97
|
+
text-decoration: @tab-item-hover-text-decoration;
|
98
|
+
.hook-tab-item-hover;
|
99
|
+
}
|
100
|
+
|
101
|
+
/* Active */
|
102
|
+
.uk-tab > .uk-active > a {
|
103
|
+
color: @tab-item-active-color;
|
104
|
+
.hook-tab-item-active;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* Disabled */
|
108
|
+
.uk-tab > .uk-disabled > a {
|
109
|
+
color: @tab-item-disabled-color;
|
110
|
+
.hook-tab-item-disabled;
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
/* Position modifier
|
115
|
+
========================================================================== */
|
116
|
+
|
117
|
+
/*
|
118
|
+
* Bottom
|
119
|
+
*/
|
120
|
+
|
121
|
+
.uk-tab-bottom {
|
122
|
+
.hook-tab-bottom;
|
123
|
+
}
|
124
|
+
|
125
|
+
.uk-tab-bottom > * > a {
|
126
|
+
.hook-tab-bottom-item;
|
127
|
+
}
|
128
|
+
|
129
|
+
/*
|
130
|
+
* Left + Right
|
131
|
+
* 1. Reset Gutter
|
132
|
+
*/
|
133
|
+
|
134
|
+
.uk-tab-left,
|
135
|
+
.uk-tab-right {
|
136
|
+
-ms-flex-direction: column;
|
137
|
+
-webkit-flex-direction: column;
|
138
|
+
flex-direction: column;
|
139
|
+
/* 1 */
|
140
|
+
margin-left: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* 1 */
|
144
|
+
.uk-tab-left > *,
|
145
|
+
.uk-tab-right > * { padding-left: 0; }
|
146
|
+
|
147
|
+
.uk-tab-left {
|
148
|
+
.hook-tab-left;
|
149
|
+
}
|
150
|
+
|
151
|
+
.uk-tab-right {
|
152
|
+
.hook-tab-right;
|
153
|
+
}
|
154
|
+
|
155
|
+
.uk-tab-left > * > a {
|
156
|
+
text-align: right;
|
157
|
+
.hook-tab-left-item;
|
158
|
+
}
|
159
|
+
|
160
|
+
.uk-tab-right > * > a {
|
161
|
+
text-align: left;
|
162
|
+
.hook-tab-right-item;
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
// Hooks
|
167
|
+
// ========================================================================
|
168
|
+
|
169
|
+
.hook-tab-misc;
|
170
|
+
|
171
|
+
.hook-tab() {}
|
172
|
+
.hook-tab-item() {}
|
173
|
+
.hook-tab-item-hover() {}
|
174
|
+
.hook-tab-item-active() {}
|
175
|
+
.hook-tab-item-disabled() {}
|
176
|
+
.hook-tab-bottom() {}
|
177
|
+
.hook-tab-bottom-item() {}
|
178
|
+
.hook-tab-left() {}
|
179
|
+
.hook-tab-left-item() {}
|
180
|
+
.hook-tab-right() {}
|
181
|
+
.hook-tab-right-item() {}
|
182
|
+
.hook-tab-misc() {}
|
183
|
+
|
184
|
+
|
185
|
+
// Inverse
|
186
|
+
// ========================================================================
|
187
|
+
|
188
|
+
@inverse-tab-item-color: @inverse-global-muted-color;
|
189
|
+
@inverse-tab-item-hover-color: @inverse-global-color;
|
190
|
+
@inverse-tab-item-active-color: @inverse-global-emphasis-color;
|
191
|
+
@inverse-tab-item-disabled-color: @inverse-global-muted-color;
|
192
|
+
|
193
|
+
.hook-inverse() {
|
194
|
+
|
195
|
+
.uk-tab {
|
196
|
+
.hook-inverse-tab;
|
197
|
+
}
|
198
|
+
|
199
|
+
.uk-tab > * > a {
|
200
|
+
color: @inverse-tab-item-color;
|
201
|
+
.hook-inverse-tab-item;
|
202
|
+
}
|
203
|
+
|
204
|
+
.uk-tab > * > a:hover,
|
205
|
+
.uk-tab > * > a:focus{
|
206
|
+
color: @inverse-tab-item-hover-color;
|
207
|
+
.hook-inverse-tab-item-hover;
|
208
|
+
}
|
209
|
+
|
210
|
+
.uk-tab > .uk-active > a {
|
211
|
+
color: @inverse-tab-item-active-color;
|
212
|
+
.hook-inverse-tab-item-active;
|
213
|
+
}
|
214
|
+
|
215
|
+
.uk-tab > .uk-disabled > a {
|
216
|
+
color: @inverse-tab-item-disabled-color;
|
217
|
+
.hook-inverse-tab-item-disabled;
|
218
|
+
}
|
219
|
+
|
220
|
+
}
|
221
|
+
|
222
|
+
.hook-inverse-tab() {}
|
223
|
+
.hook-inverse-tab-item() {}
|
224
|
+
.hook-inverse-tab-item-hover() {}
|
225
|
+
.hook-inverse-tab-item-active() {}
|
226
|
+
.hook-inverse-tab-item-disabled() {}
|
@@ -0,0 +1,207 @@
|
|
1
|
+
// Name: Table
|
2
|
+
// Description: Styles for tables
|
3
|
+
//
|
4
|
+
// Component: `uk-table`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-table-middle`
|
7
|
+
// `uk-table-striped`
|
8
|
+
// `uk-table-small`
|
9
|
+
// `uk-table-hover`
|
10
|
+
// `uk-table-shrink`
|
11
|
+
// `uk-table-expand`
|
12
|
+
// `uk-table-link`
|
13
|
+
//
|
14
|
+
// States: `uk-active`
|
15
|
+
//
|
16
|
+
// ========================================================================
|
17
|
+
|
18
|
+
|
19
|
+
// Variables
|
20
|
+
// ========================================================================
|
21
|
+
|
22
|
+
@table-margin-vertical: @global-margin;
|
23
|
+
|
24
|
+
@table-cell-padding-vertical: 16px;
|
25
|
+
@table-cell-padding-horizontal: 12px;
|
26
|
+
|
27
|
+
@table-header-cell-font-size: @global-font-size;
|
28
|
+
@table-header-cell-font-weight: bold;
|
29
|
+
@table-header-cell-color: @global-color;
|
30
|
+
|
31
|
+
@table-footer-font-size: @global-small-font-size;
|
32
|
+
|
33
|
+
@table-caption-font-size: @global-small-font-size;
|
34
|
+
@table-caption-color: @global-muted-color;
|
35
|
+
|
36
|
+
@table-row-active-background: #ffd;
|
37
|
+
|
38
|
+
@table-striped-row-background: @global-muted-background;
|
39
|
+
|
40
|
+
@table-hover-row-background: @table-row-active-background;
|
41
|
+
|
42
|
+
@table-small-cell-padding-vertical: 10px;
|
43
|
+
@table-small-cell-padding-horizontal: 12px;
|
44
|
+
|
45
|
+
@table-expand-min-width: 300px;
|
46
|
+
|
47
|
+
|
48
|
+
/* ========================================================================
|
49
|
+
Component: Table
|
50
|
+
========================================================================== */
|
51
|
+
|
52
|
+
/*
|
53
|
+
* 1. Remove most spacing between table cells.
|
54
|
+
* 2. Behave like a block element
|
55
|
+
* 3. Style
|
56
|
+
*/
|
57
|
+
|
58
|
+
.uk-table {
|
59
|
+
/* 1 */
|
60
|
+
border-collapse: collapse;
|
61
|
+
border-spacing: 0;
|
62
|
+
/* 2 */
|
63
|
+
width: 100%;
|
64
|
+
/* 3 */
|
65
|
+
margin-bottom: @table-margin-vertical;
|
66
|
+
}
|
67
|
+
|
68
|
+
/* Add margin if adjacent element */
|
69
|
+
* + .uk-table { margin-top: @table-margin-vertical; }
|
70
|
+
|
71
|
+
|
72
|
+
/* Header cell
|
73
|
+
========================================================================== */
|
74
|
+
|
75
|
+
/*
|
76
|
+
* 1. Style
|
77
|
+
*/
|
78
|
+
|
79
|
+
.uk-table th {
|
80
|
+
padding: @table-cell-padding-vertical @table-cell-padding-horizontal;
|
81
|
+
text-align: left;
|
82
|
+
vertical-align: bottom;
|
83
|
+
/* 1 */
|
84
|
+
font-size: @table-header-cell-font-size;
|
85
|
+
font-weight: @table-header-cell-font-weight;
|
86
|
+
color: @table-header-cell-color;
|
87
|
+
.hook-table-header-cell;
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
/* Cell
|
92
|
+
========================================================================== */
|
93
|
+
|
94
|
+
.uk-table td {
|
95
|
+
padding: @table-cell-padding-vertical @table-cell-padding-horizontal;
|
96
|
+
vertical-align: top;
|
97
|
+
.hook-table-cell;
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
/* Footer
|
102
|
+
========================================================================== */
|
103
|
+
|
104
|
+
.uk-table tfoot {
|
105
|
+
font-size: @table-footer-font-size;
|
106
|
+
.hook-table-footer;
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
/* Caption
|
111
|
+
========================================================================== */
|
112
|
+
|
113
|
+
.uk-table caption {
|
114
|
+
font-size: @table-caption-font-size;
|
115
|
+
text-align: left;
|
116
|
+
color: @table-caption-color;
|
117
|
+
.hook-table-caption;
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
/* Row
|
122
|
+
========================================================================== */
|
123
|
+
|
124
|
+
.uk-table > tr.uk-active,
|
125
|
+
.uk-table tbody tr.uk-active {
|
126
|
+
background: @table-row-active-background;
|
127
|
+
.hook-table-row-active;
|
128
|
+
}
|
129
|
+
|
130
|
+
|
131
|
+
/* Alignment modifier
|
132
|
+
========================================================================== */
|
133
|
+
|
134
|
+
.uk-table-middle,
|
135
|
+
.uk-table-middle td { vertical-align: middle !important; }
|
136
|
+
|
137
|
+
|
138
|
+
/* Style modifiers
|
139
|
+
========================================================================== */
|
140
|
+
|
141
|
+
/*
|
142
|
+
* Striped
|
143
|
+
*/
|
144
|
+
|
145
|
+
.uk-table-striped > tr:nth-of-type(odd),
|
146
|
+
.uk-table-striped tbody tr:nth-of-type(odd) {
|
147
|
+
background: @table-striped-row-background;
|
148
|
+
.hook-table-striped;
|
149
|
+
}
|
150
|
+
|
151
|
+
/*
|
152
|
+
* Hover
|
153
|
+
*/
|
154
|
+
|
155
|
+
.uk-table-hover > tr:hover,
|
156
|
+
.uk-table-hover tbody tr:hover {
|
157
|
+
background: @table-hover-row-background;
|
158
|
+
.hook-table-hover;
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
/* Size modifier
|
163
|
+
========================================================================== */
|
164
|
+
|
165
|
+
.uk-table-small th,
|
166
|
+
.uk-table-small td {
|
167
|
+
padding: @table-small-cell-padding-vertical @table-small-cell-padding-horizontal;
|
168
|
+
.hook-table-small;
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
/* Cell size modifier
|
173
|
+
========================================================================== */
|
174
|
+
|
175
|
+
.uk-table-shrink { width: 1px; }
|
176
|
+
.uk-table-expand { min-width: @table-expand-min-width; }
|
177
|
+
|
178
|
+
|
179
|
+
/* Cell link modifier
|
180
|
+
========================================================================== */
|
181
|
+
|
182
|
+
.uk-table-link { padding: 0 !important; }
|
183
|
+
|
184
|
+
.uk-table-link > a {
|
185
|
+
display: block;
|
186
|
+
padding: @table-cell-padding-vertical @table-cell-padding-horizontal;
|
187
|
+
}
|
188
|
+
|
189
|
+
.uk-table-small .uk-table-link > a { padding: @table-small-cell-padding-vertical @table-small-cell-padding-horizontal; }
|
190
|
+
|
191
|
+
|
192
|
+
// Hooks
|
193
|
+
// ========================================================================
|
194
|
+
|
195
|
+
.hook-table-misc;
|
196
|
+
|
197
|
+
.hook-table() {}
|
198
|
+
.hook-table-header-cell() {}
|
199
|
+
.hook-table-cell() {}
|
200
|
+
.hook-table-footer() {}
|
201
|
+
.hook-table-caption() {}
|
202
|
+
.hook-table-row-active() {}
|
203
|
+
.hook-table-striped() {}
|
204
|
+
.hook-table-small() {}
|
205
|
+
.hook-table-hover() {}
|
206
|
+
.hook-table-small() {}
|
207
|
+
.hook-table-misc() {}
|