tachyonscss-rails 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +33 -0
  3. data/README.md +42 -0
  4. data/Rakefile +43 -0
  5. data/app/assets/stylesheets/scss/_aspect-ratios.scss +142 -0
  6. data/app/assets/stylesheets/scss/_background-position.scss +133 -0
  7. data/app/assets/stylesheets/scss/_background-size.scss +41 -0
  8. data/app/assets/stylesheets/scss/_border-colors.scss +93 -0
  9. data/app/assets/stylesheets/scss/_border-radius.scss +134 -0
  10. data/app/assets/stylesheets/scss/_border-style.scss +55 -0
  11. data/app/assets/stylesheets/scss/_border-widths.scss +81 -0
  12. data/app/assets/stylesheets/scss/_borders.scss +65 -0
  13. data/app/assets/stylesheets/scss/_box-shadow.scss +48 -0
  14. data/app/assets/stylesheets/scss/_box-sizing.scss +49 -0
  15. data/app/assets/stylesheets/scss/_clears.scss +47 -0
  16. data/app/assets/stylesheets/scss/_code.scss +18 -0
  17. data/app/assets/stylesheets/scss/_coordinates.scss +153 -0
  18. data/app/assets/stylesheets/scss/_debug-children.scss +21 -0
  19. data/app/assets/stylesheets/scss/_debug-grid.scss +33 -0
  20. data/app/assets/stylesheets/scss/_debug.scss +127 -0
  21. data/app/assets/stylesheets/scss/_debug_children.scss +18 -0
  22. data/app/assets/stylesheets/scss/_display.scss +111 -0
  23. data/app/assets/stylesheets/scss/_flexbox.scss +257 -0
  24. data/app/assets/stylesheets/scss/_floats.scss +56 -0
  25. data/app/assets/stylesheets/scss/_font-family.scss +99 -0
  26. data/app/assets/stylesheets/scss/_font-style.scss +36 -0
  27. data/app/assets/stylesheets/scss/_font-weight.scss +87 -0
  28. data/app/assets/stylesheets/scss/_forms.scss +23 -0
  29. data/app/assets/stylesheets/scss/_gradients.scss +29 -0
  30. data/app/assets/stylesheets/scss/_heights.scss +131 -0
  31. data/app/assets/stylesheets/scss/_hovers.scss +166 -0
  32. data/app/assets/stylesheets/scss/_images.scss +18 -0
  33. data/app/assets/stylesheets/scss/_letter-spacing.scss +40 -0
  34. data/app/assets/stylesheets/scss/_line-height.scss +41 -0
  35. data/app/assets/stylesheets/scss/_links.scss +34 -0
  36. data/app/assets/stylesheets/scss/_lists.scss +15 -0
  37. data/app/assets/stylesheets/scss/_max-widths.scss +105 -0
  38. data/app/assets/stylesheets/scss/_module-template.scss +29 -0
  39. data/app/assets/stylesheets/scss/_negative-margins.scss +205 -0
  40. data/app/assets/stylesheets/scss/_nested.scss +63 -0
  41. data/app/assets/stylesheets/scss/_normalize.scss +454 -0
  42. data/app/assets/stylesheets/scss/_opacity.scss +27 -0
  43. data/app/assets/stylesheets/scss/_outlines.scss +39 -0
  44. data/app/assets/stylesheets/scss/_overflow.scss +82 -0
  45. data/app/assets/stylesheets/scss/_position.scss +44 -0
  46. data/app/assets/stylesheets/scss/_rotations.scss +50 -0
  47. data/app/assets/stylesheets/scss/_skins-pseudo.scss +243 -0
  48. data/app/assets/stylesheets/scss/_skins.scss +143 -0
  49. data/app/assets/stylesheets/scss/_spacing.scss +947 -0
  50. data/app/assets/stylesheets/scss/_styles.scss +15 -0
  51. data/app/assets/stylesheets/scss/_tables.scss +42 -0
  52. data/app/assets/stylesheets/scss/_text-align.scss +53 -0
  53. data/app/assets/stylesheets/scss/_text-decoration.scss +42 -0
  54. data/app/assets/stylesheets/scss/_text-transform.scss +53 -0
  55. data/app/assets/stylesheets/scss/_type-scale.scss +102 -0
  56. data/app/assets/stylesheets/scss/_typography.scss +129 -0
  57. data/app/assets/stylesheets/scss/_utilities.scss +57 -0
  58. data/app/assets/stylesheets/scss/_variables.scss +143 -0
  59. data/app/assets/stylesheets/scss/_vertical-align.scss +43 -0
  60. data/app/assets/stylesheets/scss/_visibility.scss +58 -0
  61. data/app/assets/stylesheets/scss/_white-space.scss +41 -0
  62. data/app/assets/stylesheets/scss/_widths.scss +150 -0
  63. data/app/assets/stylesheets/scss/_word-break.scss +43 -0
  64. data/app/assets/stylesheets/scss/_z-index.scss +60 -0
  65. data/app/assets/stylesheets/tachyons.scss +94 -0
  66. data/lib/tachyonscss-rails/engine.rb +11 -0
  67. data/lib/tachyonscss-rails/version.rb +3 -0
  68. data/lib/tachyonscss-rails.rb +5 -0
  69. metadata +113 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9d96d90b381e344f567c0a6095ac52a34a5bc63c31da98f337ea6990e46e30dc
4
+ data.tar.gz: 7dd5aad4b113febda1d568ec209edfa8b17c81244f9ca0c396a9d4be285d4097
5
+ SHA512:
6
+ metadata.gz: 5c718c3375f56f6d39d6092f068947c1e3b7ad64564ef6bafd4048e593580ef966ce7ab62231353cae8b38178f99879f06bf663b512413a8f32af3f2e57ae68c
7
+ data.tar.gz: 80c8a4c19a0b1fb7378e4cd33fbe909d5dd12153ec4baeb270d6732b13e671fae0ca6b05a62e0c372fc34384acc0aacaeb760b3cd8abb252e8700616c4c1985b
data/LICENSE.md ADDED
@@ -0,0 +1,33 @@
1
+ [tachyonscss-rails] Copyright (2021) (David Copeland)(“Licensor”)
2
+
3
+ Hippocratic License Version Number: 2.1.
4
+
5
+ Purpose. The purpose of this License is for the Licensor named above to permit the Licensee (as defined below) broad permission, if consistent with Human Rights Laws and Human Rights Principles (as each is defined below), to use and work with the Software (as defined below) within the full scope of Licensor’s copyright and patent rights, if any, in the Software, while ensuring attribution and protecting the Licensor from liability.
6
+
7
+ Permission and Conditions. The Licensor grants permission by this license (“License”), free of charge, to the extent of Licensor’s rights under applicable copyright and patent law, to any person or entity (the “Licensee”) obtaining a copy of this software and associated documentation files (the “Software”), to do everything with the Software that would otherwise infringe (i) the Licensor’s copyright in the Software or (ii) any patent claims to the Software that the Licensor can license or becomes able to license, subject to all of the following terms and conditions:
8
+
9
+ * Acceptance. This License is automatically offered to every person and entity subject to its terms and conditions. Licensee accepts this License and agrees to its terms and conditions by taking any action with the Software that, absent this License, would infringe any intellectual property right held by Licensor.
10
+
11
+ * Notice. Licensee must ensure that everyone who gets a copy of any part of this Software from Licensee, with or without changes, also receives the License and the above copyright notice (and if included by the Licensor, patent, trademark and attribution notice). Licensee must cause any modified versions of the Software to carry prominent notices stating that Licensee changed the Software. For clarity, although Licensee is free to create modifications of the Software and distribute only the modified portion created by Licensee with additional or different terms, the portion of the Software not modified must be distributed pursuant to this License. If anyone notifies Licensee in writing that Licensee has not complied with this Notice section, Licensee can keep this License by taking all practical steps to comply within 30 days after the notice. If Licensee does not do so, Licensee’s License (and all rights licensed hereunder) shall end immediately.
12
+
13
+ * Compliance with Human Rights Principles and Human Rights Laws.
14
+
15
+ 1. Human Rights Principles.
16
+
17
+ (a) Licensee is advised to consult the articles of the United Nations Universal Declaration of Human Rights and the United Nations Global Compact that define recognized principles of international human rights (the “Human Rights Principles”). Licensee shall use the Software in a manner consistent with Human Rights Principles.
18
+
19
+ (b) Unless the Licensor and Licensee agree otherwise, any dispute, controversy, or claim arising out of or relating to (i) Section 1(a) regarding Human Rights Principles, including the breach of Section 1(a), termination of this License for breach of the Human Rights Principles, or invalidity of Section 1(a) or (ii) a determination of whether any Law is consistent or in conflict with Human Rights Principles pursuant to Section 2, below, shall be settled by arbitration in accordance with the Hague Rules on Business and Human Rights Arbitration (the “Rules”); provided, however, that Licensee may elect not to participate in such arbitration, in which event this License (and all rights licensed hereunder) shall end immediately. The number of arbitrators shall be one unless the Rules require otherwise.
20
+
21
+ Unless both the Licensor and Licensee agree to the contrary: (1) All documents and information concerning the arbitration shall be public and may be disclosed by any party; (2) The repository referred to under Article 43 of the Rules shall make available to the public in a timely manner all documents concerning the arbitration which are communicated to it, including all submissions of the parties, all evidence admitted into the record of the proceedings, all transcripts or other recordings of hearings and all orders, decisions and awards of the arbitral tribunal, subject only to the arbitral tribunal's powers to take such measures as may be necessary to safeguard the integrity of the arbitral process pursuant to Articles 18, 33, 41 and 42 of the Rules; and (3) Article 26(6) of the Rules shall not apply.
22
+
23
+ 2. Human Rights Laws. The Software shall not be used by any person or entity for any systems, activities, or other uses that violate any Human Rights Laws. “Human Rights Laws” means any applicable laws, regulations, or rules (collectively, “Laws”) that protect human, civil, labor, privacy, political, environmental, security, economic, due process, or similar rights; provided, however, that such Laws are consistent and not in conflict with Human Rights Principles (a dispute over the consistency or a conflict between Laws and Human Rights Principles shall be determined by arbitration as stated above). Where the Human Rights Laws of more than one jurisdiction are applicable or in conflict with respect to the use of the Software, the Human Rights Laws that are most protective of the individuals or groups harmed shall apply.
24
+
25
+ 3. Indemnity. Licensee shall hold harmless and indemnify Licensor (and any other contributor) against all losses, damages, liabilities, deficiencies, claims, actions, judgments, settlements, interest, awards, penalties, fines, costs, or expenses of whatever kind, including Licensor’s reasonable attorneys’ fees, arising out of or relating to Licensee’s use of the Software in violation of Human Rights Laws or Human Rights Principles.
26
+
27
+ * Failure to Comply. Any failure of Licensee to act according to the terms and conditions of this License is both a breach of the License and an infringement of the intellectual property rights of the Licensor (subject to exceptions under Laws, e.g., fair use). In the event of a breach or infringement, the terms and conditions of this License may be enforced by Licensor under the Laws of any jurisdiction to which Licensee is subject. Licensee also agrees that the Licensor may enforce the terms and conditions of this License against Licensee through specific performance (or similar remedy under Laws) to the extent permitted by Laws. For clarity, except in the event of a breach of this License, infringement, or as otherwise stated in this License, Licensor may not terminate this License with Licensee.
28
+
29
+ * Enforceability and Interpretation. If any term or provision of this License is determined to be invalid, illegal, or unenforceable by a court of competent jurisdiction, then such invalidity, illegality, or unenforceability shall not affect any other term or provision of this License or invalidate or render unenforceable such term or provision in any other jurisdiction; provided, however, subject to a court modification pursuant to the immediately following sentence, if any term or provision of this License pertaining to Human Rights Laws or Human Rights Principles is deemed invalid, illegal, or unenforceable against Licensee by a court of competent jurisdiction, all rights in the Software granted to Licensee shall be deemed null and void as between Licensor and Licensee. Upon a determination that any term or provision is invalid, illegal, or unenforceable, to the extent permitted by Laws, the court may modify this License to affect the original purpose that the Software be used in compliance with Human Rights Principles and Human Rights Laws as closely as possible. The language in this License shall be interpreted as to its fair meaning and not strictly for or against any party.
30
+
31
+ * Disclaimer. TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE COMES “AS IS,” WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR AND ANY OTHER CONTRIBUTOR SHALL NOT BE LIABLE TO ANYONE FOR ANY DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THIS LICENSE, UNDER ANY KIND OF LEGAL CLAIM.
32
+
33
+ This Hippocratic License is an Ethical Source license (https://ethicalsource.dev) and is offered for use by licensors and licensees at their own risk, on an “AS IS” basis, and with no warranties express or implied, to the maximum extent permitted by Laws.
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # tachyonscss-rails - Use Tachyons in a Rails App without NPM Modules
2
+
3
+ Rails 7 has brought the Asset Pipeline back into the spotlight, which means that bundling CSS without NPM requires gems. This
4
+ gem allows you to use [Tachyons](https://tachyons.io) without having to set up a JS bundler in your Rails 7 app.
5
+
6
+ ## Install
7
+
8
+ Add to your `Gemfile`:
9
+
10
+ ```ruby
11
+ gem "tachyonscss-rails"
12
+ ```
13
+
14
+ then `bundle install`
15
+
16
+ ## Use
17
+
18
+ The most common way to use this is:
19
+
20
+ 1. Ensure you have `sassc-rails` in your `Gemfile`
21
+ 1. Ensure your `app/assets/stylesheets/application.scss` file is, in fact, a `.scss` file and not `.css`. If you haven't put anything in it, you can rename it safely.
22
+ 1. Add to `app/assets/stylesheets/applicationscss`:
23
+
24
+ ```scss
25
+ @import "tachyons";
26
+ ```
27
+ 1. If you want to customize Tachyons, [the variables partial](https://github.com/tachyons-css/tachyons-sass/blob/master/scss/_variables.scss) is a guide to what you can modify. To do that, create the file `app/assets/stylesheets/tachyons-overrides.scss` (or whatever name you like). For example, you could change the green skin like so:
28
+
29
+ ```scss
30
+ $green: 00ff00;
31
+ ```
32
+ Then add it *before* the tachyons `@import` in `app/assets/stylesheets/application.scss:
33
+
34
+ ```scss
35
+ @import "tachyons-overrides";
36
+ @import "tachyons";
37
+ ```
38
+
39
+ Basically, this gem makes it so you can `@import "tachyons";` and it will build the CSS file from the contents of the
40
+ [tachyons-sass](https://github.com/tachyons-css/tachyons-sass) module that this gem wraps.
41
+
42
+
data/Rakefile ADDED
@@ -0,0 +1,43 @@
1
+ require "pathname"
2
+ require "fileutils"
3
+ require "bundler/gem_tasks"
4
+
5
+ THIS_GEM_ROOT = Pathname(__FILE__).dirname.expand_path
6
+
7
+ task :default => [ :update_tachyons ]
8
+
9
+ include FileUtils
10
+
11
+ task :update_tachyons do
12
+
13
+ tmp = THIS_GEM_ROOT / "tmp"
14
+ assets_root = THIS_GEM_ROOT / "app" / "assets" / "stylesheets"
15
+ partials_dir = assets_root / "scss"
16
+
17
+ rm_rf tmp
18
+ mkdir_p tmp
19
+ chdir tmp do
20
+ sh "git clone git@github.com:tachyons-css/tachyons-sass.git"
21
+ mkdir_p assets_root
22
+ mkdir_p partials_dir
23
+ cp "tachyons-sass/tachyons.scss", assets_root
24
+ Dir["tachyons-sass/scss/*"].each do |file|
25
+ cp file, partials_dir
26
+ end
27
+ end
28
+ css_lines = File.read(assets_root / "tachyons.scss").split(/\n/)
29
+ version = nil
30
+ if css_lines.first =~ /^\/\*\! TACHYONS v(.*) \|.*$/
31
+ version = $1
32
+ elsif css_lines.first =~ /^\/\/ \! TACHYONS v(.*) \|.*$/
33
+ version = $1
34
+ else
35
+ raise "Cannot parse version from #{css_lines.first} from #{url}"
36
+ end
37
+ File.open(THIS_GEM_ROOT / "lib" / "tachyonscss-rails" / "version.rb","w") do |file|
38
+ file.puts "module TachyonscssRails"
39
+ file.puts " VERSION = \"#{version}\""
40
+ file.puts "end"
41
+ end
42
+ puts "Updated Tachyons, version #{version}"
43
+ end
@@ -0,0 +1,142 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /*
9
+
10
+ ASPECT RATIOS
11
+
12
+ */
13
+
14
+ /* This is for fluid media that is embedded from third party sites like youtube, vimeo etc.
15
+ * Wrap the outer element in aspect-ratio and then extend it with the desired ratio i.e
16
+ * Make sure there are no height and width attributes on the embedded media.
17
+ * Adapted from: https://github.com/suitcss/components-flex-embed
18
+ *
19
+ * Example:
20
+ *
21
+ * <div class="aspect-ratio aspect-ratio--16x9">
22
+ * <iframe class="aspect-ratio--object"></iframe>
23
+ * </div>
24
+ *
25
+ * */
26
+
27
+ .aspect-ratio {
28
+ height: 0;
29
+ position: relative;
30
+ }
31
+
32
+ .aspect-ratio--16x9 { padding-bottom: 56.25%; }
33
+ .aspect-ratio--9x16 { padding-bottom: 177.77%; }
34
+
35
+ .aspect-ratio--4x3 { padding-bottom: 75%; }
36
+ .aspect-ratio--3x4 { padding-bottom: 133.33%; }
37
+
38
+ .aspect-ratio--6x4 { padding-bottom: 66.6%; }
39
+ .aspect-ratio--4x6 { padding-bottom: 150%; }
40
+
41
+ .aspect-ratio--8x5 { padding-bottom: 62.5%; }
42
+ .aspect-ratio--5x8 { padding-bottom: 160%; }
43
+
44
+ .aspect-ratio--7x5 { padding-bottom: 71.42%; }
45
+ .aspect-ratio--5x7 { padding-bottom: 140%; }
46
+
47
+ .aspect-ratio--1x1 { padding-bottom: 100%; }
48
+
49
+ .aspect-ratio--object {
50
+ position: absolute;
51
+ top: 0;
52
+ right: 0;
53
+ bottom: 0;
54
+ left: 0;
55
+ width: 100%;
56
+ height: 100%;
57
+ z-index: 100;
58
+ }
59
+
60
+ @media #{$breakpoint-not-small}{
61
+ .aspect-ratio-ns {
62
+ height: 0;
63
+ position: relative;
64
+ }
65
+ .aspect-ratio--16x9-ns { padding-bottom: 56.25%; }
66
+ .aspect-ratio--9x16-ns { padding-bottom: 177.77%; }
67
+ .aspect-ratio--4x3-ns { padding-bottom: 75%; }
68
+ .aspect-ratio--3x4-ns { padding-bottom: 133.33%; }
69
+ .aspect-ratio--6x4-ns { padding-bottom: 66.6%; }
70
+ .aspect-ratio--4x6-ns { padding-bottom: 150%; }
71
+ .aspect-ratio--8x5-ns { padding-bottom: 62.5%; }
72
+ .aspect-ratio--5x8-ns { padding-bottom: 160%; }
73
+ .aspect-ratio--7x5-ns { padding-bottom: 71.42%; }
74
+ .aspect-ratio--5x7-ns { padding-bottom: 140%; }
75
+ .aspect-ratio--1x1-ns { padding-bottom: 100%; }
76
+ .aspect-ratio--object-ns {
77
+ position: absolute;
78
+ top: 0;
79
+ right: 0;
80
+ bottom: 0;
81
+ left: 0;
82
+ width: 100%;
83
+ height: 100%;
84
+ z-index: 100;
85
+ }
86
+ }
87
+
88
+ @media #{$breakpoint-medium}{
89
+ .aspect-ratio-m {
90
+ height: 0;
91
+ position: relative;
92
+ }
93
+ .aspect-ratio--16x9-m { padding-bottom: 56.25%; }
94
+ .aspect-ratio--9x16-m { padding-bottom: 177.77%; }
95
+ .aspect-ratio--4x3-m { padding-bottom: 75%; }
96
+ .aspect-ratio--3x4-m { padding-bottom: 133.33%; }
97
+ .aspect-ratio--6x4-m { padding-bottom: 66.6%; }
98
+ .aspect-ratio--4x6-m { padding-bottom: 150%; }
99
+ .aspect-ratio--8x5-m { padding-bottom: 62.5%; }
100
+ .aspect-ratio--5x8-m { padding-bottom: 160%; }
101
+ .aspect-ratio--7x5-m { padding-bottom: 71.42%; }
102
+ .aspect-ratio--5x7-m { padding-bottom: 140%; }
103
+ .aspect-ratio--1x1-m { padding-bottom: 100%; }
104
+ .aspect-ratio--object-m {
105
+ position: absolute;
106
+ top: 0;
107
+ right: 0;
108
+ bottom: 0;
109
+ left: 0;
110
+ width: 100%;
111
+ height: 100%;
112
+ z-index: 100;
113
+ }
114
+ }
115
+
116
+ @media #{$breakpoint-large}{
117
+ .aspect-ratio-l {
118
+ height: 0;
119
+ position: relative;
120
+ }
121
+ .aspect-ratio--16x9-l { padding-bottom: 56.25%; }
122
+ .aspect-ratio--9x16-l { padding-bottom: 177.77%; }
123
+ .aspect-ratio--4x3-l { padding-bottom: 75%; }
124
+ .aspect-ratio--3x4-l { padding-bottom: 133.33%; }
125
+ .aspect-ratio--6x4-l { padding-bottom: 66.6%; }
126
+ .aspect-ratio--4x6-l { padding-bottom: 150%; }
127
+ .aspect-ratio--8x5-l { padding-bottom: 62.5%; }
128
+ .aspect-ratio--5x8-l { padding-bottom: 160%; }
129
+ .aspect-ratio--7x5-l { padding-bottom: 71.42%; }
130
+ .aspect-ratio--5x7-l { padding-bottom: 140%; }
131
+ .aspect-ratio--1x1-l { padding-bottom: 100%; }
132
+ .aspect-ratio--object-l {
133
+ position: absolute;
134
+ top: 0;
135
+ right: 0;
136
+ bottom: 0;
137
+ left: 0;
138
+ width: 100%;
139
+ height: 100%;
140
+ z-index: 100;
141
+ }
142
+ }
@@ -0,0 +1,133 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /*
9
+
10
+ BACKGROUND POSITION
11
+
12
+ Base:
13
+ bg = background
14
+
15
+ Modifiers:
16
+ -center = center center
17
+ -top = top center
18
+ -right = center right
19
+ -bottom = bottom center
20
+ -left = center left
21
+
22
+ Media Query Extensions:
23
+ -ns = not-small
24
+ -m = medium
25
+ -l = large
26
+
27
+ */
28
+
29
+ .bg-center {
30
+ background-repeat: no-repeat;
31
+ background-position: center center;
32
+ }
33
+
34
+ .bg-top {
35
+ background-repeat: no-repeat;
36
+ background-position: top center;
37
+ }
38
+
39
+ .bg-right {
40
+ background-repeat: no-repeat;
41
+ background-position: center right;
42
+ }
43
+
44
+ .bg-bottom {
45
+ background-repeat: no-repeat;
46
+ background-position: bottom center;
47
+ }
48
+
49
+ .bg-left {
50
+ background-repeat: no-repeat;
51
+ background-position: center left;
52
+ }
53
+
54
+ @media #{$breakpoint-not-small} {
55
+ .bg-center-ns {
56
+ background-repeat: no-repeat;
57
+ background-position: center center;
58
+ }
59
+
60
+ .bg-top-ns {
61
+ background-repeat: no-repeat;
62
+ background-position: top center;
63
+ }
64
+
65
+ .bg-right-ns {
66
+ background-repeat: no-repeat;
67
+ background-position: center right;
68
+ }
69
+
70
+ .bg-bottom-ns {
71
+ background-repeat: no-repeat;
72
+ background-position: bottom center;
73
+ }
74
+
75
+ .bg-left-ns {
76
+ background-repeat: no-repeat;
77
+ background-position: center left;
78
+ }
79
+ }
80
+
81
+ @media #{$breakpoint-medium} {
82
+ .bg-center-m {
83
+ background-repeat: no-repeat;
84
+ background-position: center center;
85
+ }
86
+
87
+ .bg-top-m {
88
+ background-repeat: no-repeat;
89
+ background-position: top center;
90
+ }
91
+
92
+ .bg-right-m {
93
+ background-repeat: no-repeat;
94
+ background-position: center right;
95
+ }
96
+
97
+ .bg-bottom-m {
98
+ background-repeat: no-repeat;
99
+ background-position: bottom center;
100
+ }
101
+
102
+ .bg-left-m {
103
+ background-repeat: no-repeat;
104
+ background-position: center left;
105
+ }
106
+ }
107
+
108
+ @media #{$breakpoint-large} {
109
+ .bg-center-l {
110
+ background-repeat: no-repeat;
111
+ background-position: center center;
112
+ }
113
+
114
+ .bg-top-l {
115
+ background-repeat: no-repeat;
116
+ background-position: top center;
117
+ }
118
+
119
+ .bg-right-l {
120
+ background-repeat: no-repeat;
121
+ background-position: center right;
122
+ }
123
+
124
+ .bg-bottom-l {
125
+ background-repeat: no-repeat;
126
+ background-position: bottom center;
127
+ }
128
+
129
+ .bg-left-l {
130
+ background-repeat: no-repeat;
131
+ background-position: center left;
132
+ }
133
+ }
@@ -0,0 +1,41 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /*
9
+
10
+ BACKGROUND SIZE
11
+ Docs: http://tachyons.io/docs/themes/background-size/
12
+
13
+ Media Query Extensions:
14
+ -ns = not-small
15
+ -m = medium
16
+ -l = large
17
+
18
+ */
19
+
20
+ /*
21
+ Often used in combination with background image set as an inline style
22
+ on an html element.
23
+ */
24
+
25
+ .cover { background-size: cover!important; }
26
+ .contain { background-size: contain!important; }
27
+
28
+ @media #{$breakpoint-not-small} {
29
+ .cover-ns { background-size: cover!important; }
30
+ .contain-ns { background-size: contain!important; }
31
+ }
32
+
33
+ @media #{$breakpoint-medium} {
34
+ .cover-m { background-size: cover!important; }
35
+ .contain-m { background-size: contain!important; }
36
+ }
37
+
38
+ @media #{$breakpoint-large} {
39
+ .cover-l { background-size: cover!important; }
40
+ .contain-l { background-size: contain!important; }
41
+ }
@@ -0,0 +1,93 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /*
9
+
10
+ BORDER COLORS
11
+ Docs: http://tachyons.io/docs/themes/borders/
12
+
13
+ Border colors can be used to extend the base
14
+ border classes ba,bt,bb,br,bl found in the _borders.css file.
15
+
16
+ The base border class by default will set the color of the border
17
+ to that of the current text color. These classes are for the cases
18
+ where you desire for the text and border colors to be different.
19
+
20
+ Base:
21
+ b = border
22
+
23
+ Modifiers:
24
+ --color-name = each color variable name is also a border color name
25
+
26
+ */
27
+
28
+ .b--black { border-color: $black; }
29
+ .b--near-black { border-color: $near-black; }
30
+ .b--dark-gray { border-color: $dark-gray; }
31
+ .b--mid-gray { border-color: $mid-gray; }
32
+ .b--gray { border-color: $gray; }
33
+ .b--silver { border-color: $silver; }
34
+ .b--light-silver { border-color: $light-silver; }
35
+ .b--moon-gray { border-color: $moon-gray; }
36
+ .b--light-gray { border-color: $light-gray; }
37
+ .b--near-white { border-color: $near-white; }
38
+ .b--white { border-color: $white; }
39
+
40
+ .b--white-90 { border-color: $white-90; }
41
+ .b--white-80 { border-color: $white-80; }
42
+ .b--white-70 { border-color: $white-70; }
43
+ .b--white-60 { border-color: $white-60; }
44
+ .b--white-50 { border-color: $white-50; }
45
+ .b--white-40 { border-color: $white-40; }
46
+ .b--white-30 { border-color: $white-30; }
47
+ .b--white-20 { border-color: $white-20; }
48
+ .b--white-10 { border-color: $white-10; }
49
+ .b--white-05 { border-color: $white-05; }
50
+ .b--white-025 { border-color: $white-025; }
51
+ .b--white-0125 { border-color: $white-0125; }
52
+
53
+ .b--black-90 { border-color: $black-90; }
54
+ .b--black-80 { border-color: $black-80; }
55
+ .b--black-70 { border-color: $black-70; }
56
+ .b--black-60 { border-color: $black-60; }
57
+ .b--black-50 { border-color: $black-50; }
58
+ .b--black-40 { border-color: $black-40; }
59
+ .b--black-30 { border-color: $black-30; }
60
+ .b--black-20 { border-color: $black-20; }
61
+ .b--black-10 { border-color: $black-10; }
62
+ .b--black-05 { border-color: $black-05; }
63
+ .b--black-025 { border-color: $black-025; }
64
+ .b--black-0125 { border-color: $black-0125; }
65
+
66
+ .b--dark-red { border-color: $dark-red; }
67
+ .b--red { border-color: $red; }
68
+ .b--light-red { border-color: $light-red; }
69
+ .b--orange { border-color: $orange; }
70
+ .b--gold { border-color: $gold; }
71
+ .b--yellow { border-color: $yellow; }
72
+ .b--light-yellow { border-color: $light-yellow; }
73
+ .b--purple { border-color: $purple; }
74
+ .b--light-purple { border-color: $light-purple; }
75
+ .b--dark-pink { border-color: $dark-pink; }
76
+ .b--hot-pink { border-color: $hot-pink; }
77
+ .b--pink { border-color: $pink; }
78
+ .b--light-pink { border-color: $light-pink; }
79
+ .b--dark-green { border-color: $dark-green; }
80
+ .b--green { border-color: $green; }
81
+ .b--light-green { border-color: $light-green; }
82
+ .b--navy { border-color: $navy; }
83
+ .b--dark-blue { border-color: $dark-blue; }
84
+ .b--blue { border-color: $blue; }
85
+ .b--light-blue { border-color: $light-blue; }
86
+ .b--lightest-blue { border-color: $lightest-blue; }
87
+ .b--washed-blue { border-color: $washed-blue; }
88
+ .b--washed-green { border-color: $washed-green; }
89
+ .b--washed-yellow { border-color: $washed-yellow; }
90
+ .b--washed-red { border-color: $washed-red; }
91
+
92
+ .b--transparent { border-color: $transparent; }
93
+ .b--inherit { border-color: inherit; }
@@ -0,0 +1,134 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /*
9
+
10
+ BORDER RADIUS
11
+ Docs: http://tachyons.io/docs/themes/border-radius/
12
+
13
+ Base:
14
+ br = border-radius
15
+
16
+ Modifiers:
17
+ 0 = 0/none
18
+ 1 = 1st step in scale
19
+ 2 = 2nd step in scale
20
+ 3 = 3rd step in scale
21
+ 4 = 4th step in scale
22
+
23
+ Literal values:
24
+ -100 = 100%
25
+ -pill = 9999px
26
+
27
+ Media Query Extensions:
28
+ -ns = not-small
29
+ -m = medium
30
+ -l = large
31
+
32
+ */
33
+
34
+ .br0 { border-radius: $border-radius-none }
35
+ .br1 { border-radius: $border-radius-1; }
36
+ .br2 { border-radius: $border-radius-2; }
37
+ .br3 { border-radius: $border-radius-3; }
38
+ .br4 { border-radius: $border-radius-4; }
39
+ .br-100 { border-radius: $border-radius-circle; }
40
+ .br-pill { border-radius: $border-radius-pill; }
41
+ .br--bottom {
42
+ border-top-left-radius: 0;
43
+ border-top-right-radius: 0;
44
+ }
45
+ .br--top {
46
+ border-bottom-left-radius: 0;
47
+ border-bottom-right-radius: 0;
48
+ }
49
+ .br--right {
50
+ border-top-left-radius: 0;
51
+ border-bottom-left-radius: 0;
52
+ }
53
+ .br--left {
54
+ border-top-right-radius: 0;
55
+ border-bottom-right-radius: 0;
56
+ }
57
+
58
+ @media #{$breakpoint-not-small} {
59
+ .br0-ns { border-radius: $border-radius-none }
60
+ .br1-ns { border-radius: $border-radius-1; }
61
+ .br2-ns { border-radius: $border-radius-2; }
62
+ .br3-ns { border-radius: $border-radius-3; }
63
+ .br4-ns { border-radius: $border-radius-4; }
64
+ .br-100-ns { border-radius: $border-radius-circle; }
65
+ .br-pill-ns { border-radius: $border-radius-pill; }
66
+ .br--bottom-ns {
67
+ border-top-left-radius: 0;
68
+ border-top-right-radius: 0;
69
+ }
70
+ .br--top-ns {
71
+ border-bottom-left-radius: 0;
72
+ border-bottom-right-radius: 0;
73
+ }
74
+ .br--right-ns {
75
+ border-top-left-radius: 0;
76
+ border-bottom-left-radius: 0;
77
+ }
78
+ .br--left-ns {
79
+ border-top-right-radius: 0;
80
+ border-bottom-right-radius: 0;
81
+ }
82
+ }
83
+
84
+ @media #{$breakpoint-medium} {
85
+ .br0-m { border-radius: $border-radius-none }
86
+ .br1-m { border-radius: $border-radius-1; }
87
+ .br2-m { border-radius: $border-radius-2; }
88
+ .br3-m { border-radius: $border-radius-3; }
89
+ .br4-m { border-radius: $border-radius-4; }
90
+ .br-100-m { border-radius: $border-radius-circle; }
91
+ .br-pill-m { border-radius: $border-radius-pill; }
92
+ .br--bottom-m {
93
+ border-top-left-radius: 0;
94
+ border-top-right-radius: 0;
95
+ }
96
+ .br--top-m {
97
+ border-bottom-left-radius: 0;
98
+ border-bottom-right-radius: 0;
99
+ }
100
+ .br--right-m {
101
+ border-top-left-radius: 0;
102
+ border-bottom-left-radius: 0;
103
+ }
104
+ .br--left-m {
105
+ border-top-right-radius: 0;
106
+ border-bottom-right-radius: 0;
107
+ }
108
+ }
109
+
110
+ @media #{$breakpoint-large} {
111
+ .br0-l { border-radius: $border-radius-none }
112
+ .br1-l { border-radius: $border-radius-1; }
113
+ .br2-l { border-radius: $border-radius-2; }
114
+ .br3-l { border-radius: $border-radius-3; }
115
+ .br4-l { border-radius: $border-radius-4; }
116
+ .br-100-l { border-radius: $border-radius-circle; }
117
+ .br-pill-l { border-radius: $border-radius-pill; }
118
+ .br--bottom-l {
119
+ border-top-left-radius: 0;
120
+ border-top-right-radius: 0;
121
+ }
122
+ .br--top-l {
123
+ border-bottom-left-radius: 0;
124
+ border-bottom-right-radius: 0;
125
+ }
126
+ .br--right-l {
127
+ border-top-left-radius: 0;
128
+ border-bottom-left-radius: 0;
129
+ }
130
+ .br--left-l {
131
+ border-top-right-radius: 0;
132
+ border-bottom-right-radius: 0;
133
+ }
134
+ }