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,113 @@
|
|
1
|
+
// Name: Article
|
2
|
+
// Description: Component to create articles
|
3
|
+
//
|
4
|
+
// Component: `uk-article`
|
5
|
+
//
|
6
|
+
// Sub-objects: `uk-article-title`
|
7
|
+
// `uk-article-meta`
|
8
|
+
//
|
9
|
+
// ========================================================================
|
10
|
+
|
11
|
+
|
12
|
+
// Variables
|
13
|
+
// ========================================================================
|
14
|
+
|
15
|
+
@article-margin-top: @global-large-margin;
|
16
|
+
|
17
|
+
@article-title-font-size: @global-xxlarge-font-size;
|
18
|
+
@article-title-line-height: 1.2;
|
19
|
+
|
20
|
+
@article-meta-font-size: @global-small-font-size;
|
21
|
+
@article-meta-line-height: 1.4;
|
22
|
+
@article-meta-color: @global-muted-color;
|
23
|
+
|
24
|
+
|
25
|
+
/* ========================================================================
|
26
|
+
Component: Article
|
27
|
+
========================================================================== */
|
28
|
+
|
29
|
+
.uk-article {
|
30
|
+
.hook-article;
|
31
|
+
}
|
32
|
+
|
33
|
+
/*
|
34
|
+
* Micro clearfix
|
35
|
+
*/
|
36
|
+
|
37
|
+
.uk-article::before,
|
38
|
+
.uk-article::after {
|
39
|
+
content: "";
|
40
|
+
display: table;
|
41
|
+
}
|
42
|
+
|
43
|
+
.uk-article::after { clear: both; }
|
44
|
+
|
45
|
+
/*
|
46
|
+
* Remove margin from the last-child
|
47
|
+
*/
|
48
|
+
|
49
|
+
.uk-article > :last-child { margin-bottom: 0; }
|
50
|
+
|
51
|
+
|
52
|
+
/* Adjacent sibling
|
53
|
+
========================================================================== */
|
54
|
+
|
55
|
+
.uk-article + .uk-article {
|
56
|
+
margin-top: @article-margin-top;
|
57
|
+
.hook-article-adjacent;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
/* Title
|
62
|
+
========================================================================== */
|
63
|
+
|
64
|
+
.uk-article-title {
|
65
|
+
font-size: @article-title-font-size;
|
66
|
+
line-height: @article-title-line-height;
|
67
|
+
.hook-article-title;
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
/* Meta
|
72
|
+
========================================================================== */
|
73
|
+
|
74
|
+
.uk-article-meta {
|
75
|
+
font-size: @article-meta-font-size;
|
76
|
+
line-height: @article-meta-line-height;
|
77
|
+
color: @article-meta-color;
|
78
|
+
.hook-article-meta;
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// Hooks
|
83
|
+
// ========================================================================
|
84
|
+
|
85
|
+
.hook-article-misc;
|
86
|
+
|
87
|
+
.hook-article() {}
|
88
|
+
.hook-article-adjacent() {}
|
89
|
+
.hook-article-title() {}
|
90
|
+
.hook-article-meta() {}
|
91
|
+
.hook-article-misc() {}
|
92
|
+
|
93
|
+
|
94
|
+
// Inverse
|
95
|
+
// ========================================================================
|
96
|
+
|
97
|
+
@inverse-article-meta-color: @inverse-global-muted-color;
|
98
|
+
|
99
|
+
.hook-inverse() {
|
100
|
+
|
101
|
+
.uk-article-title {
|
102
|
+
.hook-inverse-article-title;
|
103
|
+
}
|
104
|
+
|
105
|
+
.uk-article-meta {
|
106
|
+
color: @inverse-article-meta-color;
|
107
|
+
.hook-inverse-article-meta;
|
108
|
+
}
|
109
|
+
|
110
|
+
}
|
111
|
+
|
112
|
+
.hook-inverse-article-title() {}
|
113
|
+
.hook-inverse-article-meta() {}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
// Name: Background
|
2
|
+
// Description: Utilities for backgrounds
|
3
|
+
//
|
4
|
+
// Component: `uk-background-*`
|
5
|
+
//
|
6
|
+
// ========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
// Variables
|
10
|
+
// ========================================================================
|
11
|
+
|
12
|
+
@background-background: @global-background;
|
13
|
+
@background-muted-background: @global-muted-background;
|
14
|
+
@background-primary-background: @global-primary-background;
|
15
|
+
@background-secondary-background: @global-secondary-background;
|
16
|
+
|
17
|
+
|
18
|
+
/* ========================================================================
|
19
|
+
Component: Background
|
20
|
+
========================================================================== */
|
21
|
+
|
22
|
+
|
23
|
+
/* Color
|
24
|
+
========================================================================== */
|
25
|
+
|
26
|
+
.uk-background { background-color: @background-background; }
|
27
|
+
.uk-background-muted { background-color: @background-muted-background; }
|
28
|
+
.uk-background-primary { background-color: @background-primary-background; }
|
29
|
+
.uk-background-secondary { background-color: @background-secondary-background; }
|
30
|
+
|
31
|
+
|
32
|
+
/* Size
|
33
|
+
========================================================================== */
|
34
|
+
|
35
|
+
.uk-background-cover,
|
36
|
+
.uk-background-contain {
|
37
|
+
background-position: 50% 50%;
|
38
|
+
background-repeat: no-repeat;
|
39
|
+
}
|
40
|
+
|
41
|
+
.uk-background-cover { background-size: cover; }
|
42
|
+
.uk-background-contain { background-size: contain; }
|
43
|
+
|
44
|
+
|
45
|
+
/* Position
|
46
|
+
========================================================================== */
|
47
|
+
|
48
|
+
.uk-background-top-left { background-position: 0 0; }
|
49
|
+
.uk-background-top-center { background-position: 50% 0; }
|
50
|
+
.uk-background-top-right { background-position: 100% 0; }
|
51
|
+
.uk-background-center-left { background-position: 0 50%; }
|
52
|
+
.uk-background-center-center { background-position: 50% 50%; }
|
53
|
+
.uk-background-center-right { background-position: 100% 50%; }
|
54
|
+
.uk-background-bottom-left { background-position: 0 100%; }
|
55
|
+
.uk-background-bottom-center { background-position: 50% 100%; }
|
56
|
+
.uk-background-bottom-right { background-position: 100% 100%; }
|
57
|
+
|
58
|
+
|
59
|
+
/* Repeat
|
60
|
+
========================================================================== */
|
61
|
+
|
62
|
+
.uk-background-norepeat { background-repeat: no-repeat; }
|
63
|
+
|
64
|
+
|
65
|
+
/* Attachment
|
66
|
+
========================================================================== */
|
67
|
+
|
68
|
+
.uk-background-fixed { background-attachment: fixed; }
|
69
|
+
|
70
|
+
/*
|
71
|
+
* Exclude touch devices because `fixed` doesn't work on iOS and Android
|
72
|
+
*/
|
73
|
+
|
74
|
+
@media (pointer: coarse) {
|
75
|
+
.uk-background-fixed { background-attachment: scroll; }
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
/* Image
|
80
|
+
========================================================================== */
|
81
|
+
|
82
|
+
/* Phone portrait and smaller */
|
83
|
+
@media (max-width: @breakpoint-xsmall-max) {
|
84
|
+
|
85
|
+
.uk-background-image\@s { background-image: none !important; }
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
/* Phone landscape and smaller */
|
90
|
+
@media (max-width: @breakpoint-small-max) {
|
91
|
+
|
92
|
+
.uk-background-image\@m { background-image: none !important; }
|
93
|
+
|
94
|
+
}
|
95
|
+
|
96
|
+
/* Tablet landscape and smaller */
|
97
|
+
@media (max-width: @breakpoint-medium-max) {
|
98
|
+
|
99
|
+
.uk-background-image\@l { background-image: none !important; }
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
/* Desktop and smaller */
|
104
|
+
@media (max-width: @breakpoint-large-max) {
|
105
|
+
|
106
|
+
.uk-background-image\@xl {background-image: none !important; }
|
107
|
+
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
/* Blend modes
|
112
|
+
========================================================================== */
|
113
|
+
|
114
|
+
.uk-background-blend-multiply { background-blend-mode: multiply; }
|
115
|
+
.uk-background-blend-screen { background-blend-mode: screen; }
|
116
|
+
.uk-background-blend-overlay { background-blend-mode: overlay; }
|
117
|
+
.uk-background-blend-darken { background-blend-mode: darken; }
|
118
|
+
.uk-background-blend-lighten { background-blend-mode: lighten; }
|
119
|
+
.uk-background-blend-color-dodge { background-blend-mode: color-dodge; }
|
120
|
+
.uk-background-blend-color-burn { background-blend-mode: color-burn; }
|
121
|
+
.uk-background-blend-hard-light { background-blend-mode: hard-light; }
|
122
|
+
.uk-background-blend-soft-light { background-blend-mode: soft-light; }
|
123
|
+
.uk-background-blend-difference { background-blend-mode: difference; }
|
124
|
+
.uk-background-blend-exclusion { background-blend-mode: exclusion; }
|
125
|
+
.uk-background-blend-hue { background-blend-mode: hue; }
|
126
|
+
.uk-background-blend-saturation { background-blend-mode: saturation; }
|
127
|
+
.uk-background-blend-color { background-blend-mode: color; }
|
128
|
+
.uk-background-blend-luminosity { background-blend-mode: luminosity; }
|
129
|
+
|
130
|
+
|
131
|
+
// Hooks
|
132
|
+
// ========================================================================
|
133
|
+
|
134
|
+
.hook-background-misc;
|
135
|
+
|
136
|
+
.hook-background-misc() {}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
// Name: Badge
|
2
|
+
// Description: Component to create notification badges
|
3
|
+
|
4
|
+
// Component: `uk-badge`
|
5
|
+
//
|
6
|
+
// ========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
// Variables
|
10
|
+
// ========================================================================
|
11
|
+
|
12
|
+
@badge-size: 22px;
|
13
|
+
@badge-padding-vertical: 0;
|
14
|
+
@badge-padding-horizontal: 5px;
|
15
|
+
@badge-border-radius: 500px;
|
16
|
+
@badge-background: @global-primary-background;
|
17
|
+
@badge-color: @global-inverse-color;
|
18
|
+
@badge-font-size: @global-small-font-size;
|
19
|
+
|
20
|
+
@badge-hover-color: @global-inverse-color;
|
21
|
+
|
22
|
+
|
23
|
+
/* ========================================================================
|
24
|
+
Component: Badge
|
25
|
+
========================================================================== */
|
26
|
+
|
27
|
+
/*
|
28
|
+
* 1. Style
|
29
|
+
* 2. Center child vertically and horizontally
|
30
|
+
*/
|
31
|
+
|
32
|
+
.uk-badge {
|
33
|
+
box-sizing: border-box;
|
34
|
+
min-width: @badge-size;
|
35
|
+
height: @badge-size;
|
36
|
+
line-height: @badge-size;
|
37
|
+
padding: @badge-padding-vertical @badge-padding-horizontal;
|
38
|
+
border-radius: @badge-border-radius;
|
39
|
+
vertical-align: middle;
|
40
|
+
/* 1 */
|
41
|
+
background: @badge-background;
|
42
|
+
color: @badge-color;
|
43
|
+
font-size: @badge-font-size;
|
44
|
+
/* 2 */
|
45
|
+
display: -ms-inline-flexbox;
|
46
|
+
display: -webkit-inline-flex;
|
47
|
+
display: inline-flex;
|
48
|
+
-ms-flex-pack: center;
|
49
|
+
-webkit-justify-content: center;
|
50
|
+
justify-content: center;
|
51
|
+
-ms-flex-align: center;
|
52
|
+
-webkit-align-items: center;
|
53
|
+
align-items: center;
|
54
|
+
.hook-badge;
|
55
|
+
}
|
56
|
+
|
57
|
+
/*
|
58
|
+
* Required for `a`
|
59
|
+
*/
|
60
|
+
|
61
|
+
.uk-badge:hover,
|
62
|
+
.uk-badge:focus {
|
63
|
+
color: @badge-hover-color;
|
64
|
+
text-decoration: none;
|
65
|
+
outline: none;
|
66
|
+
.hook-badge-hover;
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
// Hooks
|
71
|
+
// ========================================================================
|
72
|
+
|
73
|
+
.hook-badge-misc;
|
74
|
+
|
75
|
+
.hook-badge() {}
|
76
|
+
.hook-badge-hover() {}
|
77
|
+
.hook-badge-misc() {}
|
78
|
+
|
79
|
+
|
80
|
+
// Inverse
|
81
|
+
// ========================================================================
|
82
|
+
|
83
|
+
@inverse-badge-background: @inverse-global-primary-background;
|
84
|
+
@inverse-badge-color: @inverse-global-inverse-color;
|
85
|
+
@inverse-badge-hover-color: @inverse-global-inverse-color;
|
86
|
+
|
87
|
+
.hook-inverse() {
|
88
|
+
|
89
|
+
.uk-badge {
|
90
|
+
background-color: @inverse-badge-background;
|
91
|
+
color: @inverse-badge-color;
|
92
|
+
.hook-inverse-badge;
|
93
|
+
}
|
94
|
+
|
95
|
+
.uk-badge:hover,
|
96
|
+
.uk-badge:focus {
|
97
|
+
color: @inverse-badge-hover-color;
|
98
|
+
.hook-inverse-badge-hover;
|
99
|
+
}
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
.hook-inverse-badge() {}
|
104
|
+
.hook-inverse-badge-hover() {}
|
@@ -0,0 +1,737 @@
|
|
1
|
+
// Name: Base
|
2
|
+
// Description: Default values for HTML elements
|
3
|
+
//
|
4
|
+
// Component: `uk-link`
|
5
|
+
// `uk-h1`, `uk-h2`, `uk-h3`, `uk-h4`, `uk-h5`, `uk-h6`
|
6
|
+
// `uk-hr`
|
7
|
+
//
|
8
|
+
// ========================================================================
|
9
|
+
|
10
|
+
|
11
|
+
// Variables
|
12
|
+
// ========================================================================
|
13
|
+
|
14
|
+
@base-body-background: @global-background;
|
15
|
+
@base-body-font-family: @global-font-family;
|
16
|
+
@base-body-font-weight: normal;
|
17
|
+
@base-body-font-size: @global-font-size;
|
18
|
+
@base-body-line-height: @global-line-height;
|
19
|
+
@base-body-color: @global-color;
|
20
|
+
|
21
|
+
@base-link-color: @global-link-color;
|
22
|
+
@base-link-text-decoration: none;
|
23
|
+
@base-link-hover-color: @global-link-hover-color;
|
24
|
+
@base-link-hover-text-decoration: underline;
|
25
|
+
|
26
|
+
@base-code-font-size: @global-small-font-size;
|
27
|
+
@base-code-font-family: Consolas, monaco, monospace;
|
28
|
+
@base-code-color: @global-danger-background;
|
29
|
+
@base-em-color: @global-danger-background;
|
30
|
+
@base-ins-background: #ffd;
|
31
|
+
@base-ins-color: @global-color;
|
32
|
+
@base-mark-background: #ffd;
|
33
|
+
@base-mark-color: @global-color;
|
34
|
+
@base-quote-font-style: italic;
|
35
|
+
@base-small-font-size: 80%;
|
36
|
+
|
37
|
+
@base-margin-vertical: @global-margin;
|
38
|
+
|
39
|
+
@base-heading-font-family: @global-font-family;
|
40
|
+
@base-heading-font-weight: normal;
|
41
|
+
@base-heading-color: @global-emphasis-color;
|
42
|
+
@base-heading-text-transform: none;
|
43
|
+
@base-heading-margin-top: @global-medium-margin;
|
44
|
+
@base-h1-font-size: @global-xxlarge-font-size;
|
45
|
+
@base-h1-line-height: 1.2;
|
46
|
+
@base-h2-font-size: @global-xlarge-font-size;
|
47
|
+
@base-h2-line-height: 1.3;
|
48
|
+
@base-h3-font-size: @global-large-font-size;
|
49
|
+
@base-h3-line-height: 1.4;
|
50
|
+
@base-h4-font-size: @global-medium-font-size;
|
51
|
+
@base-h4-line-height: 1.4;
|
52
|
+
@base-h5-font-size: @global-font-size;
|
53
|
+
@base-h5-line-height: 1.4;
|
54
|
+
@base-h6-font-size: @global-small-font-size;
|
55
|
+
@base-h6-line-height: 1.4;
|
56
|
+
|
57
|
+
@base-list-padding-left: 30px;
|
58
|
+
|
59
|
+
@base-hr-margin-vertical: @global-margin;
|
60
|
+
@base-hr-border-width: @global-border-width;
|
61
|
+
@base-hr-border: @global-border;
|
62
|
+
|
63
|
+
@base-blockquote-font-size: @global-medium-font-size;
|
64
|
+
@base-blockquote-line-height: 1.5;
|
65
|
+
@base-blockquote-font-style: italic;
|
66
|
+
@base-blockquote-margin-vertical: @global-margin;
|
67
|
+
@base-blockquote-footer-margin-top: @global-small-margin;
|
68
|
+
@base-blockquote-footer-font-size: @global-small-font-size;
|
69
|
+
@base-blockquote-footer-line-height: 1.5;
|
70
|
+
|
71
|
+
@base-pre-font-size: @global-small-font-size;
|
72
|
+
@base-pre-line-height: 1.5;
|
73
|
+
@base-pre-font-family: @base-code-font-family;
|
74
|
+
@base-pre-color: @global-color;
|
75
|
+
|
76
|
+
@base-selection-background: #39f;
|
77
|
+
@base-selection-color: @global-inverse-color;
|
78
|
+
|
79
|
+
|
80
|
+
/* ========================================================================
|
81
|
+
Component: Base
|
82
|
+
========================================================================== */
|
83
|
+
|
84
|
+
/*
|
85
|
+
* 1. Set `font-size` to support `rem` units
|
86
|
+
* Not using `font` property because a leading hyphen (e.g. -apple-system) causes the font to break in IE11 and Edge
|
87
|
+
* 2. Prevent adjustments of font size after orientation changes in IE and iOS.
|
88
|
+
* 3. Style
|
89
|
+
*/
|
90
|
+
|
91
|
+
html {
|
92
|
+
/* 1 */
|
93
|
+
font-family: @base-body-font-family;
|
94
|
+
font-size: @base-body-font-size;
|
95
|
+
font-weight: @base-body-font-weight;
|
96
|
+
line-height: @base-body-line-height;
|
97
|
+
/* 2 */
|
98
|
+
-webkit-text-size-adjust: 100%;
|
99
|
+
-ms-text-size-adjust: 100%;
|
100
|
+
/* 3 */
|
101
|
+
background: @base-body-background;
|
102
|
+
color: @base-body-color;
|
103
|
+
.hook-base-body;
|
104
|
+
}
|
105
|
+
|
106
|
+
/*
|
107
|
+
* Removes default margin.
|
108
|
+
*/
|
109
|
+
|
110
|
+
body { margin: 0; }
|
111
|
+
|
112
|
+
|
113
|
+
/* Links
|
114
|
+
========================================================================== */
|
115
|
+
|
116
|
+
/*
|
117
|
+
* 1. Remove the gray background on active links in IE 10.
|
118
|
+
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
119
|
+
*/
|
120
|
+
|
121
|
+
a {
|
122
|
+
/* 1 */
|
123
|
+
background-color: transparent;
|
124
|
+
/* 2 */
|
125
|
+
-webkit-text-decoration-skip: objects;
|
126
|
+
}
|
127
|
+
|
128
|
+
/*
|
129
|
+
* Remove the outline on focused links when they are also active or hovered
|
130
|
+
*/
|
131
|
+
|
132
|
+
a:active,
|
133
|
+
a:hover { outline: 0; }
|
134
|
+
|
135
|
+
/*
|
136
|
+
* Style
|
137
|
+
*/
|
138
|
+
|
139
|
+
a,
|
140
|
+
.uk-link {
|
141
|
+
color: @base-link-color;
|
142
|
+
text-decoration: @base-link-text-decoration;
|
143
|
+
cursor: pointer;
|
144
|
+
.hook-base-link;
|
145
|
+
}
|
146
|
+
|
147
|
+
a:hover,
|
148
|
+
.uk-link:hover {
|
149
|
+
color: @base-link-hover-color;
|
150
|
+
text-decoration: @base-link-hover-text-decoration;
|
151
|
+
.hook-base-link-hover;
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
/* Text-level semantics
|
156
|
+
========================================================================== */
|
157
|
+
|
158
|
+
/*
|
159
|
+
* 1. Remove the bottom border in Firefox 39-.
|
160
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
161
|
+
*/
|
162
|
+
|
163
|
+
abbr[title] {
|
164
|
+
border-bottom: none; /* 1 */
|
165
|
+
text-decoration: underline; /* 2 */
|
166
|
+
text-decoration: underline dotted; /* 2 */
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
/*
|
171
|
+
* 1. Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
172
|
+
* 2. Add the correct font weight in Chrome, Edge, and Safari.
|
173
|
+
*/
|
174
|
+
|
175
|
+
/* 1 */
|
176
|
+
b,
|
177
|
+
strong { font-weight: inherit; }
|
178
|
+
|
179
|
+
/* 2 */
|
180
|
+
b,
|
181
|
+
strong { font-weight: bolder; }
|
182
|
+
|
183
|
+
/*
|
184
|
+
* 1. Correct the odd `em` font sizing in all browsers.
|
185
|
+
* 2. Consolas has a better baseline in running text compared to `Courier`
|
186
|
+
* 3. Style
|
187
|
+
*/
|
188
|
+
|
189
|
+
:not(pre) > code,
|
190
|
+
:not(pre) > kbd,
|
191
|
+
:not(pre) > samp {
|
192
|
+
/* 1 */
|
193
|
+
font-size: @base-code-font-size;
|
194
|
+
/* 2 */
|
195
|
+
font-family: @base-code-font-family;
|
196
|
+
/* 3 */
|
197
|
+
color: @base-code-color;
|
198
|
+
white-space: nowrap;
|
199
|
+
.hook-base-code;
|
200
|
+
}
|
201
|
+
|
202
|
+
/*
|
203
|
+
* Emphasize
|
204
|
+
*/
|
205
|
+
|
206
|
+
em { color: @base-em-color; }
|
207
|
+
|
208
|
+
/*
|
209
|
+
* Insert
|
210
|
+
*/
|
211
|
+
|
212
|
+
ins {
|
213
|
+
background: @base-ins-background;
|
214
|
+
color: @base-ins-color;
|
215
|
+
text-decoration: none;
|
216
|
+
}
|
217
|
+
|
218
|
+
/*
|
219
|
+
* Mark
|
220
|
+
*/
|
221
|
+
|
222
|
+
mark {
|
223
|
+
background: @base-mark-background;
|
224
|
+
color: @base-mark-color;
|
225
|
+
}
|
226
|
+
|
227
|
+
/*
|
228
|
+
* Quote
|
229
|
+
*/
|
230
|
+
|
231
|
+
q { font-style: @base-quote-font-style; }
|
232
|
+
|
233
|
+
/*
|
234
|
+
* Add the correct font size in all browsers.
|
235
|
+
*/
|
236
|
+
|
237
|
+
small { font-size: @base-small-font-size; }
|
238
|
+
|
239
|
+
/*
|
240
|
+
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
241
|
+
*/
|
242
|
+
|
243
|
+
sub,
|
244
|
+
sup {
|
245
|
+
font-size: 75%;
|
246
|
+
line-height: 0;
|
247
|
+
position: relative;
|
248
|
+
vertical-align: baseline;
|
249
|
+
}
|
250
|
+
|
251
|
+
sup { top: -0.5em; }
|
252
|
+
sub { bottom: -0.25em; }
|
253
|
+
|
254
|
+
|
255
|
+
/* Embedded content
|
256
|
+
========================================================================== */
|
257
|
+
|
258
|
+
/*
|
259
|
+
* Remove the gap between embedded content and the bottom of their containers.
|
260
|
+
*/
|
261
|
+
|
262
|
+
audio,
|
263
|
+
canvas,
|
264
|
+
iframe,
|
265
|
+
img,
|
266
|
+
svg,
|
267
|
+
video { vertical-align: middle; }
|
268
|
+
|
269
|
+
/*
|
270
|
+
* Responsiveness
|
271
|
+
* 1. Set a maximum width
|
272
|
+
* 2. Auto scale the height. Only needed if `height` attribute is present
|
273
|
+
* 2. Corrects `max-width` behavior if padding and border are used
|
274
|
+
*/
|
275
|
+
|
276
|
+
audio,
|
277
|
+
canvas,
|
278
|
+
img,
|
279
|
+
video {
|
280
|
+
/* 1 */
|
281
|
+
max-width: 100%;
|
282
|
+
/* 2 */
|
283
|
+
height: auto;
|
284
|
+
/* 3 */
|
285
|
+
box-sizing: border-box;
|
286
|
+
}
|
287
|
+
|
288
|
+
/*
|
289
|
+
* Remove the border on images inside links in IE 10-.
|
290
|
+
*/
|
291
|
+
|
292
|
+
img { border-style: none; }
|
293
|
+
|
294
|
+
/*
|
295
|
+
* Hide the overflow in IE.
|
296
|
+
*/
|
297
|
+
|
298
|
+
svg:not(:root) { overflow: hidden; }
|
299
|
+
|
300
|
+
|
301
|
+
/* Block elements
|
302
|
+
========================================================================== */
|
303
|
+
|
304
|
+
/*
|
305
|
+
* Margins
|
306
|
+
*/
|
307
|
+
|
308
|
+
p,
|
309
|
+
ul,
|
310
|
+
ol,
|
311
|
+
dl,
|
312
|
+
pre,
|
313
|
+
address,
|
314
|
+
fieldset,
|
315
|
+
figure { margin: 0 0 @base-margin-vertical 0; }
|
316
|
+
|
317
|
+
/* Add margin if adjacent element */
|
318
|
+
* + p,
|
319
|
+
* + ul,
|
320
|
+
* + ol,
|
321
|
+
* + dl,
|
322
|
+
* + pre,
|
323
|
+
* + address,
|
324
|
+
* + fieldset,
|
325
|
+
* + figure { margin-top: @base-margin-vertical; }
|
326
|
+
|
327
|
+
|
328
|
+
/* Headings
|
329
|
+
========================================================================== */
|
330
|
+
|
331
|
+
h1, .uk-h1,
|
332
|
+
h2, .uk-h2,
|
333
|
+
h3, .uk-h3,
|
334
|
+
h4, .uk-h4,
|
335
|
+
h5, .uk-h5,
|
336
|
+
h6, .uk-h6 {
|
337
|
+
margin: 0 0 @base-margin-vertical 0;
|
338
|
+
font-family: @base-heading-font-family;
|
339
|
+
font-weight: @base-heading-font-weight;
|
340
|
+
color: @base-heading-color;
|
341
|
+
text-transform: @base-heading-text-transform;
|
342
|
+
.hook-base-heading;
|
343
|
+
}
|
344
|
+
|
345
|
+
/* Add margin if adjacent element */
|
346
|
+
* + h1, * + .uk-h1,
|
347
|
+
* + h2, * + .uk-h2,
|
348
|
+
* + h3, * + .uk-h3,
|
349
|
+
* + h4, * + .uk-h4,
|
350
|
+
* + h5, * + .uk-h5,
|
351
|
+
* + h6, * + .uk-h6 { margin-top: @base-heading-margin-top; }
|
352
|
+
|
353
|
+
/*
|
354
|
+
* Sizes
|
355
|
+
*/
|
356
|
+
|
357
|
+
h1, .uk-h1 {
|
358
|
+
font-size: @base-h1-font-size;
|
359
|
+
line-height: @base-h1-line-height;
|
360
|
+
.hook-base-h1;
|
361
|
+
}
|
362
|
+
|
363
|
+
h2, .uk-h2 {
|
364
|
+
font-size: @base-h2-font-size;
|
365
|
+
line-height: @base-h2-line-height;
|
366
|
+
.hook-base-h2;
|
367
|
+
}
|
368
|
+
|
369
|
+
h3, .uk-h3 {
|
370
|
+
font-size: @base-h3-font-size;
|
371
|
+
line-height: @base-h3-line-height;
|
372
|
+
.hook-base-h3;
|
373
|
+
}
|
374
|
+
|
375
|
+
h4, .uk-h4 {
|
376
|
+
font-size: @base-h4-font-size;
|
377
|
+
line-height: @base-h4-line-height;
|
378
|
+
.hook-base-h4;
|
379
|
+
}
|
380
|
+
|
381
|
+
h5, .uk-h5 {
|
382
|
+
font-size: @base-h5-font-size;
|
383
|
+
line-height: @base-h5-line-height;
|
384
|
+
.hook-base-h5;
|
385
|
+
}
|
386
|
+
|
387
|
+
h6, .uk-h6 {
|
388
|
+
font-size: @base-h6-font-size;
|
389
|
+
line-height: @base-h6-line-height;
|
390
|
+
.hook-base-h6;
|
391
|
+
}
|
392
|
+
|
393
|
+
|
394
|
+
/* Lists
|
395
|
+
========================================================================== */
|
396
|
+
|
397
|
+
ul,
|
398
|
+
ol { padding-left: @base-list-padding-left; }
|
399
|
+
|
400
|
+
/*
|
401
|
+
* Reset margin for nested lists
|
402
|
+
*/
|
403
|
+
|
404
|
+
ul > li > ul,
|
405
|
+
ul > li > ol,
|
406
|
+
ol > li > ol,
|
407
|
+
ol > li > ul { margin: 0; }
|
408
|
+
|
409
|
+
|
410
|
+
/* Description lists
|
411
|
+
========================================================================== */
|
412
|
+
|
413
|
+
dt { font-weight: bold; }
|
414
|
+
dd { margin-left: 0; }
|
415
|
+
|
416
|
+
|
417
|
+
/* Horizontal rules
|
418
|
+
========================================================================== */
|
419
|
+
|
420
|
+
/*
|
421
|
+
* 1. Add the correct box sizing and height in Firefox.
|
422
|
+
* 2. Show the overflow in Edge and IE.
|
423
|
+
* 3. Style
|
424
|
+
*/
|
425
|
+
|
426
|
+
hr, .uk-hr {
|
427
|
+
/* 1 */
|
428
|
+
box-sizing: content-box;
|
429
|
+
height: 0;
|
430
|
+
/* 2 */
|
431
|
+
overflow: visible;
|
432
|
+
/* 3 */
|
433
|
+
margin: 0 0 @base-hr-margin-vertical 0;
|
434
|
+
border: 0;
|
435
|
+
border-top: @base-hr-border-width solid @base-hr-border;
|
436
|
+
.hook-base-hr;
|
437
|
+
}
|
438
|
+
|
439
|
+
/* Add margin if adjacent element */
|
440
|
+
* + hr,
|
441
|
+
* + .uk-hr { margin-top: @base-hr-margin-vertical }
|
442
|
+
|
443
|
+
|
444
|
+
/* Address
|
445
|
+
========================================================================== */
|
446
|
+
|
447
|
+
address { font-style: normal; }
|
448
|
+
|
449
|
+
|
450
|
+
/* Blockquotes
|
451
|
+
========================================================================== */
|
452
|
+
|
453
|
+
blockquote {
|
454
|
+
margin: 0 0 @base-blockquote-margin-vertical 0;
|
455
|
+
font-size: @base-blockquote-font-size;
|
456
|
+
line-height: @base-blockquote-line-height;
|
457
|
+
font-style: @base-blockquote-font-style;
|
458
|
+
.hook-base-blockquote;
|
459
|
+
}
|
460
|
+
|
461
|
+
/* Add margin if adjacent element */
|
462
|
+
* + blockquote { margin-top: @base-blockquote-margin-vertical; }
|
463
|
+
|
464
|
+
/*
|
465
|
+
* Content
|
466
|
+
*/
|
467
|
+
|
468
|
+
blockquote p:last-of-type { margin-bottom: 0; }
|
469
|
+
|
470
|
+
blockquote footer {
|
471
|
+
margin-top: @base-blockquote-footer-margin-top;
|
472
|
+
font-size: @base-blockquote-footer-font-size;
|
473
|
+
line-height: @base-blockquote-footer-line-height;
|
474
|
+
.hook-base-blockquote-footer;
|
475
|
+
}
|
476
|
+
|
477
|
+
|
478
|
+
/* Preformatted text
|
479
|
+
========================================================================== */
|
480
|
+
|
481
|
+
/*
|
482
|
+
* 1. Contain overflow in all browsers.
|
483
|
+
* 2. Override UA
|
484
|
+
*/
|
485
|
+
|
486
|
+
pre {
|
487
|
+
font: @base-pre-font-size e("/") @base-pre-line-height @base-pre-font-family;
|
488
|
+
color: @base-pre-color;
|
489
|
+
-moz-tab-size: 4;
|
490
|
+
tab-size: 4;
|
491
|
+
/* 1 */
|
492
|
+
overflow: auto;
|
493
|
+
.hook-base-pre;
|
494
|
+
}
|
495
|
+
|
496
|
+
pre code { font-family: @base-pre-font-family; }
|
497
|
+
|
498
|
+
|
499
|
+
/* Selection pseudo-element
|
500
|
+
========================================================================== */
|
501
|
+
|
502
|
+
::-moz-selection {
|
503
|
+
background: @base-selection-background;
|
504
|
+
color: @base-selection-color;
|
505
|
+
text-shadow: none;
|
506
|
+
}
|
507
|
+
|
508
|
+
::selection {
|
509
|
+
background: @base-selection-background;
|
510
|
+
color: @base-selection-color;
|
511
|
+
text-shadow: none;
|
512
|
+
}
|
513
|
+
|
514
|
+
|
515
|
+
/* HTML5 elements
|
516
|
+
========================================================================== */
|
517
|
+
|
518
|
+
/*
|
519
|
+
* Add the correct display in IE 9-.
|
520
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
521
|
+
* 2. Add the correct display in IE.
|
522
|
+
*/
|
523
|
+
|
524
|
+
article,
|
525
|
+
aside,
|
526
|
+
details, /* 1 */
|
527
|
+
figcaption,
|
528
|
+
figure,
|
529
|
+
footer,
|
530
|
+
header,
|
531
|
+
main, /* 2 */
|
532
|
+
nav,
|
533
|
+
section,
|
534
|
+
summary { /* 1 */
|
535
|
+
display: block;
|
536
|
+
}
|
537
|
+
|
538
|
+
/*
|
539
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
540
|
+
*/
|
541
|
+
|
542
|
+
progress { vertical-align: baseline; }
|
543
|
+
|
544
|
+
/*
|
545
|
+
* Add the correct display in IE 10-.
|
546
|
+
* 1. Add the correct display in IE.
|
547
|
+
*/
|
548
|
+
|
549
|
+
template, /* 1 */
|
550
|
+
[hidden] { display: none; }
|
551
|
+
|
552
|
+
|
553
|
+
/* Iframe
|
554
|
+
========================================================================== */
|
555
|
+
|
556
|
+
iframe { border: 0; }
|
557
|
+
|
558
|
+
|
559
|
+
/* Prevent the 300ms delay for touchscreen interactions
|
560
|
+
========================================================================== */
|
561
|
+
|
562
|
+
/*
|
563
|
+
* Most browsers prevent the 300ms delay automatically for sites that use the `width=device-width` property.
|
564
|
+
* For Safari on iOS 9.3+, IE 11 and Edge on desktops and IE 11 on Windows Phone 8.1 it must be applied manually.
|
565
|
+
*/
|
566
|
+
|
567
|
+
a,
|
568
|
+
area,
|
569
|
+
button,
|
570
|
+
input,
|
571
|
+
label,
|
572
|
+
select,
|
573
|
+
summary,
|
574
|
+
textarea { touch-action: manipulation; }
|
575
|
+
|
576
|
+
|
577
|
+
/* Pass media breakpoints to JS
|
578
|
+
========================================================================== */
|
579
|
+
|
580
|
+
/*
|
581
|
+
* Breakpoints
|
582
|
+
*/
|
583
|
+
|
584
|
+
.var-media-s:before { content: '@{breakpoint-small}'; }
|
585
|
+
.var-media-m:before { content: '@{breakpoint-medium}'; }
|
586
|
+
.var-media-l:before { content: '@{breakpoint-large}'; }
|
587
|
+
.var-media-xl:before { content: '@{breakpoint-xlarge}'; }
|
588
|
+
|
589
|
+
|
590
|
+
// Hooks
|
591
|
+
// ========================================================================
|
592
|
+
|
593
|
+
.hook-base-misc;
|
594
|
+
|
595
|
+
.hook-base-body() {}
|
596
|
+
.hook-base-link() {}
|
597
|
+
.hook-base-link-hover() {}
|
598
|
+
.hook-base-code() {}
|
599
|
+
.hook-base-heading() {}
|
600
|
+
.hook-base-h1() {}
|
601
|
+
.hook-base-h2() {}
|
602
|
+
.hook-base-h3() {}
|
603
|
+
.hook-base-h4() {}
|
604
|
+
.hook-base-h5() {}
|
605
|
+
.hook-base-h6() {}
|
606
|
+
.hook-base-hr() {}
|
607
|
+
.hook-base-blockquote() {}
|
608
|
+
.hook-base-blockquote-footer() {}
|
609
|
+
.hook-base-pre() {}
|
610
|
+
.hook-base-misc() {}
|
611
|
+
|
612
|
+
|
613
|
+
// Inverse
|
614
|
+
// ========================================================================
|
615
|
+
|
616
|
+
@inverse-base-color: @inverse-global-color;
|
617
|
+
@inverse-base-link-color: @inverse-global-emphasis-color;
|
618
|
+
@inverse-base-link-hover-color: @inverse-global-emphasis-color;
|
619
|
+
@inverse-base-code-color: @inverse-global-color;
|
620
|
+
@inverse-base-em-color: @inverse-global-emphasis-color;
|
621
|
+
@inverse-base-heading-color: @inverse-global-emphasis-color;
|
622
|
+
@inverse-base-hr-border: @inverse-global-border;
|
623
|
+
|
624
|
+
.hook-inverse() {
|
625
|
+
|
626
|
+
color: @inverse-base-color;
|
627
|
+
|
628
|
+
// Base
|
629
|
+
// ========================================================================
|
630
|
+
|
631
|
+
//
|
632
|
+
// Link
|
633
|
+
//
|
634
|
+
|
635
|
+
a,
|
636
|
+
.uk-link {
|
637
|
+
color: @inverse-base-link-color;
|
638
|
+
.hook-inverse-base-link;
|
639
|
+
}
|
640
|
+
|
641
|
+
a:hover,
|
642
|
+
.uk-link:hover {
|
643
|
+
color: @inverse-base-link-hover-color;
|
644
|
+
.hook-inverse-base-link-hover;
|
645
|
+
}
|
646
|
+
|
647
|
+
//
|
648
|
+
// Code
|
649
|
+
//
|
650
|
+
|
651
|
+
:not(pre) > code,
|
652
|
+
:not(pre) > kbd,
|
653
|
+
:not(pre) > samp {
|
654
|
+
color: @inverse-base-code-color;
|
655
|
+
.hook-inverse-base-code;
|
656
|
+
}
|
657
|
+
|
658
|
+
//
|
659
|
+
// Emphasize
|
660
|
+
//
|
661
|
+
|
662
|
+
em { color: @inverse-base-em-color; }
|
663
|
+
|
664
|
+
//
|
665
|
+
// Headings
|
666
|
+
//
|
667
|
+
|
668
|
+
h1, .uk-h1,
|
669
|
+
h2, .uk-h2,
|
670
|
+
h3, .uk-h3,
|
671
|
+
h4, .uk-h4,
|
672
|
+
h5, .uk-h5,
|
673
|
+
h6, .uk-h6 {
|
674
|
+
color: @inverse-base-heading-color;
|
675
|
+
.hook-inverse-base-heading;
|
676
|
+
}
|
677
|
+
|
678
|
+
h1, .uk-h1 {
|
679
|
+
.hook-inverse-base-h1;
|
680
|
+
}
|
681
|
+
|
682
|
+
h2, .uk-h2 {
|
683
|
+
.hook-inverse-base-h2;
|
684
|
+
}
|
685
|
+
|
686
|
+
h3, .uk-h3 {
|
687
|
+
.hook-inverse-base-h3;
|
688
|
+
}
|
689
|
+
|
690
|
+
h4, .uk-h4 {
|
691
|
+
.hook-inverse-base-h4;
|
692
|
+
}
|
693
|
+
|
694
|
+
h5, .uk-h5 {
|
695
|
+
.hook-inverse-base-h5;
|
696
|
+
}
|
697
|
+
|
698
|
+
h6, .uk-h6 {
|
699
|
+
.hook-inverse-base-h6;
|
700
|
+
}
|
701
|
+
|
702
|
+
//
|
703
|
+
// Blockquotes
|
704
|
+
//
|
705
|
+
|
706
|
+
blockquote {
|
707
|
+
.hook-inverse-base-blockquote;
|
708
|
+
}
|
709
|
+
|
710
|
+
blockquote footer {
|
711
|
+
.hook-inverse-base-blockquote-footer;
|
712
|
+
}
|
713
|
+
|
714
|
+
//
|
715
|
+
// Horizontal rules
|
716
|
+
//
|
717
|
+
|
718
|
+
hr {
|
719
|
+
border-top-color: @inverse-base-hr-border;
|
720
|
+
.hook-inverse-base-hr;
|
721
|
+
}
|
722
|
+
|
723
|
+
}
|
724
|
+
|
725
|
+
.hook-inverse-base-link() {}
|
726
|
+
.hook-inverse-base-link-hover() {}
|
727
|
+
.hook-inverse-base-code() {}
|
728
|
+
.hook-inverse-base-heading() {}
|
729
|
+
.hook-inverse-base-h1() {}
|
730
|
+
.hook-inverse-base-h2() {}
|
731
|
+
.hook-inverse-base-h3() {}
|
732
|
+
.hook-inverse-base-h4() {}
|
733
|
+
.hook-inverse-base-h5() {}
|
734
|
+
.hook-inverse-base-h6() {}
|
735
|
+
.hook-inverse-base-blockquote() {}
|
736
|
+
.hook-inverse-base-blockquote-footer() {}
|
737
|
+
.hook-inverse-base-hr() {}
|