yakstrap 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  @mixin inputBase(){
2
- border: 1px solid lighten($secondary, 30%);
2
+ border: 1px solid $black;
3
3
  border-radius: 2px;
4
4
  background: lighten($background, 10%);
5
5
  color: $background_font_color;
@@ -0,0 +1,82 @@
1
+ @mixin inputBase(){
2
+ border: 1px solid lighten($secondary, 30%);
3
+ border-radius: 2px;
4
+ background: lighten($background, 10%);
5
+ color: $background_font_color;
6
+ padding: 3px 5px;
7
+ margin: 3px 2px;
8
+ }
9
+
10
+ @mixin inputWidth( $offset: 0px ){
11
+ @media (min-width: 480px){
12
+ width: 80px + $offset;
13
+ }
14
+ @media (min-width: 640px){
15
+ width: 120px + $offset;
16
+ }
17
+ @media (min-width: 720px){
18
+ width: 160px + $offset;
19
+ }
20
+ @media (min-width: 960px){
21
+ width: 200px + $offset;
22
+ }
23
+
24
+ &.tiny{
25
+ width: 80px + $offset;
26
+ }
27
+ &.small{
28
+ width: 160px + $offset;
29
+ }
30
+ &.normal{
31
+ width: 200px + $offset;
32
+ }
33
+ &.large{
34
+ width: 300px + $offset;
35
+ }
36
+ &.x-large{
37
+ width: 400px + $offset;
38
+ }
39
+ }
40
+
41
+ input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), textarea{
42
+ @include inputBase();
43
+ @include inputWidth();
44
+ }
45
+
46
+ label{
47
+ display: inline-block;
48
+ margin: 10px 0px 0px;
49
+ @media (min-width: 480px){
50
+ min-width: 60px;
51
+ }
52
+ @media (min-width: 640px){
53
+ min-width: 80px;
54
+ }
55
+ @media (min-width: 720px){
56
+ min-width: 120px;
57
+ }
58
+ @media (min-width: 960px){
59
+ min-width: 160px;
60
+ }
61
+ }
62
+
63
+ select{
64
+ @include inputBase();
65
+ @include inputWidth(12px);
66
+ }
67
+
68
+ .error input:not([type="submit"]):not([type="button"]), .error select, input:not([type="submit"]):not([type="button"]).error, select.error{
69
+ border-color: $red;
70
+ }
71
+
72
+ .error label, label.error{
73
+ text-decoration-line: underline;
74
+ text-decoration-style: wavy;
75
+ text-decoration-color: $red;
76
+ -moz-text-decoration-line: underline;
77
+ -moz-text-decoration-style: wavy;
78
+ -moz-text-decoration-color: $red;
79
+ -webkit-text-decoration-line: underline;
80
+ -webkit-text-decoration-style: wavy;
81
+ -webkit-text-decoration-color: $red;
82
+ }
@@ -1,3 +1,3 @@
1
1
  module Yakstrap
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Yakstrap
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yakstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -100,6 +100,7 @@ files:
100
100
  - app/assets/stylesheets/yakstrap/container.css.scss
101
101
  - app/assets/stylesheets/yakstrap/form.css.scss
102
102
  - app/assets/stylesheets/yakstrap/tip.css.scss
103
+ - app/assets/stylesheets/yakstrap/form.css.scss~
103
104
  - app/assets/stylesheets/yakstrap/container.css.scss~
104
105
  - app/assets/stylesheets/yakstrap/nav.css.scss
105
106
  - app/assets/stylesheets/yakstrap/button.css.scss~