pico-rails 1.4.4

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.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +53 -0
  3. data/app/assets/stylesheets/pico.classless.scss +13 -0
  4. data/app/assets/stylesheets/pico.fluid.classless.scss +16 -0
  5. data/app/assets/stylesheets/pico.scss +42 -0
  6. data/app/assets/stylesheets/pico.slim.scss +47 -0
  7. data/app/assets/stylesheets/scss/_variables.scss +66 -0
  8. data/app/assets/stylesheets/scss/components/_accordion.scss +90 -0
  9. data/app/assets/stylesheets/scss/components/_card.scss +33 -0
  10. data/app/assets/stylesheets/scss/components/_modal.scss +175 -0
  11. data/app/assets/stylesheets/scss/components/_nav.scss +73 -0
  12. data/app/assets/stylesheets/scss/components/_progress.scss +81 -0
  13. data/app/assets/stylesheets/scss/content/_button.scss +227 -0
  14. data/app/assets/stylesheets/scss/content/_code.scss +91 -0
  15. data/app/assets/stylesheets/scss/content/_embedded.scss +53 -0
  16. data/app/assets/stylesheets/scss/content/_form-alt-input-types.scss +258 -0
  17. data/app/assets/stylesheets/scss/content/_form-checkbox-radio.scss +138 -0
  18. data/app/assets/stylesheets/scss/content/_form.scss +361 -0
  19. data/app/assets/stylesheets/scss/content/_miscs.scss +33 -0
  20. data/app/assets/stylesheets/scss/content/_table.scss +52 -0
  21. data/app/assets/stylesheets/scss/content/_typography.scss +292 -0
  22. data/app/assets/stylesheets/scss/layout/_container.scss +42 -0
  23. data/app/assets/stylesheets/scss/layout/_document.scss +45 -0
  24. data/app/assets/stylesheets/scss/layout/_grid.scss +24 -0
  25. data/app/assets/stylesheets/scss/layout/_scroller.scss +16 -0
  26. data/app/assets/stylesheets/scss/layout/_section.scss +8 -0
  27. data/app/assets/stylesheets/scss/layout/_sectioning.scss +69 -0
  28. data/app/assets/stylesheets/scss/themes/default/_colors.scss +65 -0
  29. data/app/assets/stylesheets/scss/themes/default/_dark.scss +139 -0
  30. data/app/assets/stylesheets/scss/themes/default/_light.scss +139 -0
  31. data/app/assets/stylesheets/scss/themes/default/_styles.scss +238 -0
  32. data/app/assets/stylesheets/scss/themes/default.scss +29 -0
  33. data/app/assets/stylesheets/scss/utilities/_accessibility.scss +54 -0
  34. data/app/assets/stylesheets/scss/utilities/_loading.scss +58 -0
  35. data/app/assets/stylesheets/scss/utilities/_reduce-motion.scss +29 -0
  36. data/app/assets/stylesheets/scss/utilities/_tooltip.scss +105 -0
  37. data/lib/pico/engine.rb +4 -0
  38. data/lib/pico/version.rb +3 -0
  39. data/lib/pico-rails.rb +5 -0
  40. data/pico-rails.gemspec +16 -0
  41. metadata +97 -0
@@ -0,0 +1,29 @@
1
+ @if $enable-transitions and $enable-important {
2
+
3
+ /**
4
+ * Reduce Motion Features
5
+ */
6
+
7
+
8
+ // Based on :
9
+ // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
10
+ // ––––––––––––––––––––
11
+
12
+ // 1. Remove animations when motion is reduced (opinionated)
13
+ // 2. Remove fixed background attachments when motion is reduced (opinionated)
14
+ // 3. Remove timed scrolling behaviors when motion is reduced (opinionated)
15
+ // 4. Remove transitions when motion is reduced (opinionated)
16
+ @media (prefers-reduced-motion: reduce) {
17
+ *:not([aria-busy="true"]),
18
+ :not([aria-busy="true"])::before,
19
+ :not([aria-busy="true"])::after {
20
+ background-attachment: initial !important; // 2
21
+ animation-duration: 1ms !important; // 1
22
+ animation-delay: -1ms !important; // 1
23
+ animation-iteration-count: 1 !important; // 1
24
+ scroll-behavior: auto !important; // 3
25
+ transition-delay: 0s !important; // 4
26
+ transition-duration: 0s !important; // 4
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Tooltip ([data-tooltip])
3
+ */
4
+
5
+ [data-tooltip] {
6
+ position: relative;
7
+
8
+ &:not(a):not(button):not(input) {
9
+ border-bottom: 1px dotted;
10
+ text-decoration: none;
11
+ cursor: help;
12
+ }
13
+
14
+ &::before,
15
+ &::after {
16
+ display: block;
17
+ z-index: 99;
18
+ position: absolute;
19
+ bottom: 100%;
20
+ left: 50%;
21
+ padding: .25rem .5rem;
22
+ overflow: hidden;
23
+ transform: translate(-50%, -.25rem);
24
+ border-radius: var(--border-radius);
25
+ background: var(--tooltip-background-color);
26
+ content: attr(data-tooltip);
27
+ color: var(--tooltip-color);
28
+ font-style: normal;
29
+ font-weight: var(--font-weight);
30
+ font-size: .875rem;
31
+ text-decoration: none;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ opacity: 0;
35
+ pointer-events: none;
36
+ }
37
+
38
+ // Caret
39
+ &::after {
40
+ padding: 0;
41
+ transform: translate(-50%, 0rem);
42
+ border-top: .3rem solid;
43
+ border-right: .3rem solid transparent;
44
+ border-left: .3rem solid transparent;
45
+ border-radius: 0;
46
+ background-color: transparent;
47
+ content: '';
48
+ color: var(--tooltip-background-color);
49
+ }
50
+
51
+ // Display
52
+ &:focus,
53
+ &:hover {
54
+ &::before,
55
+ &::after {
56
+ opacity: 1;
57
+ }
58
+ }
59
+
60
+ // Animations, excluding touch devices
61
+ @if $enable-transitions {
62
+ @media (hover: hover) and (pointer: fine) {
63
+ &:focus,
64
+ &:hover {
65
+ &::before,
66
+ &::after {
67
+ animation-duration: .2s;
68
+ animation-name: slide;
69
+ }
70
+
71
+ &::after {
72
+ animation-name: slideCaret;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+
79
+ // Animations
80
+ @if $enable-transitions {
81
+ @keyframes slide {
82
+ from {
83
+ transform: translate(-50%, .75rem);
84
+ opacity: 0;
85
+ }
86
+ to {
87
+ transform: translate(-50%, -.25rem);
88
+ opacity: 1;
89
+ }
90
+ }
91
+
92
+ @keyframes slideCaret {
93
+ from {
94
+ opacity: 0;
95
+ }
96
+ 50% {
97
+ transform: translate(-50%, -.25rem);
98
+ opacity: 0;
99
+ }
100
+ to {
101
+ transform: translate(-50%, 0rem);
102
+ opacity: 1;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,4 @@
1
+ module PicoRails
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module PicoRails
2
+ VERSION = "1.4.4"
3
+ end
data/lib/pico-rails.rb ADDED
@@ -0,0 +1,5 @@
1
+ module PicoRails
2
+ end
3
+
4
+ require "pico/version"
5
+ require "pico/engine"
@@ -0,0 +1,16 @@
1
+ require_relative "lib/pico/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "pico-rails"
5
+ spec.version = PicoRails::VERSION
6
+ spec.authors = ["xzgyb"]
7
+ spec.email = ["xzgaoyanbing@163.com"]
8
+ spec.homepage = "https://github.com/xzgyb/pico-rails"
9
+ spec.summary = "Integrates pico.css with the rails asset pipeline."
10
+ spec.license = "MIT"
11
+
12
+ spec.metadata["homepage_uri"] = spec.homepage
13
+
14
+ spec.files = `git ls-files`.split($\)
15
+ spec.add_runtime_dependency 'sassc', '~> 2.0'
16
+ end
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pico-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.4
5
+ platform: ruby
6
+ authors:
7
+ - xzgyb
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sassc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ description:
28
+ email:
29
+ - xzgaoyanbing@163.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - README.md
35
+ - app/assets/stylesheets/pico.classless.scss
36
+ - app/assets/stylesheets/pico.fluid.classless.scss
37
+ - app/assets/stylesheets/pico.scss
38
+ - app/assets/stylesheets/pico.slim.scss
39
+ - app/assets/stylesheets/scss/_variables.scss
40
+ - app/assets/stylesheets/scss/components/_accordion.scss
41
+ - app/assets/stylesheets/scss/components/_card.scss
42
+ - app/assets/stylesheets/scss/components/_modal.scss
43
+ - app/assets/stylesheets/scss/components/_nav.scss
44
+ - app/assets/stylesheets/scss/components/_progress.scss
45
+ - app/assets/stylesheets/scss/content/_button.scss
46
+ - app/assets/stylesheets/scss/content/_code.scss
47
+ - app/assets/stylesheets/scss/content/_embedded.scss
48
+ - app/assets/stylesheets/scss/content/_form-alt-input-types.scss
49
+ - app/assets/stylesheets/scss/content/_form-checkbox-radio.scss
50
+ - app/assets/stylesheets/scss/content/_form.scss
51
+ - app/assets/stylesheets/scss/content/_miscs.scss
52
+ - app/assets/stylesheets/scss/content/_table.scss
53
+ - app/assets/stylesheets/scss/content/_typography.scss
54
+ - app/assets/stylesheets/scss/layout/_container.scss
55
+ - app/assets/stylesheets/scss/layout/_document.scss
56
+ - app/assets/stylesheets/scss/layout/_grid.scss
57
+ - app/assets/stylesheets/scss/layout/_scroller.scss
58
+ - app/assets/stylesheets/scss/layout/_section.scss
59
+ - app/assets/stylesheets/scss/layout/_sectioning.scss
60
+ - app/assets/stylesheets/scss/themes/default.scss
61
+ - app/assets/stylesheets/scss/themes/default/_colors.scss
62
+ - app/assets/stylesheets/scss/themes/default/_dark.scss
63
+ - app/assets/stylesheets/scss/themes/default/_light.scss
64
+ - app/assets/stylesheets/scss/themes/default/_styles.scss
65
+ - app/assets/stylesheets/scss/utilities/_accessibility.scss
66
+ - app/assets/stylesheets/scss/utilities/_loading.scss
67
+ - app/assets/stylesheets/scss/utilities/_reduce-motion.scss
68
+ - app/assets/stylesheets/scss/utilities/_tooltip.scss
69
+ - lib/pico-rails.rb
70
+ - lib/pico/engine.rb
71
+ - lib/pico/version.rb
72
+ - pico-rails.gemspec
73
+ homepage: https://github.com/xzgyb/pico-rails
74
+ licenses:
75
+ - MIT
76
+ metadata:
77
+ homepage_uri: https://github.com/xzgyb/pico-rails
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubygems_version: 3.2.15
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: Integrates pico.css with the rails asset pipeline.
97
+ test_files: []