bastion 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +5 -6
  3. data/Rakefile +1 -1
  4. data/app/assets/javascripts/bastion/bastion-bootstrap.js +0 -4
  5. data/app/assets/javascripts/bastion/bastion.js +3 -9
  6. data/app/assets/javascripts/bastion/bastion.module.js +1 -1
  7. data/app/assets/javascripts/bastion/{incubator/alch-alert.directive.js → components/bst-alert.directive.js} +4 -4
  8. data/app/assets/javascripts/bastion/{incubator/alch-container-scroll.directive.js → components/bst-container-scroll.directive.js} +3 -3
  9. data/app/assets/javascripts/bastion/{incubator/alch-dropdown.directive.js → components/bst-dropdown.directive.js} +4 -4
  10. data/app/assets/javascripts/bastion/{incubator/alch-edit.directive.js → components/bst-edit.directive.js} +34 -34
  11. data/app/assets/javascripts/bastion/{incubator/alch-flyout.directive.js → components/bst-flyout.directive.js} +4 -4
  12. data/app/assets/javascripts/bastion/{incubator/alch-form-buttons.directive.js → components/bst-form-buttons.directive.js} +4 -4
  13. data/app/assets/javascripts/bastion/{incubator/alch-form-group.directive.js → components/bst-form-group.directive.js} +4 -4
  14. data/app/assets/javascripts/bastion/{incubator/alch-infinite-scroll.directive.js → components/bst-infinite-scroll.directive.js} +5 -5
  15. data/app/assets/javascripts/bastion/{incubator/alch-menu.directive.js → components/bst-menu.directive.js} +4 -4
  16. data/app/assets/javascripts/bastion/{incubator/alch-modal.directive.js → components/bst-modal.directive.js} +5 -5
  17. data/app/assets/javascripts/bastion/components/bst-on-enter.directive.js +41 -0
  18. data/app/assets/javascripts/bastion/{incubator/alch-save-control.directive.js → components/bst-save-control.directive.js} +4 -4
  19. data/app/assets/javascripts/bastion/{incubator/alch-table.directive.js → components/bst-table.directive.js} +31 -31
  20. data/app/assets/javascripts/bastion/components/components.module.js +27 -0
  21. data/app/assets/javascripts/bastion/{widgets → components}/current-tasks.directive.js +3 -3
  22. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/array-to-string.filter.js +2 -2
  23. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/boolean-to-yes-no.filter.js +2 -2
  24. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/capitalize.filter.js +2 -2
  25. data/app/assets/javascripts/bastion/{incubator/format/alch-format.module.js → components/formatters/components-formatters.module.js} +2 -2
  26. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/key-value-to-string.filter.js +2 -2
  27. data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/unlimitedFilter.filter.js +3 -3
  28. data/app/assets/javascripts/bastion/{widgets → components}/nutupane-table.directive.js +1 -1
  29. data/app/assets/javascripts/bastion/{widgets → components}/nutupane.factory.js +2 -2
  30. data/app/assets/javascripts/bastion/{widgets → components}/page-title.directive.js +2 -2
  31. data/app/assets/javascripts/bastion/{widgets → components}/page-title.service.js +2 -2
  32. data/app/assets/javascripts/bastion/{widgets → components}/path-selector.directive.js +3 -3
  33. data/app/assets/javascripts/bastion/{incubator/views/alch-alert.html → components/views/bst-alert.html} +0 -0
  34. data/app/assets/javascripts/bastion/{incubator/views/alch-dropdown.html → components/views/bst-dropdown.html} +1 -1
  35. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-add-item.html → components/views/bst-edit-add-item.html} +0 -0
  36. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-add-remove-cancel.html → components/views/bst-edit-add-remove-cancel.html} +0 -0
  37. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-checkbox.html → components/views/bst-edit-checkbox.html} +1 -1
  38. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-custom.html → components/views/bst-edit-custom.html} +2 -2
  39. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-multiselect.html → components/views/bst-edit-multiselect.html} +2 -2
  40. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-save-cancel.html → components/views/bst-edit-save-cancel.html} +1 -1
  41. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-select.html → components/views/bst-edit-select.html} +1 -1
  42. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-text.html → components/views/bst-edit-text.html} +1 -1
  43. data/app/assets/javascripts/bastion/{incubator/views/alch-edit-textarea.html → components/views/bst-edit-textarea.html} +1 -1
  44. data/app/assets/javascripts/bastion/{incubator/views/alch-edit.html → components/views/bst-edit.html} +3 -3
  45. data/app/assets/javascripts/bastion/{incubator/views/alch-flyout.html → components/views/bst-flyout.html} +0 -0
  46. data/app/assets/javascripts/bastion/{incubator/views/alch-form-buttons.html → components/views/bst-form-buttons.html} +1 -1
  47. data/app/assets/javascripts/bastion/{incubator/views/alch-form-group.html → components/views/bst-form-group.html} +0 -0
  48. data/app/assets/javascripts/bastion/{incubator/views/alch-menu.html → components/views/bst-menu.html} +1 -1
  49. data/app/assets/javascripts/bastion/{incubator/views/alch-modal-remove.html → components/views/bst-modal.html} +0 -0
  50. data/app/assets/javascripts/bastion/{incubator/views/alch-save-control.html → components/views/bst-save-control.html} +0 -0
  51. data/app/assets/javascripts/bastion/{widgets → components}/views/current-tasks.html +0 -0
  52. data/app/assets/javascripts/bastion/{widgets → components}/views/path-selector.html +0 -0
  53. data/app/assets/javascripts/bastion/i18n/katello.pot +18 -18
  54. data/app/assets/javascripts/bastion/layouts/details-nutupane.html +4 -4
  55. data/app/assets/javascripts/bastion/layouts/nutupane.html +4 -4
  56. data/app/assets/javascripts/bastion/menu/menu.module.js +1 -3
  57. data/app/views/bastion/layouts/application.html.erb +5 -1
  58. data/bower.json +0 -5
  59. data/grunt/karma.js +4 -5
  60. data/lib/bastion/version.rb +1 -1
  61. data/test/{incubator/alch-alert.directive.test.js → components/bst-alert.directive.test.js} +3 -3
  62. data/test/{incubator/alch-container-scroll.directive.test.js → components/bst-container-scroll.directive.test.js} +3 -3
  63. data/test/{incubator/alch-dropdown.directive.test.js → components/bst-dropdown.directive.test.js} +5 -5
  64. data/test/{incubator/alch-edit.directive.test.js → components/bst-edit.directive.test.js} +29 -29
  65. data/test/{incubator/alch-flyout.directive.test.js → components/bst-flyout.directive.test.js} +3 -3
  66. data/test/{incubator/alch-form-buttons.directive.test.js → components/bst-form-buttons.directive.test.js} +5 -5
  67. data/test/{incubator/alch-form-group.directive.test.js → components/bst-form-group.directive.test.js} +4 -4
  68. data/test/{incubator/alch-infinite-scroll.directive.test.js → components/bst-infinite-scroll.directive.test.js} +3 -3
  69. data/test/{incubator/alch-menu.directive.test.js → components/bst-menu.directive.test.js} +6 -6
  70. data/test/{incubator/alch-modal.directive.test.js → components/bst-modal.directive.test.js} +3 -3
  71. data/test/{incubator/nutupane-table.directive.test.js → components/bst-nutupane-table.directive.test.js} +1 -1
  72. data/test/{incubator/alch-table.directive.test.js → components/bst-table.directive.test.js} +21 -21
  73. data/test/{incubator/format → components/formatters}/array-to-string.filter.test.js +1 -1
  74. data/test/{incubator/format → components/formatters}/boolean-to-yes-no.filter.test.js +1 -1
  75. data/test/{incubator/format → components/formatters}/capitalize.filter.test.js +1 -1
  76. data/test/{incubator/format → components/formatters}/key-value-to-string.filter.test.js +1 -1
  77. data/test/{incubator/format → components/formatters}/unlimited-filter.filter.test.js +1 -1
  78. data/test/{incubator → components}/nutupane.factory.test.js +1 -1
  79. data/test/{widgets → components}/page-title.directive.test.js +1 -1
  80. data/test/{widgets → components}/page-title.service.test.js +1 -1
  81. data/test/{widgets → components}/path-selector.directive.test.js +2 -2
  82. metadata +105 -113
  83. data/app/assets/javascripts/bastion/incubator/stylesheets/alch-edit.scss +0 -34
  84. data/app/assets/javascripts/bastion/incubator/stylesheets/header.scss +0 -207
  85. data/app/assets/javascripts/bastion/widgets/widgets.module.js +0 -24
  86. data/vendor/assets/javascripts/bastion/alchemy/alchemy.js +0 -20
  87. data/vendor/assets/stylesheets/bastion/alchemy/_colors.scss +0 -99
  88. data/vendor/assets/stylesheets/bastion/alchemy/_media_object.scss +0 -22
  89. data/vendor/assets/stylesheets/bastion/alchemy/_mixins.scss +0 -24
  90. data/vendor/assets/stylesheets/bastion/alchemy/_normalize.scss +0 -396
  91. data/vendor/assets/stylesheets/bastion/alchemy/_vars.scss +0 -31
  92. data/vendor/assets/stylesheets/bastion/alchemy/alchemy.scss +0 -8
@@ -1,34 +0,0 @@
1
- .alch-dialog {
2
- background: white;
3
- border: 1px solid #e6e6e6;
4
- border-radius: 5px;
5
- box-shadow: #999 0 2px 2px;
6
- z-index: 2;
7
- }
8
-
9
- .alch-dialog.closed {
10
- border: none;
11
- box-shadow: none;
12
- }
13
-
14
- .alch-dialog.open {
15
- position: absolute;
16
- padding: 10px;
17
-
18
- .form input[type="text"] {
19
- width: 150px;
20
- }
21
- }
22
-
23
- .alch-multiselect {
24
- ul {
25
- list-style: none;
26
- max-height: 100px;
27
- overflow-y: auto;
28
- padding: 15px
29
- }
30
- }
31
-
32
- .alch-button-container {
33
- padding: 10px 0 0;
34
- }
@@ -1,207 +0,0 @@
1
- @import "compass";
2
-
3
- $nav-header_background: #FFA500 !default;
4
- $logo-header_background: darken($nav-header_background, 10%) !default;
5
- $menu-item_hover: darken($nav-header_background, 10%) !default;
6
- $link_color: #000 !default;
7
- $link-hover_color: lighten($link_color, 100%) !default;
8
- $link-border_color: lighten($nav-header_background, 30%) !default;
9
- $dropdown-link-hover_background: #000 !default;
10
- $nav-header_top_border: lighten($nav-header_background, 10%) !default;
11
- $menu-item_hover_background: darken($logo-header_background, 10%) !default;
12
- $menu-item_active_background: darken($logo-header_background, 10%) !default;
13
-
14
- .left { float: left; }
15
- .right {
16
- float: right;
17
-
18
- .menu-item .dropdown {
19
- right: -1px;
20
- }
21
- }
22
-
23
- .menu-container {
24
- position: relative;
25
- display: block;
26
- float: left;
27
- margin: 0;
28
- list-style: none;
29
-
30
- .menu-item {
31
- line-height: 40px;
32
- position: relative;
33
- margin: 0;
34
- float: left;
35
- font-family: Overpass;
36
- vertical-align: baseline;
37
- font-size: 14px;
38
- }
39
-
40
- .menu-item-link {
41
- @include transition( all .15s ease-in);
42
- float: none;
43
- padding: 0 15px;
44
- margin: 0 auto;
45
- display: block;
46
- cursor: pointer;
47
- white-space: nowrap;
48
- text-overflow: ellipsis;
49
- text-align: center;
50
- font-family: overpass, sans-serif, sans;
51
- text-decoration: none;
52
- color: $link_color;
53
-
54
- &:hover {
55
- @include transition( all 0.15s ease-in-out);
56
- color: $link-hover_color;
57
- background: $menu-item_hover_background;
58
- box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
59
- }
60
-
61
- &.active-item {
62
- box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
63
- color: $link-hover_color;
64
- background: $menu-item_hover_background;
65
- }
66
- }
67
-
68
- .menu-anchor {
69
- cursor: default;
70
- }
71
- }
72
-
73
- .dropdown {
74
- position: fixed;
75
- display: none;
76
- list-style: none;
77
- border-radius: 0 0 5px 5px;
78
- padding: 0;
79
- z-index: 3;
80
- border: 1px solid #C8C8C8;
81
- border-top: none;
82
- box-shadow: 0px 1px 5px #C8C8C8;
83
- background: white;
84
- opacity: 1;
85
- min-width: 160px;
86
-
87
- .dropdown-item {
88
- text-align: left;
89
- line-height: 35px;
90
- position: relative;
91
- display: block;
92
- float: none;
93
- }
94
-
95
- .dropdown-item-link {
96
- text-decoration: none;
97
- color: #000;
98
- text-decoration: none;
99
- display: block;
100
- padding: 5px 5px 5px 20px;
101
- overflow: auto;
102
-
103
- span { float: left; }
104
- }
105
-
106
- .dropdown-item-link-active {
107
- background: $dropdown-link-hover_background;
108
- color: $link-hover_color;
109
- }
110
- }
111
-
112
- .dropdown-active {
113
- @include transition(all 0.4s ease-in);
114
- display: block;
115
- }
116
-
117
- .dropdown-left {
118
- left: 0;
119
- }
120
-
121
- .dropdown-right {
122
- right: 0;
123
- left: auto;
124
- }
125
-
126
- .flyout-indicator {
127
- margin-top: 8px;
128
- margin-right: 5px;
129
- margin-left: 10px;
130
- font-size: 18px;
131
- float: right;
132
- }
133
-
134
- .flyout {
135
- padding: 0;
136
- list-style: none;
137
- position: absolute;
138
- top: -1px;
139
- left: 100%;
140
- min-width: 160px;
141
- border: 1px solid #C8C8C8;
142
- border-radius: 0 3px 3px 3px;
143
- box-shadow: 1px 0px 5px #C8C8C8;
144
- z-index: 2;
145
- background: white;
146
-
147
- .flyout-item {
148
- text-align: left;
149
- line-height: 35px;
150
- position: relative;
151
- display: block;
152
- clear: both;
153
- }
154
-
155
- .flyout-item-link {
156
- color: #000;
157
- text-decoration: none;
158
- display: block;
159
- padding: 5px 20px 5px 20px;
160
-
161
- &:hover {
162
- background: $dropdown-link-hover_background;
163
- color: $link-hover_color;
164
- }
165
- }
166
- }
167
-
168
- .logo-header {
169
- $logo-header_line_height: 25px;
170
-
171
- height: $logo-header_line_height;
172
- background-color: $logo-header_background;
173
- z-index: 3;
174
-
175
- .logo {
176
- margin-left: 30px;
177
- }
178
-
179
- .menu-container {
180
- line-height: $logo-header_line_height;
181
-
182
- .menu-item {
183
- line-height: $logo-header_line_height;
184
- }
185
- }
186
-
187
- .dropdown-active {
188
- box-shadow: none;
189
- }
190
- }
191
-
192
- .nav-header {
193
- background: $nav-header_background;
194
- border-top: 1px solid $nav-header_top_border;
195
- width: 100%;
196
- overflow: auto;
197
- }
198
-
199
- .compact {
200
- position:fixed;
201
- vertical-align:middle;
202
- top: 0;
203
- padding:0;
204
- margin: 0;
205
- width: 100%;
206
- z-index: 2;
207
- }
@@ -1,24 +0,0 @@
1
- /**
2
- Copyright 2014 Red Hat, Inc.
3
-
4
- This software is licensed to you under the GNU General Public
5
- License as published by the Free Software Foundation; either version
6
- 2 of the License (GPLv2) or (at your option) any later version.
7
- There is NO WARRANTY for this software, express or implied,
8
- including the implied warranties of MERCHANTABILITY,
9
- NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
10
- have received a copy of GPLv2 along with this software; if not, see
11
- http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
- **/
13
-
14
- /**
15
- * @ngdoc module
16
- * @name Bastion.widgets
17
- *
18
- * @description
19
- * Module for common Bastion widgets.
20
- */
21
- angular.module('Bastion.widgets', [
22
- 'Bastion',
23
- 'Bastion.utils',
24
- ]);
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- angular.module('alch-templates', []);
4
- angular.module('alchemy', ['alch-templates']);
5
-
6
- 'use strict';
7
-
8
- angular.module('alchemy').directive('onEnter', function() {
9
- return {
10
- scope: true,
11
-
12
- link: function(scope, element, attrs) {
13
- element.bind('keydown keypress', function(event) {
14
- if(event.which === 13) {
15
- scope.$apply(attrs.onEnter);
16
- }
17
- });
18
- }
19
- };
20
- });
@@ -1,99 +0,0 @@
1
- /*************
2
- * Base Colors
3
- **************/
4
- $application_background_color: rgb(217, 217, 217) !default;
5
- $primary_color: rgb(19, 158, 221) !default;
6
- $primary_gradient_top_color: lighten($primary_color, 16%) !default;
7
- $primary_gradient_bottom_color: darken($primary_color, 0%) !default;
8
- $link_color: darken($primary_color, 0%) !default; // default links
9
- $text_color: rgb(60, 60, 60) !default;
10
- $border_color: rgb(200, 200, 200) !default;
11
- $white_color: white !default;
12
- $black_color: black !default;
13
- $transparent_white_color: rgba(white, 0) !default;
14
-
15
- $success_color: rgb(76,146,23) !default;
16
- $warning_color: rgb(255, 134, 14) !default;
17
- $error_color: rgb(200,30,40) !default;
18
-
19
- /****************
20
- * Palette Colors
21
- *****************/
22
-
23
- /* Proposed colour palette
24
- ===========================*/
25
-
26
- /* Generic default tone for non interactive elements */
27
- $tone: #a7b0b2 !default;
28
-
29
- /* Favorite greys for warm interactive elements */
30
- $g0: #ffffff !default;
31
- $g1: #f6f6f6 !default;
32
- $g2: #d7d5cf !default;
33
- $g3: #bdbab6 !default;
34
- $g4: #9f9d99 !default;
35
- $g5: #565753 !default;
36
- $g6: #333333 !default;
37
- $g7: #222222 !default;
38
- $g8: #111111 !default;
39
- $g9: #000000 !default;
40
-
41
- /* Red Hat toners */
42
- $rh_base: #60605b !default;
43
- $rh_cream: #dedcc1 !default;
44
-
45
- /* Red Hat Official */
46
- $rh_red1: #cc0000 !default;
47
- $rh_red2: #9e292b !default;
48
- $rh_red3: #781f1c !default;
49
-
50
- $rh_blue: #4e9fdd !default;
51
- $rh_lightblue: #bfdce8 !default;
52
- $rh_teal: #2c8596 !default;
53
- $rh_dark_blue: #003d6e !default;
54
- $rh_lime: #e3e936 !default;
55
- $rh_green: #afbf27 !default;
56
- $rh_purple: #564979 !default;
57
- $rh_orange: #dc9f2e !default;
58
-
59
- /* Red Hat Apps - Web Extended
60
- ================================*/
61
-
62
- /* Orange (the letter o) */
63
- $o7: #400 !default;
64
- $o6: #b30 !default;
65
- $o5: #c40 !default;
66
- $o4: #e70 !default;
67
- $o3: #fa0 !default;
68
- $o2: #fc3 !default;
69
- $o1: #fea !default;
70
-
71
- /* Green */
72
- $link_light: #39f !default;
73
- $link: #05f !default;
74
- $link_dark: #039 !default;
75
-
76
- $green1: #a3d541 !default;
77
- $green2: #57a81c !default;
78
- $green3: #286200 !default;
79
-
80
- /* Red */
81
- $error_color: #990000 !default;
82
- $error_lighter_color: lighten($error_color, 60%) !default;
83
-
84
-
85
- /************
86
- * Theme color
87
- ************/
88
- /* background for header */
89
- @mixin theme_background_gradient {
90
- @include background(
91
- linear-gradient(
92
- top,
93
- $primary_gradient_top_color 0%,
94
- $primary_gradient_top_color 40%,
95
- $primary_gradient_bottom_color 100%
96
- )
97
- );
98
- }
99
-
@@ -1,22 +0,0 @@
1
- .media, .bd {
2
- overflow: hidden;
3
- _overflow: visible;
4
- zoom: 1;
5
- }
6
-
7
- .media {
8
- margin: 10px;
9
-
10
- .img {
11
- float: left;
12
- margin-right: 10px;
13
-
14
- img { display:block; }
15
- }
16
-
17
- .imgExt {
18
- float: right;
19
- margin-left: 10px;
20
- }
21
-
22
- }
@@ -1,24 +0,0 @@
1
- // different from basic linear gradient, that it is declaring fallbacks for different browsers
2
- @mixin linear_gradient($fallback_color, $start_color, $end_color, $end_color_position: false) {
3
- @if $end_color_position {
4
- @include background(linear-gradient($start_color, $end_color $end_color_position)); /* general */
5
- @include filter-gradient($fallback_color, $fallback_color); /* IE */
6
- background-color: $fallback_color; /* fallback */
7
- }
8
- @else {
9
- @include background(linear-gradient($start_color, $end_color)); /* general */
10
- @include filter-gradient($start_color, $end_color); /* IE */
11
- background-color: $fallback_color; /* fallback */
12
- }
13
- }
14
-
15
- //mixin for making text unselectable in some useful and important cases
16
- @mixin unselectable {
17
- -webkit-touch-callout: none;
18
- -webkit-user-select: none;
19
- -khtml-user-select: none;
20
- -moz-user-select: none;
21
- -ms-user-select: none;
22
- user-select: none;
23
- }
24
-
@@ -1,396 +0,0 @@
1
- /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
2
-
3
- /* ==========================================================================
4
- HTML5 display definitions
5
- ========================================================================== */
6
-
7
- /**
8
- * Correct `block` display not defined in IE 8/9.
9
- */
10
-
11
- article,
12
- aside,
13
- details,
14
- figcaption,
15
- figure,
16
- footer,
17
- header,
18
- hgroup,
19
- main,
20
- nav,
21
- section,
22
- summary {
23
- display: block;
24
- }
25
-
26
- /**
27
- * Correct `inline-block` display not defined in IE 8/9.
28
- */
29
-
30
- audio,
31
- canvas,
32
- video {
33
- display: inline-block;
34
- }
35
-
36
- /**
37
- * Prevent modern browsers from displaying `audio` without controls.
38
- * Remove excess height in iOS 5 devices.
39
- */
40
-
41
- audio:not([controls]) {
42
- display: none;
43
- height: 0;
44
- }
45
-
46
- /**
47
- * Address styling not present in IE 8/9.
48
- */
49
-
50
- [hidden] {
51
- display: none;
52
- }
53
-
54
- /* ==========================================================================
55
- Base
56
- ========================================================================== */
57
-
58
- /**
59
- * 1. Set default font family to sans-serif.
60
- * 2. Prevent iOS text size adjust after orientation change, without disabling
61
- * user zoom.
62
- */
63
-
64
- html {
65
- font-family: sans-serif; /* 1 */
66
- -webkit-text-size-adjust: 100%; /* 2 */
67
- -ms-text-size-adjust: 100%; /* 2 */
68
- }
69
-
70
- /**
71
- * Remove default margin.
72
- */
73
-
74
- body {
75
- margin: 0;
76
- }
77
-
78
- /* ==========================================================================
79
- Links
80
- ========================================================================== */
81
-
82
- /**
83
- * Address `outline` inconsistency between Chrome and other browsers.
84
- */
85
-
86
- a:focus {
87
- outline: thin dotted;
88
- }
89
-
90
- /**
91
- * Improve readability when focused and also mouse hovered in all browsers.
92
- */
93
-
94
- a:active,
95
- a:hover {
96
- outline: 0;
97
- }
98
-
99
- /* ==========================================================================
100
- Typography
101
- ========================================================================== */
102
-
103
- /**
104
- * Address variable `h1` font-size and margin within `section` and `article`
105
- * contexts in Firefox 4+, Safari 5, and Chrome.
106
- */
107
-
108
- h1 {
109
- font-size: 2em;
110
- margin: 0.67em 0;
111
- }
112
-
113
- /**
114
- * Address styling not present in IE 8/9, Safari 5, and Chrome.
115
- */
116
-
117
- abbr[title] {
118
- border-bottom: 1px dotted;
119
- }
120
-
121
- /**
122
- * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
123
- */
124
-
125
- b,
126
- strong {
127
- font-weight: bold;
128
- }
129
-
130
- /**
131
- * Address styling not present in Safari 5 and Chrome.
132
- */
133
-
134
- dfn {
135
- font-style: italic;
136
- }
137
-
138
- /**
139
- * Address differences between Firefox and other browsers.
140
- */
141
-
142
- hr {
143
- -moz-box-sizing: content-box;
144
- box-sizing: content-box;
145
- height: 0;
146
- }
147
-
148
- /**
149
- * Address styling not present in IE 8/9.
150
- */
151
-
152
- mark {
153
- background: #ff0;
154
- color: #000;
155
- }
156
-
157
- /**
158
- * Correct font family set oddly in Safari 5 and Chrome.
159
- */
160
-
161
- code,
162
- kbd,
163
- pre,
164
- samp {
165
- font-family: monospace, serif;
166
- font-size: 1em;
167
- }
168
-
169
- /**
170
- * Improve readability of pre-formatted text in all browsers.
171
- */
172
-
173
- pre {
174
- white-space: pre-wrap;
175
- }
176
-
177
- /**
178
- * Set consistent quote types.
179
- */
180
-
181
- q {
182
- quotes: "\201C" "\201D" "\2018" "\2019";
183
- }
184
-
185
- /**
186
- * Address inconsistent and variable font size in all browsers.
187
- */
188
-
189
- small {
190
- font-size: 80%;
191
- }
192
-
193
- /**
194
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
195
- */
196
-
197
- sub,
198
- sup {
199
- font-size: 75%;
200
- line-height: 0;
201
- position: relative;
202
- vertical-align: baseline;
203
- }
204
-
205
- sup {
206
- top: -0.5em;
207
- }
208
-
209
- sub {
210
- bottom: -0.25em;
211
- }
212
-
213
- /* ==========================================================================
214
- Embedded content
215
- ========================================================================== */
216
-
217
- /**
218
- * Remove border when inside `a` element in IE 8/9.
219
- */
220
-
221
- img {
222
- border: 0;
223
- }
224
-
225
- /**
226
- * Correct overflow displayed oddly in IE 9.
227
- */
228
-
229
- svg:not(:root) {
230
- overflow: hidden;
231
- }
232
-
233
- /* ==========================================================================
234
- Figures
235
- ========================================================================== */
236
-
237
- /**
238
- * Address margin not present in IE 8/9 and Safari 5.
239
- */
240
-
241
- figure {
242
- margin: 0;
243
- }
244
-
245
- /* ==========================================================================
246
- Forms
247
- ========================================================================== */
248
-
249
- /**
250
- * Define consistent border, margin, and padding.
251
- */
252
-
253
- fieldset {
254
- border: 1px solid #c0c0c0;
255
- margin: 0 2px;
256
- padding: 0.35em 0.625em 0.75em;
257
- }
258
-
259
- /**
260
- * 1. Correct `color` not being inherited in IE 8/9.
261
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
262
- */
263
-
264
- legend {
265
- border: 0; /* 1 */
266
- padding: 0; /* 2 */
267
- }
268
-
269
- /**
270
- * 1. Correct font family not being inherited in all browsers.
271
- * 2. Correct font size not being inherited in all browsers.
272
- * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
273
- */
274
-
275
- button,
276
- input,
277
- select,
278
- textarea {
279
- font-family: inherit; /* 1 */
280
- font-size: 100%; /* 2 */
281
- margin: 0; /* 3 */
282
- }
283
-
284
- /**
285
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
286
- * the UA stylesheet.
287
- */
288
-
289
- button,
290
- input {
291
- line-height: normal;
292
- }
293
-
294
- /**
295
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
296
- * All other form control elements do not inherit `text-transform` values.
297
- * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
298
- * Correct `select` style inheritance in Firefox 4+ and Opera.
299
- */
300
-
301
- button,
302
- select {
303
- text-transform: none;
304
- }
305
-
306
- /**
307
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
308
- * and `video` controls.
309
- * 2. Correct inability to style clickable `input` types in iOS.
310
- * 3. Improve usability and consistency of cursor style between image-type
311
- * `input` and others.
312
- */
313
-
314
- button,
315
- html input[type="button"], /* 1 */
316
- input[type="reset"],
317
- input[type="submit"] {
318
- -webkit-appearance: button; /* 2 */
319
- cursor: pointer; /* 3 */
320
- }
321
-
322
- /**
323
- * Re-set default cursor for disabled elements.
324
- */
325
-
326
- button[disabled],
327
- html input[disabled] {
328
- cursor: default;
329
- }
330
-
331
- /**
332
- * 1. Address box sizing set to `content-box` in IE 8/9.
333
- * 2. Remove excess padding in IE 8/9.
334
- */
335
-
336
- input[type="checkbox"],
337
- input[type="radio"] {
338
- box-sizing: border-box; /* 1 */
339
- padding: 0; /* 2 */
340
- }
341
-
342
- /**
343
- * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
344
- * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
345
- * (include `-moz` to future-proof).
346
- */
347
-
348
- input[type="search"] {
349
- -webkit-appearance: textfield; /* 1 */
350
- -moz-box-sizing: content-box;
351
- -webkit-box-sizing: content-box; /* 2 */
352
- box-sizing: content-box;
353
- }
354
-
355
- /**
356
- * Remove inner padding and search cancel button in Safari 5 and Chrome
357
- * on OS X.
358
- */
359
-
360
- input[type="search"]::-webkit-search-cancel-button,
361
- input[type="search"]::-webkit-search-decoration {
362
- -webkit-appearance: none;
363
- }
364
-
365
- /**
366
- * Remove inner padding and border in Firefox 4+.
367
- */
368
-
369
- button::-moz-focus-inner,
370
- input::-moz-focus-inner {
371
- border: 0;
372
- padding: 0;
373
- }
374
-
375
- /**
376
- * 1. Remove default vertical scrollbar in IE 8/9.
377
- * 2. Improve readability and alignment in all browsers.
378
- */
379
-
380
- textarea {
381
- overflow: auto; /* 1 */
382
- vertical-align: top; /* 2 */
383
- }
384
-
385
- /* ==========================================================================
386
- Tables
387
- ========================================================================== */
388
-
389
- /**
390
- * Remove most spacing between table cells.
391
- */
392
-
393
- table {
394
- border-collapse: collapse;
395
- border-spacing: 0;
396
- }