cactu 0.1.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +10 -15
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +1 -1
- data/{LICENSE.txt → LICENSE} +1 -1
- data/README.md +46 -16
- data/Rakefile +9 -0
- data/assets/stylesheets/base/_blocks.scss +24 -0
- data/assets/stylesheets/base/_global-variables.scss +62 -0
- data/assets/stylesheets/base/_reboot.scss +309 -0
- data/assets/stylesheets/cactu.scss +46 -0
- data/assets/stylesheets/components/_alerts.scss +48 -0
- data/assets/stylesheets/components/_buttons.scss +82 -0
- data/assets/stylesheets/components/_collapse.scss +84 -0
- data/assets/stylesheets/components/_dropdowns.scss +172 -0
- data/assets/stylesheets/components/_forms.scss +158 -0
- data/assets/stylesheets/components/_grids.scss +95 -0
- data/assets/stylesheets/components/_lists.scss +75 -0
- data/assets/stylesheets/components/_modals.scss +124 -0
- data/assets/stylesheets/components/_navbars.scss +190 -0
- data/assets/stylesheets/components/_navs.scss +52 -0
- data/assets/stylesheets/components/_paginations.scss +76 -0
- data/assets/stylesheets/components/_tables.scss +49 -0
- data/assets/stylesheets/components/_tooltips.scss +138 -0
- data/assets/stylesheets/elements/_button.scss +94 -0
- data/assets/stylesheets/elements/_code.scss +75 -0
- data/assets/stylesheets/elements/_icon.scss +66 -0
- data/assets/stylesheets/elements/_image.scss +33 -0
- data/assets/stylesheets/elements/_typography.scss +130 -0
- data/assets/stylesheets/functions/_colors.scss +40 -0
- data/assets/stylesheets/functions/_strings.scss +14 -0
- data/assets/stylesheets/mixins/_alerts.scss +18 -0
- data/assets/stylesheets/mixins/_breakpoints.scss +93 -0
- data/assets/stylesheets/mixins/_buttons.scss +96 -0
- data/assets/stylesheets/mixins/_forms.scss +44 -0
- data/assets/stylesheets/mixins/_grid.scss +18 -0
- data/assets/stylesheets/mixins/_hover.scss +27 -0
- data/assets/stylesheets/mixins/_icons.scss +22 -0
- data/assets/stylesheets/mixins/_navbar.scss +60 -0
- data/assets/stylesheets/mixins/_positions.scss +12 -0
- data/assets/stylesheets/mixins/_transition.scss +16 -0
- data/assets/stylesheets/utilities/_classes.scss +69 -0
- data/assets/stylesheets/utilities/_syntax.scss +81 -0
- data/cactu.gemspec +15 -15
- data/lib/cactu.rb +40 -12
- data/lib/cactu/engine.rb +11 -3
- data/lib/cactu/version.rb +1 -1
- metadata +123 -110
- data/app/assets/stylesheets/_cactu.scss +0 -15
- data/app/assets/stylesheets/config/_variables.scss +0 -27
- data/app/assets/stylesheets/functions/_grid.scss +0 -32
- data/app/assets/stylesheets/mixins/_fonts.scss +0 -13
- data/app/assets/stylesheets/mixins/_grid.scss +0 -81
- data/app/assets/stylesheets/mixins/_menu.scss +0 -47
- data/app/assets/stylesheets/ui/_base.scss +0 -53
- data/app/assets/stylesheets/ui/_buttons.scss +0 -13
- data/app/assets/stylesheets/ui/_forms.scss +0 -3
- data/app/assets/stylesheets/ui/_images.scss +0 -3
- data/app/assets/stylesheets/ui/_menus.scss +0 -4
- data/app/assets/stylesheets/ui/_tables.scss +0 -3
- data/app/assets/stylesheets/ui/_text.scss +0 -71
- data/bin/cactu +0 -6
- data/lib/cactu/generator.rb +0 -80
- data/test/cactu_app/.gitignore +0 -16
- data/test/cactu_app/Gemfile +0 -49
- data/test/cactu_app/README.rdoc +0 -28
- data/test/cactu_app/Rakefile +0 -6
- data/test/cactu_app/app/assets/images/.keep +0 -0
- data/test/cactu_app/app/assets/javascripts/application.js +0 -16
- data/test/cactu_app/app/assets/stylesheets/application.css.scss +0 -16
- data/test/cactu_app/app/assets/stylesheets/test/_test.css.scss +0 -10
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss +0 -7
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss +0 -7
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss +0 -3
- data/test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss +0 -7
- data/test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss +0 -2
- data/test/cactu_app/app/assets/stylesheets/test/ui/_anchors.css.scss +0 -0
- data/test/cactu_app/app/assets/stylesheets/test/ui/_base.css.scss +0 -0
- data/test/cactu_app/app/assets/stylesheets/test/ui/_navigations.css.scss +0 -3
- data/test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss +0 -1
- data/test/cactu_app/app/controllers/application_controller.rb +0 -5
- data/test/cactu_app/app/controllers/concerns/.keep +0 -0
- data/test/cactu_app/app/controllers/home_controller.rb +0 -5
- data/test/cactu_app/app/controllers/usage_controller.rb +0 -13
- data/test/cactu_app/app/helpers/application_helper.rb +0 -2
- data/test/cactu_app/app/mailers/.keep +0 -0
- data/test/cactu_app/app/models/.keep +0 -0
- data/test/cactu_app/app/models/concerns/.keep +0 -0
- data/test/cactu_app/app/views/home/index.html.haml +0 -7
- data/test/cactu_app/app/views/layouts/application.html.haml +0 -20
- data/test/cactu_app/app/views/usage/base.html.haml +0 -19
- data/test/cactu_app/app/views/usage/components.html.haml +0 -4
- data/test/cactu_app/app/views/usage/started.html.haml +0 -4
- data/test/cactu_app/bin/bundle +0 -3
- data/test/cactu_app/bin/rails +0 -4
- data/test/cactu_app/bin/rake +0 -4
- data/test/cactu_app/config.ru +0 -4
- data/test/cactu_app/config/application.rb +0 -23
- data/test/cactu_app/config/boot.rb +0 -4
- data/test/cactu_app/config/database.yml +0 -25
- data/test/cactu_app/config/environment.rb +0 -5
- data/test/cactu_app/config/environments/development.rb +0 -29
- data/test/cactu_app/config/environments/production.rb +0 -80
- data/test/cactu_app/config/environments/test.rb +0 -36
- data/test/cactu_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/cactu_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/cactu_app/config/initializers/inflections.rb +0 -16
- data/test/cactu_app/config/initializers/mime_types.rb +0 -5
- data/test/cactu_app/config/initializers/secret_token.rb +0 -12
- data/test/cactu_app/config/initializers/session_store.rb +0 -3
- data/test/cactu_app/config/initializers/wrap_parameters.rb +0 -14
- data/test/cactu_app/config/locales/en.yml +0 -23
- data/test/cactu_app/config/routes.rb +0 -6
- data/test/cactu_app/db/seeds.rb +0 -7
- data/test/cactu_app/lib/assets/.keep +0 -0
- data/test/cactu_app/lib/tasks/.keep +0 -0
- data/test/cactu_app/log/.keep +0 -0
- data/test/cactu_app/public/404.html +0 -58
- data/test/cactu_app/public/422.html +0 -58
- data/test/cactu_app/public/500.html +0 -57
- data/test/cactu_app/public/favicon.ico +0 -0
- data/test/cactu_app/public/robots.txt +0 -5
- data/test/cactu_app/test/controllers/.keep +0 -0
- data/test/cactu_app/test/fixtures/.keep +0 -0
- data/test/cactu_app/test/helpers/.keep +0 -0
- data/test/cactu_app/test/integration/.keep +0 -0
- data/test/cactu_app/test/mailers/.keep +0 -0
- data/test/cactu_app/test/models/.keep +0 -0
- data/test/cactu_app/test/test_helper.rb +0 -15
- data/test/cactu_app/vendor/assets/javascripts/.keep +0 -0
- data/test/cactu_app/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 40025d47df7a954efd91f6f341d4e83323393d3057174b32dd3cdcd9d7fd638c
|
4
|
+
data.tar.gz: f480150fa0d7345348d3ce731b704f6678557a4187d91ca3ad9fec3bebc6772c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24e1a1c1e9e14b911e64408825d9d79bd5a03193389f66455aaf106416c717c3c3d3f55674acf9da6b37444349804d636150d2d6a9a6ae88322a2e7b829b2eb2
|
7
|
+
data.tar.gz: eb399336df4dd84cbe692f339b2c4658fa3546bc120cf2bbcfa65b3f6f8bc4f26ebb62eff5ee3d19128565cf6ceae1f9659110310a8fa93c47223af2fee6ea83
|
data/.gitignore
CHANGED
@@ -1,17 +1,12 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/_yardoc/
|
4
|
+
/coverage/
|
5
|
+
/doc/
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/tmp/
|
9
|
+
*.DS_Store
|
1
10
|
*.gem
|
2
11
|
*.rbc
|
3
|
-
.
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
12
|
+
Gemfile.lock
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at mendozagioo@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
CHANGED
data/{LICENSE.txt → LICENSE}
RENAMED
data/README.md
CHANGED
@@ -1,42 +1,72 @@
|
|
1
1
|
# Cactu
|
2
2
|
|
3
|
-
|
3
|
+
[](https://rubygems.org/gems/cactu)
|
4
4
|
|
5
|
-
Cactu is a
|
6
|
-
very quickly and an easy way
|
5
|
+
Cactu is a Sass framework to create webs easily, created to be simple, semantic, fast to learn, customizable, and scalable.
|
7
6
|
|
8
7
|
## Installation
|
9
8
|
|
9
|
+
### Ruby on Rails
|
10
|
+
|
10
11
|
Add this line to your application's Gemfile:
|
11
12
|
|
12
|
-
|
13
|
+
```ruby
|
14
|
+
gem 'cactu', '~> 0.18.0'
|
15
|
+
```
|
16
|
+
|
17
|
+
Ensure that `sprockets-rails` is at least v2.3.2.
|
13
18
|
|
14
19
|
And then execute:
|
15
20
|
|
16
21
|
$ bundle
|
17
22
|
|
18
|
-
|
23
|
+
Import Cactu styles in app/assets/stylesheets/application.scss:
|
24
|
+
|
25
|
+
// Custom Cactu global-variables (if you need it) *before* Cactu.
|
26
|
+
@import "cactu";
|
27
|
+
|
28
|
+
Make sure the file has `.scss`. If you have just generated a new Rails app, it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it:
|
29
|
+
|
30
|
+
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
|
31
|
+
|
32
|
+
Then, remove all the `*= require` and `*= require_tree` statements from the Sass file. Instead, use @import to import Sass files.
|
33
|
+
|
34
|
+
If you use `*= require` in Sass or your other stylesheets, you will not be able to access the Cactu framework.
|
35
|
+
|
36
|
+
|
37
|
+
### Another Ruby framework
|
38
|
+
|
39
|
+
Type this in your terminal:
|
19
40
|
|
20
41
|
$ gem install cactu
|
21
42
|
|
43
|
+
|
22
44
|
## Usage
|
23
45
|
|
24
|
-
|
46
|
+
Go for [Documentation](http://cactu.site/documentation/getting-started/introduction/) to know more about the Cactu's usage.
|
25
47
|
|
26
|
-
mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
|
27
48
|
|
28
|
-
|
49
|
+
## Development
|
29
50
|
|
30
|
-
|
51
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
31
52
|
|
32
|
-
|
53
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
33
54
|
|
34
|
-
@import 'cactu';
|
35
55
|
|
36
56
|
## Contributing
|
37
57
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mendozagioo/cactu-ruby. 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.
|
59
|
+
|
60
|
+
|
61
|
+
## Code of Conduct
|
62
|
+
|
63
|
+
Everyone interacting in the Cactu project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mendozagioo/cactu/blob/master/CODE_OF_CONDUCT.md).
|
64
|
+
|
65
|
+
|
66
|
+
## Author
|
67
|
+
[Giovanni Mendoza](http://mendozagioo.github.io/)
|
68
|
+
|
69
|
+
|
70
|
+
## Copyright and license
|
71
|
+
|
72
|
+
Code released under the [MIT License](https://github.com/mendozagioo/cactu-ruby/blob/master/LICENSE)
|
data/Rakefile
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
//
|
2
|
+
// Blocks
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
%flex-wrap-center {
|
7
|
+
display: flex;
|
8
|
+
flex-wrap: wrap;
|
9
|
+
align-items: center;
|
10
|
+
}
|
11
|
+
|
12
|
+
%shape-base {
|
13
|
+
content: "";
|
14
|
+
display: inline-block;
|
15
|
+
width: 0;
|
16
|
+
height: 0;
|
17
|
+
vertical-align: middle;
|
18
|
+
}
|
19
|
+
|
20
|
+
%shape-block {
|
21
|
+
content: "";
|
22
|
+
display: block;
|
23
|
+
width: 100%;
|
24
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
//
|
2
|
+
// Variables
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Colors
|
7
|
+
//
|
8
|
+
$white: #fff !default;
|
9
|
+
$gray-100: #f8f9fa !default;
|
10
|
+
$gray-200: #e9ecef !default;
|
11
|
+
$gray-300: #dee2e6 !default;
|
12
|
+
$gray-400: #ced4da !default;
|
13
|
+
$gray-500: #adb5bd !default;
|
14
|
+
$gray-600: #6c757d !default;
|
15
|
+
$gray-700: #495057 !default;
|
16
|
+
$gray-800: #343a40 !default;
|
17
|
+
$gray-900: #212529 !default;
|
18
|
+
$black: #000 !default;
|
19
|
+
|
20
|
+
$blue: #007bff !default;
|
21
|
+
$yellow: #f8f852 !default;
|
22
|
+
$red: #dc3545 !default;
|
23
|
+
$green: #28a745 !default;
|
24
|
+
|
25
|
+
$text-color: $gray-800 !default;
|
26
|
+
$border-color: $gray-300 !default;
|
27
|
+
$white-smoke: #f5f5f5;
|
28
|
+
|
29
|
+
// Typography
|
30
|
+
//
|
31
|
+
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
|
32
|
+
$font-family-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
|
33
|
+
$font-family: $font-family-sans-serif !default;
|
34
|
+
$font-size: 16px !default;
|
35
|
+
|
36
|
+
$font-weight-light: 300 !default;
|
37
|
+
$font-weight-normal: 400 !default;
|
38
|
+
$font-weight-bold: 700 !default;
|
39
|
+
|
40
|
+
|
41
|
+
// Grid breakpoints sizes
|
42
|
+
//
|
43
|
+
$cellphone-size: 576px !default;
|
44
|
+
$tablet-size: 768px !default;
|
45
|
+
$small-desktop-size: 960px !default;
|
46
|
+
$medium-desktop-size: 1200px !default;
|
47
|
+
$large-desktop-size: 1344px !default;
|
48
|
+
|
49
|
+
$maximum-columns: 12 !default;
|
50
|
+
|
51
|
+
|
52
|
+
// Miscellaneous
|
53
|
+
//
|
54
|
+
$radius: 4px !default;
|
55
|
+
$radius-rounded: 300000px !default;
|
56
|
+
$border-width: 1px !default;
|
57
|
+
$border-base: $border-width solid $border-color !default;
|
58
|
+
$speed: .15s !default;
|
59
|
+
$line-height: 1.5 !default;
|
60
|
+
$transition-all: all $speed ease-in-out !default;
|
61
|
+
$outline-width: .125rem !default;
|
62
|
+
$zindex-top: 1000 !default;
|
@@ -0,0 +1,309 @@
|
|
1
|
+
//
|
2
|
+
// Reboot
|
3
|
+
// Mostly taken of Bootstrap reboot
|
4
|
+
// --------------------------------------------------
|
5
|
+
|
6
|
+
|
7
|
+
// Variables
|
8
|
+
//
|
9
|
+
$font-weight: $font-weight-normal !default;
|
10
|
+
$body-background-color: $white !default;
|
11
|
+
$hr-hight: 1px !default;
|
12
|
+
$hr-background-color: $gray-600 !default;
|
13
|
+
$headings-weight: bold !default;
|
14
|
+
$dt-font-weight: $font-weight-bold !default;
|
15
|
+
$table-cell-padding: .75rem !default;
|
16
|
+
$table-caption-color: $gray-600 !default;
|
17
|
+
$label-margin-bottom: .5rem !default;
|
18
|
+
|
19
|
+
|
20
|
+
// Reset
|
21
|
+
// http://meyerweb.com/eric/tools/css/reset/
|
22
|
+
// v2.0 | 20110126
|
23
|
+
// License: none (public domain)
|
24
|
+
// Some changes:
|
25
|
+
// - Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
|
26
|
+
// - Addition div tag for display: block
|
27
|
+
// - No reset list-styles
|
28
|
+
//
|
29
|
+
*,
|
30
|
+
*::before,
|
31
|
+
*::after {
|
32
|
+
box-sizing: border-box;
|
33
|
+
}
|
34
|
+
|
35
|
+
html, body, div, span, applet, object, iframe,
|
36
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
37
|
+
a, abbr, acronym, address, big, cite, code,
|
38
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
39
|
+
small, strike, strong, sub, sup, tt, var,
|
40
|
+
b, u, i, center,
|
41
|
+
dl, dt, dd, ol, ul, li,
|
42
|
+
fieldset, form, label, legend,
|
43
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
44
|
+
article, aside, canvas, details, embed,
|
45
|
+
figure, figcaption, footer, header, hgroup,
|
46
|
+
menu, nav, output, ruby, section, summary,
|
47
|
+
time, mark, audio, video {
|
48
|
+
margin: 0;
|
49
|
+
padding: 0;
|
50
|
+
border: 0;
|
51
|
+
font-size: 100%;
|
52
|
+
vertical-align: baseline;
|
53
|
+
}
|
54
|
+
div, article, aside, details, figcaption, figure,
|
55
|
+
footer, header, hgroup, menu, nav, section {
|
56
|
+
display: block;
|
57
|
+
}
|
58
|
+
blockquote, q {
|
59
|
+
quotes: none;
|
60
|
+
}
|
61
|
+
blockquote:before, blockquote:after,
|
62
|
+
q:before, q:after {
|
63
|
+
content: '';
|
64
|
+
content: none;
|
65
|
+
}
|
66
|
+
table {
|
67
|
+
border-collapse: collapse;
|
68
|
+
border-spacing: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Reboot styles
|
72
|
+
// Mostly taken from Bootstrap
|
73
|
+
// Credit: https://github.com/twbs/bootstrap/blob/v4-dev/scss/_reboot.scss
|
74
|
+
// v4.1
|
75
|
+
// License: MIT
|
76
|
+
//
|
77
|
+
html {
|
78
|
+
-webkit-text-size-adjust: 100%;
|
79
|
+
-ms-text-size-adjust: 100%;
|
80
|
+
-ms-overflow-style: scrollbar;
|
81
|
+
-webkit-tap-highlight-color: rgba($black, 0);
|
82
|
+
}
|
83
|
+
|
84
|
+
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
85
|
+
@at-root {
|
86
|
+
@-ms-viewport {
|
87
|
+
width: device-width;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
body {
|
92
|
+
text-align: left;
|
93
|
+
background-color: $body-background-color;
|
94
|
+
}
|
95
|
+
|
96
|
+
html,
|
97
|
+
body {
|
98
|
+
font-family: $font-family;
|
99
|
+
font-size: $font-size;
|
100
|
+
font-weight: $font-weight;
|
101
|
+
line-height: $line-height;
|
102
|
+
color: $text-color;
|
103
|
+
}
|
104
|
+
|
105
|
+
// Suppress the focus outline on elements that cannot be accessed via keyboard.
|
106
|
+
// This prevents an unwanted focus outline from appearing around elements that
|
107
|
+
// might still respond to pointer events.
|
108
|
+
//
|
109
|
+
// Credit: https://github.com/suitcss/base
|
110
|
+
[tabindex="-1"]:focus {
|
111
|
+
outline: 0 !important;
|
112
|
+
}
|
113
|
+
|
114
|
+
hr {
|
115
|
+
display: block;
|
116
|
+
border: none;
|
117
|
+
height: $hr-hight;
|
118
|
+
background-color: $hr-background-color;
|
119
|
+
}
|
120
|
+
|
121
|
+
ol,
|
122
|
+
ul,
|
123
|
+
dl {
|
124
|
+
margin-bottom: 1rem;
|
125
|
+
}
|
126
|
+
|
127
|
+
ol ol,
|
128
|
+
ul ul,
|
129
|
+
ol ul,
|
130
|
+
ul ol {
|
131
|
+
margin-bottom: 0;
|
132
|
+
}
|
133
|
+
|
134
|
+
dt {
|
135
|
+
font-weight: $dt-font-weight;
|
136
|
+
}
|
137
|
+
|
138
|
+
dd {
|
139
|
+
margin-bottom: .5rem;
|
140
|
+
}
|
141
|
+
|
142
|
+
dfn {
|
143
|
+
font-style: italic;
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
// Figure
|
148
|
+
//
|
149
|
+
figure {
|
150
|
+
// Apply a consistent margin strategy (matches our type styles).
|
151
|
+
margin: 0 0 1rem;
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
// Elemets for Tables
|
156
|
+
//
|
157
|
+
table {
|
158
|
+
border-collapse: collapse; // Prevent double borders
|
159
|
+
}
|
160
|
+
|
161
|
+
caption {
|
162
|
+
padding-top: $table-cell-padding;
|
163
|
+
padding-bottom: $table-cell-padding;
|
164
|
+
color: $table-caption-color;
|
165
|
+
text-align: left;
|
166
|
+
caption-side: bottom;
|
167
|
+
}
|
168
|
+
|
169
|
+
th {
|
170
|
+
// Matches default `<td>` alignment by inheriting from the `<body>`, or the
|
171
|
+
// closest parent with a set `text-align`.
|
172
|
+
text-align: inherit;
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
// Elemets for Forms
|
177
|
+
//
|
178
|
+
label {
|
179
|
+
// Allow labels to use `margin` for spacing.
|
180
|
+
display: inline-block;
|
181
|
+
margin-bottom: $label-margin-bottom;
|
182
|
+
}
|
183
|
+
|
184
|
+
input,
|
185
|
+
button,
|
186
|
+
select,
|
187
|
+
optgroup,
|
188
|
+
textarea {
|
189
|
+
margin: 0; // Remove the margin in Firefox and Safari
|
190
|
+
font-family: inherit;
|
191
|
+
font-size: inherit;
|
192
|
+
line-height: inherit;
|
193
|
+
}
|
194
|
+
|
195
|
+
button,
|
196
|
+
input {
|
197
|
+
overflow: visible; // Show the overflow in Edge
|
198
|
+
}
|
199
|
+
|
200
|
+
button,
|
201
|
+
select {
|
202
|
+
text-transform: none; // Remove the inheritance of text transform in Firefox
|
203
|
+
}
|
204
|
+
|
205
|
+
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
206
|
+
// controls in Android 4.
|
207
|
+
// 2. Correct the inability to style clickable types in iOS and Safari.
|
208
|
+
button,
|
209
|
+
html [type="button"],
|
210
|
+
[type="reset"],
|
211
|
+
[type="submit"] {
|
212
|
+
-webkit-appearance: button;
|
213
|
+
}
|
214
|
+
|
215
|
+
input[type="radio"],
|
216
|
+
input[type="checkbox"] {
|
217
|
+
box-sizing: border-box; // 1. Add the correct box sizing in IE 10-
|
218
|
+
padding: 0; // 2. Remove the padding in IE 10-
|
219
|
+
}
|
220
|
+
|
221
|
+
input[type="date"],
|
222
|
+
input[type="time"],
|
223
|
+
input[type="datetime-local"],
|
224
|
+
input[type="month"] {
|
225
|
+
// Remove the default appearance of temporal inputs to avoid a Mobile Safari
|
226
|
+
// bug where setting a custom line-height prevents text from being vertically
|
227
|
+
// centered within the input.
|
228
|
+
-webkit-appearance: listbox;
|
229
|
+
}
|
230
|
+
|
231
|
+
textarea {
|
232
|
+
overflow: auto; // Remove the default vertical scrollbar in IE.
|
233
|
+
// Textareas should really only resize vertically so they don't break their (horizontal) containers.
|
234
|
+
resize: vertical;
|
235
|
+
}
|
236
|
+
|
237
|
+
fieldset {
|
238
|
+
// Browsers set a default `min-width: min-content;` on fieldsets,
|
239
|
+
// unlike e.g. `<div>`s, which have `min-width: 0;` by default.
|
240
|
+
min-width: 0;
|
241
|
+
}
|
242
|
+
|
243
|
+
// 1. Correct the text wrapping in Edge and IE.
|
244
|
+
// 2. Correct the color inheritance from `fieldset` elements in IE.
|
245
|
+
legend {
|
246
|
+
display: block;
|
247
|
+
width: 100%;
|
248
|
+
max-width: 100%;
|
249
|
+
margin-bottom: .5rem;
|
250
|
+
font-size: 1.5rem;
|
251
|
+
line-height: inherit;
|
252
|
+
color: inherit;
|
253
|
+
white-space: normal;
|
254
|
+
}
|
255
|
+
|
256
|
+
progress {
|
257
|
+
vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
258
|
+
}
|
259
|
+
|
260
|
+
// Correct the cursor style of increment and decrement buttons in Chrome.
|
261
|
+
[type="number"]::-webkit-inner-spin-button,
|
262
|
+
[type="number"]::-webkit-outer-spin-button {
|
263
|
+
height: auto;
|
264
|
+
}
|
265
|
+
|
266
|
+
[type="search"] {
|
267
|
+
// This overrides the extra rounded corners on search inputs in iOS so that our
|
268
|
+
// `.form-control` class can properly style them. Note that this cannot simply
|
269
|
+
// be added to `.form-control` as it's not specific enough
|
270
|
+
outline-offset: -2px; // Correct the outline style in Safari.
|
271
|
+
-webkit-appearance: none;
|
272
|
+
}
|
273
|
+
|
274
|
+
// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
275
|
+
//
|
276
|
+
[type="search"]::-webkit-search-cancel-button,
|
277
|
+
[type="search"]::-webkit-search-decoration {
|
278
|
+
-webkit-appearance: none;
|
279
|
+
}
|
280
|
+
|
281
|
+
// 1. Correct the inability to style clickable types in iOS and Safari.
|
282
|
+
// 2. Change font properties to `inherit` in Safari.
|
283
|
+
//
|
284
|
+
::-webkit-file-upload-button {
|
285
|
+
font: inherit;
|
286
|
+
-webkit-appearance: button;
|
287
|
+
}
|
288
|
+
|
289
|
+
|
290
|
+
// Correct element displays
|
291
|
+
//
|
292
|
+
output {
|
293
|
+
display: inline-block;
|
294
|
+
}
|
295
|
+
|
296
|
+
summary {
|
297
|
+
display: list-item; // Add the correct display in all browsers
|
298
|
+
cursor: pointer;
|
299
|
+
}
|
300
|
+
|
301
|
+
template {
|
302
|
+
display: none; // Add the correct display in IE
|
303
|
+
}
|
304
|
+
|
305
|
+
// Always hide an element with the `hidden` HTML attribute (from PureCSS).
|
306
|
+
// Needed for proper display in IE 10-.
|
307
|
+
[hidden] {
|
308
|
+
display: none !important;
|
309
|
+
}
|