cardinal-rails 3.1.0.00
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 +39 -0
- data/lib/cardinal/rails.rb +8 -0
- data/lib/cardinal/rails/version.rb +5 -0
- data/vendor/assets/stylesheets/cardinal.less +83 -0
- data/vendor/assets/stylesheets/core/base/anchors.less +18 -0
- data/vendor/assets/stylesheets/core/base/blockquotes.less +45 -0
- data/vendor/assets/stylesheets/core/base/code.less +68 -0
- data/vendor/assets/stylesheets/core/base/embedded-content.less +89 -0
- data/vendor/assets/stylesheets/core/base/form-elements.less +130 -0
- data/vendor/assets/stylesheets/core/base/headings.less +50 -0
- data/vendor/assets/stylesheets/core/base/horizontal-rules.less +10 -0
- data/vendor/assets/stylesheets/core/base/lists.less +57 -0
- data/vendor/assets/stylesheets/core/base/print.less +69 -0
- data/vendor/assets/stylesheets/core/base/root.less +90 -0
- data/vendor/assets/stylesheets/core/base/selections.less +30 -0
- data/vendor/assets/stylesheets/core/base/tables.less +18 -0
- data/vendor/assets/stylesheets/core/base/text-elements.less +83 -0
- data/vendor/assets/stylesheets/core/debug.less +154 -0
- data/vendor/assets/stylesheets/core/mixins/antialiasing.less +8 -0
- data/vendor/assets/stylesheets/core/mixins/clearing.less +27 -0
- data/vendor/assets/stylesheets/core/mixins/font-face.less +33 -0
- data/vendor/assets/stylesheets/core/mixins/media-queries.less +154 -0
- data/vendor/assets/stylesheets/core/mixins/momentum-scrolling.less +8 -0
- data/vendor/assets/stylesheets/core/mixins/text-truncate.less +9 -0
- data/vendor/assets/stylesheets/core/mixins/to-rem.less +76 -0
- data/vendor/assets/stylesheets/core/mixins/vertically-centered.less +9 -0
- data/vendor/assets/stylesheets/core/normalize.less +427 -0
- data/vendor/assets/stylesheets/core/reset.less +140 -0
- data/vendor/assets/stylesheets/core/variables.less +436 -0
- data/vendor/assets/stylesheets/layout/boxes.less +53 -0
- data/vendor/assets/stylesheets/layout/grids.less +614 -0
- data/vendor/assets/stylesheets/layout/wrappers.less +30 -0
- data/vendor/assets/stylesheets/objects/buttons.less +132 -0
- data/vendor/assets/stylesheets/objects/forms.less +61 -0
- data/vendor/assets/stylesheets/objects/lists.less +45 -0
- data/vendor/assets/stylesheets/objects/tables.less +116 -0
- data/vendor/assets/stylesheets/utilities/display.less +355 -0
- data/vendor/assets/stylesheets/utilities/floats.less +137 -0
- data/vendor/assets/stylesheets/utilities/font-sizes.less +269 -0
- data/vendor/assets/stylesheets/utilities/margins.less +1322 -0
- data/vendor/assets/stylesheets/utilities/paddings.less +1322 -0
- data/vendor/assets/stylesheets/utilities/positions.less +125 -0
- data/vendor/assets/stylesheets/utilities/text-alignment.less +127 -0
- data/vendor/assets/stylesheets/utilities/vertical-alignment.less +98 -0
- data/vendor/assets/stylesheets/utilities/visually-hidden.less +43 -0
- data/vendor/assets/stylesheets/utilities/widths.less +1455 -0
- data/vendor/assets/stylesheets/utilities/z-index.less +292 -0
- metadata +141 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1d9b58e8300f960f406e9da8878c701960369776
|
4
|
+
data.tar.gz: 8b4b620271b52d684428b4d475b671d6490720a0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5619a3d018d62ef11ba58936dd6a1fbef9123e77958e1197bc2204eee0e59392611fd673c55dbf9e27eaf29be31ea5ae621615d1e26ecfaf955ed1e5cbc687b9
|
7
|
+
data.tar.gz: d5a40508443cda04d125532f88aa1c58b63a8dc61f2f44b7507a09f0e2239247a709b325bd85c0e635e0147417891147b6302955786eef75770ef0a1b5e9196b
|
data/License.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Tim Yager
|
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,39 @@
|
|
1
|
+
# Cardinal::Rails
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cardinal/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'cardinal-rails'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install cardinal-rails
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
1. Fork it ( https://github.com/[my-github-username]/cardinal-rails/fork )
|
36
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
+
5. Create a new Pull Request
|
@@ -0,0 +1,83 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
//
|
4
|
+
// Core
|
5
|
+
//
|
6
|
+
// These variables, mixins, and styles are required if you want to use this
|
7
|
+
// framework, and they should be included in the following order.
|
8
|
+
//
|
9
|
+
|
10
|
+
// Core -> Variables
|
11
|
+
|
12
|
+
@import url("core/variables.less");
|
13
|
+
|
14
|
+
// Core -> Mixins
|
15
|
+
|
16
|
+
@import url("core/mixins/to-rem.less");
|
17
|
+
@import url("core/mixins/media-queries.less");
|
18
|
+
@import url("core/mixins/antialiasing.less");
|
19
|
+
@import url("core/mixins/clearing.less");
|
20
|
+
@import url("core/mixins/font-face.less");
|
21
|
+
@import url("core/mixins/momentum-scrolling.less");
|
22
|
+
@import url("core/mixins/text-truncate.less");
|
23
|
+
@import url("core/mixins/vertically-centered.less");
|
24
|
+
|
25
|
+
// Core -> Normalize
|
26
|
+
|
27
|
+
@import url("core/normalize.less");
|
28
|
+
|
29
|
+
// Core -> Reset
|
30
|
+
|
31
|
+
@import url("core/reset.less");
|
32
|
+
|
33
|
+
// Core -> Debug (DO NOT USE THIS STYLESHEET IN PRODUCTION!)
|
34
|
+
|
35
|
+
//@import url("core/debug.less");
|
36
|
+
|
37
|
+
// Core -> Base
|
38
|
+
|
39
|
+
@import url("core/base/root.less");
|
40
|
+
@import url("core/base/selections.less");
|
41
|
+
@import url("core/base/anchors.less");
|
42
|
+
@import url("core/base/text-elements.less");
|
43
|
+
@import url("core/base/headings.less");
|
44
|
+
@import url("core/base/blockquotes.less");
|
45
|
+
@import url("core/base/lists.less");
|
46
|
+
@import url("core/base/horizontal-rules.less");
|
47
|
+
@import url("core/base/code.less");
|
48
|
+
@import url("core/base/embedded-content.less");
|
49
|
+
@import url("core/base/form-elements.less");
|
50
|
+
@import url("core/base/tables.less");
|
51
|
+
@import url("core/base/print.less");
|
52
|
+
|
53
|
+
//
|
54
|
+
// Layout
|
55
|
+
//
|
56
|
+
|
57
|
+
@import url("layout/wrappers.less");
|
58
|
+
@import url("layout/grids.less");
|
59
|
+
@import url("layout/boxes.less");
|
60
|
+
|
61
|
+
//
|
62
|
+
// Objects
|
63
|
+
//
|
64
|
+
|
65
|
+
@import url("objects/buttons.less");
|
66
|
+
@import url("objects/forms.less");
|
67
|
+
@import url("objects/lists.less");
|
68
|
+
@import url("objects/tables.less");
|
69
|
+
|
70
|
+
//
|
71
|
+
// Utilities
|
72
|
+
//
|
73
|
+
|
74
|
+
@import url("utilities/display.less");
|
75
|
+
@import url("utilities/font-sizes.less");
|
76
|
+
@import url("utilities/floats.less");
|
77
|
+
@import url("utilities/margins.less");
|
78
|
+
@import url("utilities/paddings.less");
|
79
|
+
@import url("utilities/positions.less");
|
80
|
+
@import url("utilities/text-alignment.less");
|
81
|
+
@import url("utilities/vertical-alignment.less");
|
82
|
+
@import url("utilities/visually-hidden.less");
|
83
|
+
@import url("utilities/widths.less");
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Core -> Base -> Anchors ($core-base-anchors)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
a {
|
6
|
+
text-decoration: underline;
|
7
|
+
color: @anchor-text-color;
|
8
|
+
|
9
|
+
&:hover,
|
10
|
+
&:active,
|
11
|
+
&:focus {
|
12
|
+
text-decoration: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
&:focus {
|
16
|
+
outline: 1px dotted @color-gray-darkest;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Objects -> Blockquotes ($objects-blockquotes)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
blockquote {
|
6
|
+
color: @blockquote-text-color;
|
7
|
+
font-family: @blockquote-font-family;
|
8
|
+
font-style: @blockquote-font-style;
|
9
|
+
.to-rem(font-size, @blockquote-font-size);
|
10
|
+
.to-rem(margin-left, @blockquote-margin-left);
|
11
|
+
.to-rem(padding-left, @blockquote-padding-left);
|
12
|
+
.to-rem(border-left, @blockquote-border-width, @blockquote-border-style @blockquote-border-color);
|
13
|
+
|
14
|
+
p {
|
15
|
+
margin: 0;
|
16
|
+
+ p {
|
17
|
+
.to-rem(margin-top, @spacing-base);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Use <cite> inside blockquotes.
|
23
|
+
*
|
24
|
+
* @link http://cbrac.co/18LWCOw
|
25
|
+
*/
|
26
|
+
|
27
|
+
cite {
|
28
|
+
font-family: @blockquote-cite-font-family;
|
29
|
+
font-style: @blockquote-cite-font-style;
|
30
|
+
.to-rem(font-size, @blockquote-cite-font-size);
|
31
|
+
color: @blockquote-cite-text-color;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Add an m-dash character before the <cite> tag.
|
35
|
+
*/
|
36
|
+
|
37
|
+
&:before {
|
38
|
+
content: "\2014 \0020";
|
39
|
+
}
|
40
|
+
|
41
|
+
a {
|
42
|
+
color: @blockquote-cite-anchor-color;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Objects -> Code ($objects-code)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* 1. Correct `font-family` set oddly in Safari 5 and Chrome.
|
7
|
+
*/
|
8
|
+
|
9
|
+
code,
|
10
|
+
kbd,
|
11
|
+
pre,
|
12
|
+
samp {
|
13
|
+
font-family: @font-family-monospace; /* 1 */
|
14
|
+
.to-rem(font-size, @code-font-size);
|
15
|
+
font-style: @code-font-style;
|
16
|
+
color: @code-text-color;
|
17
|
+
}
|
18
|
+
|
19
|
+
code {
|
20
|
+
margin: 0;
|
21
|
+
.to-rem(padding, @code-padding);
|
22
|
+
white-space: nowrap;
|
23
|
+
.to-rem(border, @code-border-width, @code-border-style @code-border-color);
|
24
|
+
.to-rem(border-radius, @code-border-radius);
|
25
|
+
background-color: @code-background-color;
|
26
|
+
}
|
27
|
+
|
28
|
+
kbd {
|
29
|
+
position: relative;
|
30
|
+
top: -1px;
|
31
|
+
margin-bottom: 1px;
|
32
|
+
.to-rem(padding, @code-padding);
|
33
|
+
white-space: nowrap;
|
34
|
+
.to-rem(border, @code-border-width, @code-border-style @code-border-color);
|
35
|
+
.to-rem(border-radius, @code-border-radius);
|
36
|
+
background-color: @code-background-color;
|
37
|
+
box-shadow: 0 1px 0 @code-border-color, inset 0 0 0 1px @color-white;
|
38
|
+
}
|
39
|
+
|
40
|
+
pre {
|
41
|
+
position: relative;
|
42
|
+
overflow: auto;
|
43
|
+
.to-rem(padding, @code-pre-padding);
|
44
|
+
white-space: pre;
|
45
|
+
word-wrap: normal;
|
46
|
+
word-break: normal;
|
47
|
+
tab-size: 4;
|
48
|
+
hyphens: none;
|
49
|
+
color: @code-pre-text-color;
|
50
|
+
background: @code-pre-background-color;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Reset the above <code> styles when nested inside <pre> tags.
|
54
|
+
*/
|
55
|
+
|
56
|
+
code {
|
57
|
+
display: block;
|
58
|
+
overflow: auto;
|
59
|
+
height: 100%;
|
60
|
+
margin: 0;
|
61
|
+
padding: 0;
|
62
|
+
white-space: pre;
|
63
|
+
color: inherit;
|
64
|
+
border: none;
|
65
|
+
border-radius: 0;
|
66
|
+
background: transparent;
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Core -> Base -> Embedded Content ($core-base-embedded-content)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Remove the gap between audio, canvas, iframes, images, videos and the bottom
|
7
|
+
* of their containers.
|
8
|
+
*
|
9
|
+
* @link http://cbrac.co/Q6smqV
|
10
|
+
*/
|
11
|
+
|
12
|
+
audio,
|
13
|
+
canvas,
|
14
|
+
iframe,
|
15
|
+
img,
|
16
|
+
svg,
|
17
|
+
video {
|
18
|
+
vertical-align: middle;
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Fluid-width <audio>, <canvas>, & <video> elements.
|
23
|
+
*/
|
24
|
+
|
25
|
+
audio,
|
26
|
+
canvas,
|
27
|
+
video {
|
28
|
+
width: 100%;
|
29
|
+
&:focus {
|
30
|
+
outline: 1px dotted @color-black;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Fluid-width media elements that maintain their aspect ratios.
|
36
|
+
*/
|
37
|
+
|
38
|
+
embed,
|
39
|
+
img,
|
40
|
+
object,
|
41
|
+
video {
|
42
|
+
max-width: 100%;
|
43
|
+
height: auto;
|
44
|
+
}
|
45
|
+
|
46
|
+
embed,
|
47
|
+
object {
|
48
|
+
height: 100%;
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Reset `margin` for figure elements.
|
53
|
+
*/
|
54
|
+
|
55
|
+
figure {
|
56
|
+
margin-right: auto;
|
57
|
+
margin-left: auto;
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* Set <img> elements as block-level inside <figure> elements.
|
62
|
+
*/
|
63
|
+
|
64
|
+
figure > img {
|
65
|
+
display: block;
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Give <figcaption> elements some default styles.
|
70
|
+
*/
|
71
|
+
|
72
|
+
figcaption {
|
73
|
+
.to-rem(font-size, @font-size-xx-small);
|
74
|
+
font-style: italic;
|
75
|
+
.to-rem(margin-top, @figcaption-margin-top);
|
76
|
+
color: @figcaption-text-color;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* 1. If images do not load, the `alt` text will be visually offset and more
|
81
|
+
* noticeable.
|
82
|
+
* 2. Improve image resize rendering in IE6/7.
|
83
|
+
* @link http://cbrac.co/11ciIZL
|
84
|
+
*/
|
85
|
+
|
86
|
+
img {
|
87
|
+
font-style: italic; /* 1 */
|
88
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
89
|
+
}
|
@@ -0,0 +1,130 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Core -> Base -> Form Elements ($core-base-form-elements)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where [2] destroys native
|
7
|
+
* <audio> and <video> controls.
|
8
|
+
* 2. Improve usability and consistency of cursor style between
|
9
|
+
* image-type <input> and others.
|
10
|
+
*/
|
11
|
+
|
12
|
+
button,
|
13
|
+
html input[type="button"], /* 1 */
|
14
|
+
input[type="checkbox"],
|
15
|
+
input[type="file"],
|
16
|
+
input[type="image"],
|
17
|
+
input[type="radio"],
|
18
|
+
input[type="reset"],
|
19
|
+
input[type="submit"],
|
20
|
+
label,
|
21
|
+
select {
|
22
|
+
cursor: pointer; /* 2 */
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Work around a Firefox/IE bug where the transparent `button` background
|
27
|
+
* results in a loss of the default `button` focus styles.
|
28
|
+
*
|
29
|
+
* @link http://cbrac.co/1CVyNTj
|
30
|
+
*/
|
31
|
+
|
32
|
+
button:focus {
|
33
|
+
outline: 1px dotted;
|
34
|
+
outline: 5px auto -webkit-focus-ring-color;
|
35
|
+
}
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Fix vertical alignment inconsistencies with certain form inputs.
|
39
|
+
*/
|
40
|
+
|
41
|
+
input[type="color"],
|
42
|
+
input[type="range"] {
|
43
|
+
vertical-align: middle;
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* 1. Set `min-width` to 0 to avoid overflow issues in Chrome.
|
48
|
+
* 2. Remove default `margin`, `padding`, and `border` across browsers.
|
49
|
+
*/
|
50
|
+
|
51
|
+
fieldset {
|
52
|
+
min-width: 0; /* 1 */
|
53
|
+
margin: 0; /* 2 */
|
54
|
+
padding: 0; /* 2 */
|
55
|
+
border: 0; /* 2 */
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* 1. Set checkbox, image, and radio inputs to `inline-block`, by default.
|
60
|
+
*/
|
61
|
+
|
62
|
+
input[type="checkbox"],
|
63
|
+
input[type="image"],
|
64
|
+
input[type="radio"] {
|
65
|
+
display: inline-block; /* 1 */
|
66
|
+
width: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
/**
|
70
|
+
* 1. Constrict `max-width` for file inputs to avoid overflow issues.
|
71
|
+
*/
|
72
|
+
|
73
|
+
input[type="file"] {
|
74
|
+
max-width: 100%; /* 1 */
|
75
|
+
cursor: pointer;
|
76
|
+
}
|
77
|
+
|
78
|
+
/**
|
79
|
+
* 1. Set search inputs to `border-box` by default. This overrides the
|
80
|
+
* `content-box` value set by normalize.css.
|
81
|
+
* 2. Remove rounded corners from iOS search inputs by overriding `appearance:
|
82
|
+
* textfield` from normalize.css.
|
83
|
+
* @link http://cbrac.co/1xgTke2
|
84
|
+
*/
|
85
|
+
|
86
|
+
input[type="search"] {
|
87
|
+
box-sizing: border-box; /* 1 */
|
88
|
+
appearance: none; /* 2 */
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Remove rounded corners that iOS and Chrome apply to <input> buttons and
|
93
|
+
* <select> menus.
|
94
|
+
*/
|
95
|
+
|
96
|
+
input[type="submit"],
|
97
|
+
input[type="button"],
|
98
|
+
input[type="image"],
|
99
|
+
input[type="reset"],
|
100
|
+
select {
|
101
|
+
border-radius: 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* 1. Force Safari to give <legend> elements 100% width.
|
106
|
+
* 2. Remove `padding` so people aren't caught out if they zero out <fieldset>.
|
107
|
+
* 3. Correct `color` not being inherited in IE 8/9.
|
108
|
+
*/
|
109
|
+
|
110
|
+
legend {
|
111
|
+
font-weight: 700;
|
112
|
+
width: 100%; /* 1 */
|
113
|
+
padding: 0; /* 2 */
|
114
|
+
color: @form-legend-text-color; /* 3 */
|
115
|
+
border: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
/**
|
119
|
+
* 1. Restrict width to 100% of its parent to avoid horizontal overflow issues.
|
120
|
+
* 2. Force `height: auto;` for <textarea> across browsers.
|
121
|
+
* 3. <textarea> elements should only resize vertically.
|
122
|
+
*/
|
123
|
+
|
124
|
+
textarea {
|
125
|
+
max-width: 100%; /* 1 */
|
126
|
+
height: auto !important; /* 2 */
|
127
|
+
resize: vertical; /* 3 */
|
128
|
+
}
|
129
|
+
|
130
|
+
|