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,42 @@
|
|
1
|
+
//
|
2
|
+
// Component: Breadcrumb
|
3
|
+
//
|
4
|
+
// ========================================================================
|
5
|
+
|
6
|
+
|
7
|
+
// Variables
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
|
11
|
+
// Component
|
12
|
+
// ========================================================================
|
13
|
+
|
14
|
+
.hook-breadcrumb() {}
|
15
|
+
|
16
|
+
|
17
|
+
// Items
|
18
|
+
// ========================================================================
|
19
|
+
|
20
|
+
.hook-breadcrumb-item() {}
|
21
|
+
|
22
|
+
.hook-breadcrumb-item-hover() {}
|
23
|
+
|
24
|
+
.hook-breadcrumb-item-active() {}
|
25
|
+
|
26
|
+
.hook-breadcrumb-divider() {}
|
27
|
+
|
28
|
+
|
29
|
+
// Miscellaneous
|
30
|
+
// ========================================================================
|
31
|
+
|
32
|
+
.hook-breadcrumb-misc() {}
|
33
|
+
|
34
|
+
|
35
|
+
// Inverse
|
36
|
+
// ========================================================================
|
37
|
+
|
38
|
+
.hook-inverse-breadcrumb-item() {}
|
39
|
+
.hook-inverse-breadcrumb-item-hover() {}
|
40
|
+
.hook-inverse-breadcrumb-item-active() {}
|
41
|
+
|
42
|
+
.hook-inverse-breadcrumb-divider() {}
|
@@ -0,0 +1,221 @@
|
|
1
|
+
//
|
2
|
+
// Component: Button
|
3
|
+
//
|
4
|
+
// ========================================================================
|
5
|
+
|
6
|
+
|
7
|
+
// Variables
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
@button-line-height: @global-control-height - (@button-border-width * 2);
|
11
|
+
@button-small-line-height: @global-control-small-height - (@button-border-width * 2);
|
12
|
+
@button-large-line-height: @global-control-large-height - (@button-border-width * 2);
|
13
|
+
|
14
|
+
@button-font-size: @global-small-font-size;
|
15
|
+
@button-large-font-size: @global-small-font-size;
|
16
|
+
|
17
|
+
@button-default-background: transparent;
|
18
|
+
@button-default-hover-background: transparent;
|
19
|
+
@button-default-active-background: transparent;
|
20
|
+
|
21
|
+
@button-disabled-background: transparent;
|
22
|
+
|
23
|
+
@button-text-color: @global-emphasis-color;
|
24
|
+
@button-text-hover-color: @global-emphasis-color;
|
25
|
+
|
26
|
+
//
|
27
|
+
// New
|
28
|
+
//
|
29
|
+
|
30
|
+
@button-text-transform: uppercase;
|
31
|
+
|
32
|
+
@button-border-width: @global-border-width;
|
33
|
+
|
34
|
+
@button-default-border: @global-border;
|
35
|
+
@button-default-hover-border: darken(@global-border, 20%);
|
36
|
+
@button-default-active-border: darken(@global-border, 30%);
|
37
|
+
|
38
|
+
@button-disabled-border: @global-border;
|
39
|
+
|
40
|
+
@button-text-border-width: @global-border-width;
|
41
|
+
@button-text-border: @button-text-hover-color;
|
42
|
+
|
43
|
+
|
44
|
+
// Component
|
45
|
+
// ========================================================================
|
46
|
+
|
47
|
+
.hook-button() {
|
48
|
+
text-transform: @button-text-transform;
|
49
|
+
-webkit-transition: 0.1s ease-in-out;
|
50
|
+
transition: 0.1s ease-in-out;
|
51
|
+
-webkit-transition-property: color, background-color, border-color;
|
52
|
+
transition-property: color, background-color, border-color;
|
53
|
+
}
|
54
|
+
|
55
|
+
.hook-button-hover() {}
|
56
|
+
|
57
|
+
.hook-button-focus() {}
|
58
|
+
|
59
|
+
.hook-button-active() {}
|
60
|
+
|
61
|
+
|
62
|
+
// Style modifiers
|
63
|
+
// ========================================================================
|
64
|
+
|
65
|
+
.hook-button-default() { border: @button-border-width solid @button-default-border; }
|
66
|
+
|
67
|
+
.hook-button-default-hover() { border-color: @button-default-hover-border; }
|
68
|
+
|
69
|
+
.hook-button-default-active() { border-color: @button-default-active-border; }
|
70
|
+
|
71
|
+
//
|
72
|
+
// Primary
|
73
|
+
//
|
74
|
+
|
75
|
+
.hook-button-primary() { border: @button-border-width solid transparent; }
|
76
|
+
|
77
|
+
.hook-button-primary-hover() {}
|
78
|
+
|
79
|
+
.hook-button-primary-active() {}
|
80
|
+
|
81
|
+
//
|
82
|
+
// Secondary
|
83
|
+
//
|
84
|
+
|
85
|
+
.hook-button-secondary() { border: @button-border-width solid transparent; }
|
86
|
+
|
87
|
+
.hook-button-secondary-hover() {}
|
88
|
+
|
89
|
+
.hook-button-secondary-active() {}
|
90
|
+
|
91
|
+
//
|
92
|
+
// Danger
|
93
|
+
//
|
94
|
+
|
95
|
+
.hook-button-danger() { border: @button-border-width solid transparent; }
|
96
|
+
|
97
|
+
.hook-button-danger-hover() {}
|
98
|
+
|
99
|
+
.hook-button-danger-active() {}
|
100
|
+
|
101
|
+
|
102
|
+
// Disabled
|
103
|
+
// ========================================================================
|
104
|
+
|
105
|
+
.hook-button-disabled() { border-color: @button-disabled-border; }
|
106
|
+
|
107
|
+
|
108
|
+
// Size modifiers
|
109
|
+
// ========================================================================
|
110
|
+
|
111
|
+
.hook-button-small() {}
|
112
|
+
|
113
|
+
.hook-button-large() {}
|
114
|
+
|
115
|
+
|
116
|
+
// Text modifier
|
117
|
+
// ========================================================================
|
118
|
+
|
119
|
+
.hook-button-text() {
|
120
|
+
|
121
|
+
position: relative;
|
122
|
+
|
123
|
+
&::before {
|
124
|
+
content: "";
|
125
|
+
position: absolute;
|
126
|
+
bottom: 0;
|
127
|
+
left: 0;
|
128
|
+
right: 100%;
|
129
|
+
border-bottom: @button-text-border-width solid @button-text-border;
|
130
|
+
-webkit-transition: right 0.3s ease-out;
|
131
|
+
transition: right 0.3s ease-out;
|
132
|
+
}
|
133
|
+
|
134
|
+
}
|
135
|
+
|
136
|
+
.hook-button-text-hover() {
|
137
|
+
|
138
|
+
&::before { right: 0; }
|
139
|
+
|
140
|
+
}
|
141
|
+
|
142
|
+
.hook-button-text-disabled() {
|
143
|
+
|
144
|
+
&::before { display: none; }
|
145
|
+
|
146
|
+
}
|
147
|
+
|
148
|
+
|
149
|
+
// Link modifier
|
150
|
+
// ========================================================================
|
151
|
+
|
152
|
+
.hook-button-link() {}
|
153
|
+
|
154
|
+
|
155
|
+
// Miscellaneous
|
156
|
+
// ========================================================================
|
157
|
+
|
158
|
+
.hook-button-misc() {
|
159
|
+
|
160
|
+
/* Group
|
161
|
+
========================================================================== */
|
162
|
+
|
163
|
+
/*
|
164
|
+
* Collapse border
|
165
|
+
*/
|
166
|
+
|
167
|
+
.uk-button-group > .uk-button:nth-child(n+2),
|
168
|
+
.uk-button-group > div:nth-child(n+2) .uk-button { margin-left: -@button-border-width; }
|
169
|
+
|
170
|
+
/*
|
171
|
+
* Create position context to superimpose the successor elements border
|
172
|
+
* Known issue: If you use an `a` element as button and an icon inside,
|
173
|
+
* the active state will not work if you click the icon inside the button
|
174
|
+
* Workaround: Just use a `button` or `input` element as button
|
175
|
+
*/
|
176
|
+
|
177
|
+
.uk-button-group .uk-button:hover,
|
178
|
+
.uk-button-group .uk-button:focus,
|
179
|
+
.uk-button-group .uk-button:active,
|
180
|
+
.uk-button-group .uk-button.uk-active {
|
181
|
+
position: relative;
|
182
|
+
z-index: 1;
|
183
|
+
}
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
// Inverse
|
189
|
+
// ========================================================================
|
190
|
+
|
191
|
+
@inverse-button-default-background: transparent;
|
192
|
+
@inverse-button-default-color: @inverse-global-emphasis-color;
|
193
|
+
@inverse-button-default-hover-background: transparent;
|
194
|
+
@inverse-button-default-hover-color: @inverse-global-emphasis-color;
|
195
|
+
@inverse-button-default-active-background: transparent;
|
196
|
+
@inverse-button-default-active-color: @inverse-global-emphasis-color;
|
197
|
+
|
198
|
+
@inverse-button-text-color: @inverse-global-emphasis-color;
|
199
|
+
@inverse-button-text-hover-color: @inverse-global-emphasis-color;
|
200
|
+
|
201
|
+
//
|
202
|
+
// Hooks
|
203
|
+
//
|
204
|
+
|
205
|
+
.hook-inverse-button-default() { border-color: @inverse-global-color; }
|
206
|
+
.hook-inverse-button-default-hover() { border-color: @inverse-global-emphasis-color; }
|
207
|
+
.hook-inverse-button-default-active() { border-color: @inverse-global-emphasis-color; }
|
208
|
+
|
209
|
+
.hook-inverse-button-primary() {}
|
210
|
+
.hook-inverse-button-primary-hover() {}
|
211
|
+
.hook-inverse-button-primary-active() {}
|
212
|
+
|
213
|
+
.hook-inverse-button-secondary() {}
|
214
|
+
.hook-inverse-button-secondary-hover() {}
|
215
|
+
.hook-inverse-button-secondary-active() {}
|
216
|
+
|
217
|
+
.hook-inverse-button-text() {
|
218
|
+
&::before { border-bottom-color: @inverse-global-emphasis-color; }
|
219
|
+
}
|
220
|
+
.hook-inverse-button-text-hover() {}
|
221
|
+
.hook-inverse-button-text-disabled() {}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
//
|
2
|
+
// Component: Card
|
3
|
+
//
|
4
|
+
// ========================================================================
|
5
|
+
|
6
|
+
|
7
|
+
// Variables
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
@card-hover-background: @global-background;
|
11
|
+
|
12
|
+
@card-default-background: @global-background;
|
13
|
+
@card-default-hover-background: @card-default-background;
|
14
|
+
|
15
|
+
@card-primary-hover-background: @card-primary-background;
|
16
|
+
|
17
|
+
@card-secondary-hover-background: @card-secondary-background;
|
18
|
+
|
19
|
+
//
|
20
|
+
// New
|
21
|
+
//
|
22
|
+
|
23
|
+
@card-hover-box-shadow: @global-large-box-shadow;
|
24
|
+
|
25
|
+
@card-default-box-shadow: @global-medium-box-shadow;
|
26
|
+
@card-default-hover-box-shadow: @global-large-box-shadow;
|
27
|
+
|
28
|
+
@card-default-header-border-width: @global-border-width;
|
29
|
+
@card-default-header-border: @global-border;
|
30
|
+
|
31
|
+
@card-default-footer-border-width: @global-border-width;
|
32
|
+
@card-default-footer-border: @global-border;
|
33
|
+
|
34
|
+
@card-primary-box-shadow: @global-medium-box-shadow;
|
35
|
+
@card-primary-hover-box-shadow: @global-large-box-shadow;
|
36
|
+
|
37
|
+
@card-secondary-box-shadow: @global-medium-box-shadow;
|
38
|
+
@card-secondary-hover-box-shadow: @global-large-box-shadow;
|
39
|
+
|
40
|
+
|
41
|
+
// Component
|
42
|
+
// ========================================================================
|
43
|
+
|
44
|
+
.hook-card() {
|
45
|
+
-webkit-transition: box-shadow 0.1s ease-in-out;
|
46
|
+
transition: box-shadow 0.1s ease-in-out;
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
// Sections
|
51
|
+
// ========================================================================
|
52
|
+
|
53
|
+
.hook-card-body() {}
|
54
|
+
|
55
|
+
.hook-card-header() {}
|
56
|
+
|
57
|
+
.hook-card-footer() {}
|
58
|
+
|
59
|
+
|
60
|
+
// Media
|
61
|
+
// ========================================================================
|
62
|
+
|
63
|
+
.hook-card-media() {}
|
64
|
+
|
65
|
+
.hook-card-media-top() {}
|
66
|
+
|
67
|
+
.hook-card-media-bottom() {}
|
68
|
+
|
69
|
+
.hook-card-media-left() {}
|
70
|
+
|
71
|
+
.hook-card-media-right() {}
|
72
|
+
|
73
|
+
|
74
|
+
// Title
|
75
|
+
// ========================================================================
|
76
|
+
|
77
|
+
.hook-card-title() {}
|
78
|
+
|
79
|
+
|
80
|
+
// Badge
|
81
|
+
// ========================================================================
|
82
|
+
|
83
|
+
.hook-card-badge() {}
|
84
|
+
|
85
|
+
|
86
|
+
// Hover modifier
|
87
|
+
// ========================================================================
|
88
|
+
|
89
|
+
.hook-card-hover() { box-shadow: @card-hover-box-shadow; }
|
90
|
+
|
91
|
+
|
92
|
+
// Style modifiers
|
93
|
+
// ========================================================================
|
94
|
+
|
95
|
+
.hook-card-default() { box-shadow: @card-default-box-shadow; }
|
96
|
+
|
97
|
+
.hook-card-default-title() {}
|
98
|
+
|
99
|
+
.hook-card-default-hover() { box-shadow: @card-default-hover-box-shadow; }
|
100
|
+
|
101
|
+
.hook-card-default-header() { border-bottom: @card-default-header-border-width solid @card-default-header-border; }
|
102
|
+
|
103
|
+
.hook-card-default-footer() { border-top: @card-default-footer-border-width solid @card-default-footer-border; }
|
104
|
+
|
105
|
+
//
|
106
|
+
// Primary
|
107
|
+
//
|
108
|
+
|
109
|
+
.hook-card-primary() { box-shadow: @card-primary-box-shadow; }
|
110
|
+
|
111
|
+
.hook-card-primary-title() {}
|
112
|
+
|
113
|
+
.hook-card-primary-hover() { box-shadow: @card-primary-hover-box-shadow; }
|
114
|
+
|
115
|
+
//
|
116
|
+
// Secondary
|
117
|
+
//
|
118
|
+
|
119
|
+
.hook-card-secondary() { box-shadow: @card-secondary-box-shadow; }
|
120
|
+
|
121
|
+
.hook-card-secondary-title() {}
|
122
|
+
|
123
|
+
.hook-card-secondary-hover() { box-shadow: @card-secondary-hover-box-shadow; }
|
124
|
+
|
125
|
+
|
126
|
+
// Miscellaneous
|
127
|
+
// ========================================================================
|
128
|
+
|
129
|
+
.hook-card-misc() {
|
130
|
+
|
131
|
+
/*
|
132
|
+
* Default
|
133
|
+
*/
|
134
|
+
|
135
|
+
.uk-card-body .uk-nav-default { margin: (-@card-body-padding-vertical + 15px) -@card-body-padding-horizontal; }
|
136
|
+
.uk-card-title + .uk-nav-default { margin-top: 0; }
|
137
|
+
|
138
|
+
.uk-card-body .uk-nav-default > li > a,
|
139
|
+
.uk-card-body .uk-nav-default .uk-nav-header,
|
140
|
+
.uk-card-body .uk-nav-default .uk-nav-divider {
|
141
|
+
padding-left: @card-body-padding-horizontal;
|
142
|
+
padding-right: @card-body-padding-horizontal;
|
143
|
+
}
|
144
|
+
|
145
|
+
.uk-card-body .uk-nav-default .uk-nav-sub { padding-left: @nav-sublist-deeper-padding-left + @card-body-padding-horizontal; }
|
146
|
+
|
147
|
+
|
148
|
+
/* Desktop and bigger */
|
149
|
+
@media (min-width: @breakpoint-large) {
|
150
|
+
|
151
|
+
.uk-card-body .uk-nav-default { margin: (-@card-body-padding-vertical-l + 15px) -@card-body-padding-horizontal-l; }
|
152
|
+
.uk-card-title + .uk-nav-default { margin-top: 0; }
|
153
|
+
|
154
|
+
.uk-card-body .uk-nav-default > li > a,
|
155
|
+
.uk-card-body .uk-nav-default .uk-nav-header,
|
156
|
+
.uk-card-body .uk-nav-default .uk-nav-divider {
|
157
|
+
padding-left: @card-body-padding-horizontal-l;
|
158
|
+
padding-right: @card-body-padding-horizontal-l;
|
159
|
+
}
|
160
|
+
|
161
|
+
.uk-card-body .uk-nav-default .uk-nav-sub { padding-left: @nav-sublist-deeper-padding-left + @card-body-padding-horizontal-l; }
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
/*
|
166
|
+
* Small
|
167
|
+
*/
|
168
|
+
|
169
|
+
.uk-card-small .uk-nav-default { margin: (-@card-small-body-padding-vertical + 15px) -@card-small-body-padding-horizontal; }
|
170
|
+
.uk-card-small .uk-card-title + .uk-nav-default { margin-top: 0; }
|
171
|
+
|
172
|
+
.uk-card-small .uk-nav-default > li > a,
|
173
|
+
.uk-card-small .uk-nav-default .uk-nav-header,
|
174
|
+
.uk-card-small .uk-nav-default .uk-nav-divider {
|
175
|
+
padding-left: @card-small-body-padding-horizontal;
|
176
|
+
padding-right: @card-small-body-padding-horizontal;
|
177
|
+
}
|
178
|
+
|
179
|
+
.uk-card-small .uk-nav-default .uk-nav-sub { padding-left: @nav-sublist-deeper-padding-left + @card-small-body-padding-horizontal; }
|
180
|
+
|
181
|
+
/*
|
182
|
+
* Large
|
183
|
+
*/
|
184
|
+
|
185
|
+
/* Desktop and bigger */
|
186
|
+
@media (min-width: @breakpoint-large) {
|
187
|
+
|
188
|
+
.uk-card-large .uk-nav-default { margin: (-@card-large-body-padding-vertical-l + 15px) -@card-large-body-padding-horizontal-l; }
|
189
|
+
.uk-card-large .uk-card-title + .uk-nav-default { margin-top: 0; }
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
}
|