just-the-docs-altair 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +68 -0
- data/Rakefile +1 -0
- data/_includes/head.html +26 -0
- data/_includes/nav.html +44 -0
- data/_layouts/about.html +5 -0
- data/_layouts/default.html +78 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/base.scss +110 -0
- data/_sass/buttons.scss +118 -0
- data/_sass/code.scss +122 -0
- data/_sass/color_schemes/dark.scss +14 -0
- data/_sass/content.scss +114 -0
- data/_sass/custom/custom.scss +120 -0
- data/_sass/labels.scss +36 -0
- data/_sass/layout.scss +147 -0
- data/_sass/navigation.scss +148 -0
- data/_sass/search.scss +114 -0
- data/_sass/support/_functions.scss +10 -0
- data/_sass/support/_variables.scss +130 -0
- data/_sass/support/mixins/_buttons.scss +27 -0
- data/_sass/support/mixins/_layout.scss +36 -0
- data/_sass/support/mixins/_typography.scss +81 -0
- data/_sass/support/mixins/mixins.scss +3 -0
- data/_sass/support/support.scss +3 -0
- data/_sass/tables.scss +78 -0
- data/_sass/typography.scss +58 -0
- data/_sass/utilities/_colors.scss +239 -0
- data/_sass/utilities/_layout.scss +38 -0
- data/_sass/utilities/_lists.scss +11 -0
- data/_sass/utilities/_spacing.scss +121 -0
- data/_sass/utilities/_typography.scss +91 -0
- data/_sass/utilities/utilities.scss +5 -0
- data/_sass/vendor/normalize.scss/README.md +78 -0
- data/_sass/vendor/normalize.scss/normalize.scss +427 -0
- data/_sass/vendor/normalize.scss/package.json +70 -0
- data/assets/css/dark-mode-preview.scss +41 -0
- data/assets/css/just-the-docs.scss +44 -0
- data/assets/images/just-the-docs.png +0 -0
- data/assets/images/search.svg +1 -0
- data/assets/js/just-the-docs.js +177 -0
- data/assets/js/search-data.json +12 -0
- data/assets/js/vendor/lunr.min.js +6 -0
- data/bin/just-the-docs +16 -0
- data/lib/tasks/search.rake +27 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3bc7cc3f644bd24fca93cf396de9550e2b5cc7f5
|
4
|
+
data.tar.gz: 57bfbe32ebd972e3c8a86b0a201cf81663172194
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 84af7b10aa59e4e3f5dce9f9a2d8245af2674303a40d35bd375e94f26fd8fcb4df2ca770d1c4b70f0df25f89416c1627b028845e98d90971bf35c590eeff438f
|
7
|
+
data.tar.gz: 620d16840e2a6c924d80cb055dbe3045670cfae37dca5c594f11f4ebb7d970ea17e78bec09edda033de5000aeb71f5dfec7e284a71c0d5c858dc23c2ee674b41
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Patrick Marsceill
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
<p align="right">
|
2
|
+
<a href="https://badge.fury.io/rb/just-the-docs"><img src="https://badge.fury.io/rb/just-the-docs.svg" alt="Gem version"></a> <a href="https://travis-ci.com/pmarsceill/just-the-docs"><img src="https://travis-ci.com/pmarsceill/just-the-docs.svg?branch=master" alt="Build status"></a>
|
3
|
+
</p>
|
4
|
+
<br><br>
|
5
|
+
<p align="center">
|
6
|
+
<h1 align="center">Just the Docs</h1>
|
7
|
+
<p align="center">A modern, high customizable, responsive Jekyll theme for documentation with built-in search.<br>Easily hosted on GitHub Pages with few dependencies.</p>
|
8
|
+
<p align="center"><strong><a href="https://pmarsceill.github.io/just-the-docs/">See it in action!</a></strong></p>
|
9
|
+
<br><br><br>
|
10
|
+
</p>
|
11
|
+
|
12
|
+
![jtd](https://user-images.githubusercontent.com/896475/47384541-89053c80-d6d5-11e8-98dc-dba16e192de9.gif)
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your Jekyll site's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem "just-the-docs"
|
20
|
+
```
|
21
|
+
|
22
|
+
And add this line to your Jekyll site's `_config.yml`:
|
23
|
+
|
24
|
+
```yaml
|
25
|
+
theme: just-the-docs
|
26
|
+
```
|
27
|
+
|
28
|
+
And then execute:
|
29
|
+
|
30
|
+
$ bundle
|
31
|
+
|
32
|
+
Or install it yourself as:
|
33
|
+
|
34
|
+
$ gem install just-the-docs
|
35
|
+
|
36
|
+
## Usage
|
37
|
+
|
38
|
+
[View the documentation](https://pmarsceill.github.io/just-the-docs/) for usage information.
|
39
|
+
|
40
|
+
## Contributing
|
41
|
+
|
42
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pmarsceill/just-the-docs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
43
|
+
|
44
|
+
### Submitting code changes:
|
45
|
+
|
46
|
+
- Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
|
47
|
+
- Ensure all CI tests pass
|
48
|
+
- Await code review
|
49
|
+
- Bump the version number in `just-the-docs.gemspec` and `package.json` according to [semantic versioning](https://semver.org/).
|
50
|
+
|
51
|
+
### Design and development principles of this theme:
|
52
|
+
|
53
|
+
1. As few dependencies as possible
|
54
|
+
2. No build script needed
|
55
|
+
3. First class mobile experience
|
56
|
+
4. Make the content shine
|
57
|
+
|
58
|
+
## Development
|
59
|
+
|
60
|
+
To set up your environment to develop this theme, run `bundle install`.
|
61
|
+
|
62
|
+
Your theme is set up just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
63
|
+
|
64
|
+
When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
65
|
+
|
66
|
+
## License
|
67
|
+
|
68
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dir.glob('lib/tasks/*.rake').each {|r| import r}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
4
|
+
{% if page.description %}
|
5
|
+
<meta name="Description" content="{{ page.description }}">
|
6
|
+
{% endif %}
|
7
|
+
|
8
|
+
<title>{{ page.title }} - {{ site.title }}</title>
|
9
|
+
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
|
10
|
+
|
11
|
+
{% if site.ga_tracking != nil %}
|
12
|
+
<script>
|
13
|
+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
14
|
+
ga('create', '{{ site.ga_tracking }}', '{{ site.url }}');
|
15
|
+
ga('send', 'pageview');
|
16
|
+
</script>
|
17
|
+
<script async src="https://www.google-analytics.com/analytics.js"></script>
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% if site.search_enabled != nil %}
|
21
|
+
<script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
|
22
|
+
{% endif %}
|
23
|
+
<script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>
|
24
|
+
|
25
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
26
|
+
</head>
|
data/_includes/nav.html
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
<nav role="navigation" aria-label="Main navigation">
|
2
|
+
<ul class="navigation-list">
|
3
|
+
{% assign pages_list = site.html_pages | sort:"nav_order" %}
|
4
|
+
{% for node in pages_list %}
|
5
|
+
{% unless node.nav_exclude %}
|
6
|
+
{% if node.parent == nil %}
|
7
|
+
<li class="navigation-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
|
8
|
+
{% if page.parent == node.title or page.grand_parent == node.title %}
|
9
|
+
{% assign first_level_url = node.url | absolute_url %}
|
10
|
+
{% endif %}
|
11
|
+
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
|
12
|
+
{% if node.has_children %}
|
13
|
+
{% assign children_list = site.html_pages | sort:"nav_order" %}
|
14
|
+
<ul class="navigation-list-child-list ">
|
15
|
+
{% for child in children_list %}
|
16
|
+
{% if child.parent == node.title %}
|
17
|
+
<li class="navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
|
18
|
+
{% if page.url == child.url or page.parent == child.title %}
|
19
|
+
{% assign second_level_url = child.url | absolute_url %}
|
20
|
+
{% endif %}
|
21
|
+
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
22
|
+
{% if child.has_children %}
|
23
|
+
{% assign grand_children_list = site.html_pages | sort:"nav_order" %}
|
24
|
+
<ul class="navigation-list-child-list">
|
25
|
+
{% for grand_child in grand_children_list %}
|
26
|
+
{% if grand_child.parent == child.title %}
|
27
|
+
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}">
|
28
|
+
<a href="{{ grand_child.url | absolute_url }}" class="navigation-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
|
29
|
+
</li>
|
30
|
+
{% endif %}
|
31
|
+
{% endfor %}
|
32
|
+
</ul>
|
33
|
+
{% endif %}
|
34
|
+
</li>
|
35
|
+
{% endif %}
|
36
|
+
{% endfor %}
|
37
|
+
</ul>
|
38
|
+
{% endif %}
|
39
|
+
</li>
|
40
|
+
{% endif %}
|
41
|
+
{% endunless %}
|
42
|
+
{% endfor %}
|
43
|
+
</ul>
|
44
|
+
</nav>
|
data/_layouts/about.html
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html lang="en-us">
|
4
|
+
{% include head.html %}
|
5
|
+
<body>
|
6
|
+
|
7
|
+
<div class="page-wrap">
|
8
|
+
<div class="side-bar">
|
9
|
+
<a href="{{ site.url }}{{ site.baseurl }}" class="site-title fs-6 lh-tight">{{ site.title }}</a>
|
10
|
+
<span class="fs-3"><button class="js-main-nav-trigger navigation-list-toggle btn btn-outline" type="button" data-text-toggle="Hide">Menu</button></span>
|
11
|
+
<div class="navigation main-nav js-main-nav">
|
12
|
+
{% include nav.html %}
|
13
|
+
</div>
|
14
|
+
<footer role="contentinfo" class="site-footer">
|
15
|
+
<p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
|
16
|
+
</footer>
|
17
|
+
</div>
|
18
|
+
<div class="main-content-wrap js-main-content" tabindex="0">
|
19
|
+
<div class="page-header">
|
20
|
+
<div class="main-content">
|
21
|
+
{% if site.search_enabled != nil %}
|
22
|
+
<div class="search js-search">
|
23
|
+
<div class="search-input-wrap">
|
24
|
+
<input type="text" class="js-search-input search-input" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
|
25
|
+
<svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
|
26
|
+
</div>
|
27
|
+
<div class="js-search-results search-results-wrap"></div>
|
28
|
+
</div>
|
29
|
+
{% endif %}
|
30
|
+
{% if site.aux_links != nil %}
|
31
|
+
<ul class="list-style-none text-small mt-md-1 mb-md-1 pb-4 pb-md-0 js-aux-nav aux-nav">
|
32
|
+
{% for link in site.aux_links %}
|
33
|
+
<li class="d-inline-block my-0{% unless forloop.last %} mr-2{% endunless %}"><a href="{{ link.last }}">{{ link.first }}</a></li>
|
34
|
+
{% endfor %}
|
35
|
+
</ul>
|
36
|
+
{% endif %}
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<div class="main-content">
|
40
|
+
{% unless page.url == "/" %}
|
41
|
+
{% if page.parent %}
|
42
|
+
<nav class="breadcrumb-nav">
|
43
|
+
<ol class="breadcrumb-nav-list">
|
44
|
+
{% if page.grand_parent %}
|
45
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.grand_parent }}</a></li>
|
46
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ second_level_url }}">{{ page.parent }}</a></li>
|
47
|
+
{% else %}
|
48
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
|
49
|
+
{% endif %}
|
50
|
+
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
|
51
|
+
</ol>
|
52
|
+
</nav>
|
53
|
+
{% endif %}
|
54
|
+
{% endunless %}
|
55
|
+
<div id="main-content" class="page-content" role="main">
|
56
|
+
{{ content }}
|
57
|
+
|
58
|
+
{% if page.has_children == true and page.has_toc != false %}
|
59
|
+
<hr>
|
60
|
+
<h2 class="text-delta">Table of contents</h2>
|
61
|
+
{% assign children_list = site.pages | sort:"nav_order" %}
|
62
|
+
<ul>
|
63
|
+
{% for child in children_list %}
|
64
|
+
{% if child.parent == page.title and child.title != page.title %}
|
65
|
+
<li>
|
66
|
+
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
|
67
|
+
</li>
|
68
|
+
{% endif %}
|
69
|
+
{% endfor %}
|
70
|
+
</ul>
|
71
|
+
{% endif %}
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
</body>
|
78
|
+
</html>
|
data/_layouts/home.html
ADDED
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
data/_sass/base.scss
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
//
|
2
|
+
// Base element style overrides
|
3
|
+
//
|
4
|
+
// stylelint-disable selector-no-type, selector-max-type
|
5
|
+
|
6
|
+
* {
|
7
|
+
box-sizing: border-box;
|
8
|
+
}
|
9
|
+
|
10
|
+
::selection {
|
11
|
+
color: $white;
|
12
|
+
background: $link-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
html {
|
16
|
+
@include fs-4;
|
17
|
+
}
|
18
|
+
|
19
|
+
body {
|
20
|
+
font-family: $body-font-family;
|
21
|
+
font-size: inherit;
|
22
|
+
line-height: $body-line-height;
|
23
|
+
color: $body-text-color;
|
24
|
+
background-color: $body-background-color;
|
25
|
+
}
|
26
|
+
|
27
|
+
p,
|
28
|
+
h1,
|
29
|
+
h2,
|
30
|
+
h3,
|
31
|
+
h4,
|
32
|
+
h5,
|
33
|
+
h6,
|
34
|
+
ol,
|
35
|
+
ul,
|
36
|
+
pre,
|
37
|
+
address,
|
38
|
+
blockquote,
|
39
|
+
dl,
|
40
|
+
div,
|
41
|
+
fieldset,
|
42
|
+
form,
|
43
|
+
hr,
|
44
|
+
noscript,
|
45
|
+
table {
|
46
|
+
margin-top: 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
h1,
|
50
|
+
h2,
|
51
|
+
h3,
|
52
|
+
h4,
|
53
|
+
h5,
|
54
|
+
h6 {
|
55
|
+
margin-top: 1.2em;
|
56
|
+
margin-bottom: 0.8em;
|
57
|
+
font-weight: 500;
|
58
|
+
line-height: $body-heading-line-height;
|
59
|
+
color: $body-heading-color;
|
60
|
+
}
|
61
|
+
|
62
|
+
p {
|
63
|
+
margin-bottom: 1em;
|
64
|
+
}
|
65
|
+
|
66
|
+
a {
|
67
|
+
color: $link-color;
|
68
|
+
text-decoration: none;
|
69
|
+
}
|
70
|
+
|
71
|
+
a:not([class]) {
|
72
|
+
text-decoration: none;
|
73
|
+
background-image: linear-gradient($border-color 0%, $border-color 100%);
|
74
|
+
background-repeat: repeat-x;
|
75
|
+
background-position: 0 100%;
|
76
|
+
background-size: 1px 1px;
|
77
|
+
|
78
|
+
&:hover {
|
79
|
+
background-image: linear-gradient(rgba($link-color, 0.45) 0%, rgba($link-color, 0.45) 100%);
|
80
|
+
background-size: 1px 1px;
|
81
|
+
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
code {
|
86
|
+
font-family: $mono-font-family;
|
87
|
+
font-size: 12px;
|
88
|
+
line-height: $body-line-height;
|
89
|
+
}
|
90
|
+
|
91
|
+
figure {
|
92
|
+
margin: 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
li {
|
96
|
+
margin: 0.25em 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
img {
|
100
|
+
max-width: 100%;
|
101
|
+
height: auto;
|
102
|
+
}
|
103
|
+
|
104
|
+
hr {
|
105
|
+
height: 1px;
|
106
|
+
padding: 0;
|
107
|
+
margin: $sp-6 0;
|
108
|
+
background-color: $border-color;
|
109
|
+
border: 0;
|
110
|
+
}
|
data/_sass/buttons.scss
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
//
|
2
|
+
// Buttons and things that look like buttons
|
3
|
+
//
|
4
|
+
// stylelint-disable color-named
|
5
|
+
|
6
|
+
.btn {
|
7
|
+
display: inline-block;
|
8
|
+
box-sizing: border-box;
|
9
|
+
padding-top: 0.3em;
|
10
|
+
padding-right: 1em;
|
11
|
+
padding-bottom: 0.3em;
|
12
|
+
padding-left: 1em;
|
13
|
+
margin: 0;
|
14
|
+
font-family: inherit;
|
15
|
+
font-size: inherit;
|
16
|
+
font-weight: 500;
|
17
|
+
line-height: 1.5;
|
18
|
+
color: $link-color;
|
19
|
+
text-decoration: none;
|
20
|
+
vertical-align: baseline;
|
21
|
+
cursor: pointer;
|
22
|
+
background-color: $base-button-color;
|
23
|
+
border-width: 0;
|
24
|
+
border-radius: 3px;
|
25
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
26
|
+
appearance: none;
|
27
|
+
|
28
|
+
&:focus {
|
29
|
+
text-decoration: none;
|
30
|
+
outline: none;
|
31
|
+
box-shadow: 0 0 0 3px rgba(blue, 0.25);
|
32
|
+
}
|
33
|
+
|
34
|
+
&:focus:hover,
|
35
|
+
&.selected:focus {
|
36
|
+
box-shadow: 0 0 0 3px rgba(blue, 0.25);
|
37
|
+
}
|
38
|
+
|
39
|
+
&:hover,
|
40
|
+
&.zeroclipboard-is-hover {
|
41
|
+
color: darken($link-color, 2%);
|
42
|
+
}
|
43
|
+
|
44
|
+
&:hover,
|
45
|
+
&:active,
|
46
|
+
&.zeroclipboard-is-hover,
|
47
|
+
&.zeroclipboard-is-active {
|
48
|
+
text-decoration: none;
|
49
|
+
background-color: darken($base-button-color, 1%);
|
50
|
+
}
|
51
|
+
|
52
|
+
&:active,
|
53
|
+
&.selected,
|
54
|
+
&.zeroclipboard-is-active {
|
55
|
+
background-color: darken($base-button-color, 3%);
|
56
|
+
background-image: none;
|
57
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
58
|
+
}
|
59
|
+
|
60
|
+
&.selected:hover {
|
61
|
+
background-color: darken(#dcdcdc, 5%);
|
62
|
+
}
|
63
|
+
|
64
|
+
&:disabled,
|
65
|
+
&.disabled {
|
66
|
+
&,
|
67
|
+
&:hover {
|
68
|
+
color: rgba(102, 102, 102, 0.5);
|
69
|
+
cursor: default;
|
70
|
+
background-color: rgba(229, 229, 229, 0.5);
|
71
|
+
background-image: none;
|
72
|
+
box-shadow: none;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.btn-outline {
|
78
|
+
color: $link-color;
|
79
|
+
background: transparent;
|
80
|
+
box-shadow: inset 0 0 0 2px $grey-lt-300;
|
81
|
+
|
82
|
+
&:hover,
|
83
|
+
&:active,
|
84
|
+
&.zeroclipboard-is-hover,
|
85
|
+
&.zeroclipboard-is-active {
|
86
|
+
color: darken($link-color, 4%);
|
87
|
+
text-decoration: none;
|
88
|
+
background-color: transparent;
|
89
|
+
box-shadow: inset 0 0 0 3px $grey-lt-300;
|
90
|
+
}
|
91
|
+
|
92
|
+
&:focus {
|
93
|
+
text-decoration: none;
|
94
|
+
outline: none;
|
95
|
+
box-shadow: inset 0 0 0 2px $grey-dk-100, 0 0 0 3px rgba(blue, 0.25);
|
96
|
+
}
|
97
|
+
|
98
|
+
&:focus:hover,
|
99
|
+
&.selected:focus {
|
100
|
+
box-shadow: inset 0 0 0 2px $grey-dk-100;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
.btn-primary {
|
105
|
+
@include btn-color($white, $btn-primary-color);
|
106
|
+
}
|
107
|
+
|
108
|
+
.btn-purple {
|
109
|
+
@include btn-color($white, $purple-100);
|
110
|
+
}
|
111
|
+
|
112
|
+
.btn-blue {
|
113
|
+
@include btn-color($white, $blue-000);
|
114
|
+
}
|
115
|
+
|
116
|
+
.btn-green {
|
117
|
+
@include btn-color($white, $green-100);
|
118
|
+
}
|