fastlane-plugin-polidea 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +52 -0
  4. data/lib/fastlane/plugin/polidea.rb +16 -0
  5. data/lib/fastlane/plugin/polidea/actions/extract_app_icon.rb +155 -0
  6. data/lib/fastlane/plugin/polidea/actions/extract_app_name.rb +91 -0
  7. data/lib/fastlane/plugin/polidea/actions/extract_version.rb +96 -0
  8. data/lib/fastlane/plugin/polidea/actions/get_binary_size.rb +53 -0
  9. data/lib/fastlane/plugin/polidea/actions/mailgun.rb +173 -0
  10. data/lib/fastlane/plugin/polidea/actions/polidea_store_action.rb +248 -0
  11. data/lib/fastlane/plugin/polidea/actions/qr_generator.rb +76 -0
  12. data/lib/fastlane/plugin/polidea/actions/s3.rb +551 -0
  13. data/lib/fastlane/plugin/polidea/helper/polidea_helper.rb +12 -0
  14. data/lib/fastlane/plugin/polidea/templates/images/icon-placeholder.png +0 -0
  15. data/lib/fastlane/plugin/polidea/templates/images/logo.png +0 -0
  16. data/lib/fastlane/plugin/polidea/templates/images/polidea-facebook-icon.png +0 -0
  17. data/lib/fastlane/plugin/polidea/templates/images/polidea-github-icon.png +0 -0
  18. data/lib/fastlane/plugin/polidea/templates/images/polidea-logo.png +0 -0
  19. data/lib/fastlane/plugin/polidea/templates/images/polidea-twitter-icon.png +0 -0
  20. data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css +3142 -0
  21. data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css.map +7 -0
  22. data/lib/fastlane/plugin/polidea/templates/installation-page/img/bg.png +0 -0
  23. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg.jpg +0 -0
  24. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1024.jpg +0 -0
  25. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1280.jpg +0 -0
  26. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1360.jpg +0 -0
  27. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1440.jpg +0 -0
  28. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1680.jpg +0 -0
  29. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_768.jpg +0 -0
  30. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_ipad_1024.jpg +0 -0
  31. data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_ipad_768.jpg +0 -0
  32. data/lib/fastlane/plugin/polidea/templates/installation-page/img/logo.svg +32 -0
  33. data/lib/fastlane/plugin/polidea/templates/installation-page/img/logo_square.svg +12 -0
  34. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation.min.js +10 -0
  35. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.abide.js +294 -0
  36. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.accordion.js +65 -0
  37. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js +43 -0
  38. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.clearing.js +558 -0
  39. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.dropdown.js +313 -0
  40. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.equalizer.js +74 -0
  41. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.interchange.js +344 -0
  42. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.joyride.js +915 -0
  43. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.js +625 -0
  44. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.magellan.js +189 -0
  45. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.offcanvas.js +139 -0
  46. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.orbit.js +472 -0
  47. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.reveal.js +443 -0
  48. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.slider.js +231 -0
  49. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.tab.js +167 -0
  50. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.tooltip.js +298 -0
  51. data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.topbar.js +436 -0
  52. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/aes.js +35 -0
  53. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/enc-base64-min.js +8 -0
  54. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/fastclick.js +9 -0
  55. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/jquery.cookie.js +8 -0
  56. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/jquery.js +26 -0
  57. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/modernizr.js +8 -0
  58. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/pbkdf2.js +19 -0
  59. data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/placeholder.js +2 -0
  60. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/fonts.scss +64 -0
  61. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation.scss +45 -0
  62. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/_functions.scss +101 -0
  63. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/_settings.scss +1441 -0
  64. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_accordion.scss +156 -0
  65. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_alert-boxes.scss +126 -0
  66. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_block-grid.scss +132 -0
  67. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_breadcrumbs.scss +132 -0
  68. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_button-groups.scss +200 -0
  69. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_buttons.scss +252 -0
  70. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_clearing.scss +247 -0
  71. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_dropdown-buttons.scss +129 -0
  72. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_dropdown.scss +248 -0
  73. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_flex-video.scss +51 -0
  74. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_forms.scss +570 -0
  75. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_global.scss +447 -0
  76. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_grid.scss +275 -0
  77. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_icon-bar.scss +293 -0
  78. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_inline-lists.scss +57 -0
  79. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_joyride.scss +222 -0
  80. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_keystrokes.scss +61 -0
  81. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_labels.scss +105 -0
  82. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_magellan.scss +34 -0
  83. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_offcanvas.scss +510 -0
  84. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_orbit.scss +368 -0
  85. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_pagination.scss +162 -0
  86. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_panels.scss +93 -0
  87. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_pricing-tables.scss +150 -0
  88. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_progress-bars.scss +79 -0
  89. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_range-slider.scss +168 -0
  90. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_reveal.scss +220 -0
  91. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_side-nav.scss +116 -0
  92. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_split-buttons.scss +191 -0
  93. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_sub-nav.scss +125 -0
  94. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_switches.scss +226 -0
  95. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tables.scss +135 -0
  96. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tabs.scss +123 -0
  97. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_thumbs.scss +66 -0
  98. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_toolbar.scss +70 -0
  99. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tooltips.scss +142 -0
  100. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_top-bar.scss +676 -0
  101. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_type.scss +523 -0
  102. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_visibility.scss +408 -0
  103. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/installation-page.scss +171 -0
  104. data/lib/fastlane/plugin/polidea/templates/installation-page/sass/normalize.scss +425 -0
  105. data/lib/fastlane/plugin/polidea/templates/installation_template.erb +58 -0
  106. data/lib/fastlane/plugin/polidea/templates/mailgun_template.erb +1225 -0
  107. data/lib/fastlane/plugin/polidea/version.rb +5 -0
  108. metadata +323 -0
@@ -0,0 +1,125 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @name _sub-nav.scss
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-nav-classes: $include-html-classes !default;
17
+
18
+ // We use these to control margin and padding
19
+ $sub-nav-list-margin: rem-calc(-4 0 18) !default;
20
+ $sub-nav-list-padding-top: rem-calc(4) !default;
21
+
22
+ // We use this to control the definition
23
+ $sub-nav-font-family: $body-font-family !default;
24
+ $sub-nav-font-size: rem-calc(14) !default;
25
+ $sub-nav-font-color: $aluminum !default;
26
+ $sub-nav-font-weight: $font-weight-normal !default;
27
+ $sub-nav-text-decoration: none !default;
28
+ $sub-nav-padding: rem-calc(3 16) !default;
29
+ $sub-nav-border-radius: 3px !default;
30
+ $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
31
+
32
+
33
+ // We use these to control the active item styles
34
+
35
+ $sub-nav-active-font-weight: $font-weight-normal !default;
36
+ $sub-nav-active-bg: $primary-color !default;
37
+ $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
38
+ $sub-nav-active-color: $white !default;
39
+ $sub-nav-active-padding: $sub-nav-padding !default;
40
+ $sub-nav-active-cursor: default !default;
41
+
42
+ $sub-nav-item-divider: "" !default;
43
+ $sub-nav-item-divider-margin: rem-calc(12) !default;
44
+
45
+ //
46
+ // @mixins
47
+ //
48
+
49
+
50
+ // Create a sub-nav item
51
+ //
52
+ // $font-color - Font color. Default: $sub-nav-font-color.
53
+ // $font-size - Font size. Default: $sub-nav-font-size.
54
+ // $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
55
+ // $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
56
+ @mixin sub-nav(
57
+ $font-color: $sub-nav-font-color,
58
+ $font-size: $sub-nav-font-size,
59
+ $active-bg: $sub-nav-active-bg,
60
+ $active-bg-hover: $sub-nav-active-bg-hover) {
61
+ display: block;
62
+ width: auto;
63
+ overflow: hidden;
64
+ margin: $sub-nav-list-margin;
65
+ padding-top: $sub-nav-list-padding-top;
66
+ margin-#{$opposite-direction}: 0;
67
+ margin-#{$default-float}: rem-calc(-12);
68
+
69
+ dt {
70
+ text-transform: uppercase;
71
+ }
72
+
73
+ dt,
74
+ dd,
75
+ li {
76
+ float: $default-float;
77
+ display: inline;
78
+ margin-#{$default-float}: rem-calc(16);
79
+ margin-bottom: rem-calc(10);
80
+ font-family: $sub-nav-font-family;
81
+ font-weight: $sub-nav-font-weight;
82
+ font-size: $font-size;
83
+ color: $font-color;
84
+
85
+ a {
86
+ text-decoration: $sub-nav-text-decoration;
87
+ color: $sub-nav-font-color;
88
+ padding: $sub-nav-padding;
89
+ &:hover {
90
+ color: $sub-nav-font-color-hover;
91
+ }
92
+ }
93
+
94
+ &.active a {
95
+ @include radius($sub-nav-border-radius);
96
+ font-weight: $sub-nav-active-font-weight;
97
+ background: $active-bg;
98
+ padding: $sub-nav-active-padding;
99
+ cursor: $sub-nav-active-cursor;
100
+ color: $sub-nav-active-color;
101
+ &:hover {
102
+ background: $active-bg-hover;
103
+ }
104
+ }
105
+ @if $sub-nav-item-divider != "" {
106
+ margin-#{$default-float}: 0;
107
+
108
+ &:before {
109
+ content: "#{$sub-nav-item-divider}";
110
+ margin: 0 $sub-nav-item-divider-margin;
111
+ }
112
+
113
+ &:first-child:before {
114
+ content: "";
115
+ margin: 0;
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+ @include exports("sub-nav") {
122
+ @if $include-html-nav-classes {
123
+ .sub-nav { @include sub-nav; }
124
+ }
125
+ }
@@ -0,0 +1,226 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @name
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-form-classes: $include-html-classes !default;
17
+
18
+ // Controlling background color for the switch container
19
+ $switch-bg: $gainsboro !default;
20
+
21
+ // We use these to control the switch heights for our default classes
22
+ $switch-height-tny: 1.5rem !default;
23
+ $switch-height-sml: 1.75rem !default;
24
+ $switch-height-med: 2rem !default;
25
+ $switch-height-lrg: 2.5rem !default;
26
+ $switch-bottom-margin: 1.5rem !default;
27
+
28
+ // We use these to style the switch-paddle
29
+ $switch-paddle-bg: $white !default;
30
+ $switch-paddle-transition-speed: .15s !default;
31
+ $switch-paddle-transition-ease: ease-out !default;
32
+ $switch-active-color: $primary-color;
33
+
34
+
35
+ //
36
+ // @mixins
37
+ //
38
+
39
+ // We use this mixin to create the base styles for our switch element.
40
+ //
41
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
42
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
43
+ @mixin switch-base(
44
+ $transition-speed:$switch-paddle-transition-speed,
45
+ $transition-ease:$switch-paddle-transition-ease) {
46
+
47
+
48
+ // Default label styles for type and transition
49
+ label {
50
+ display: block;
51
+ margin-bottom: $switch-height-med / 2;
52
+ position: relative;
53
+ color: transparent;
54
+ background: $switch-bg;
55
+ text-indent: 100%;
56
+ width: $switch-height-med * 2; height: $switch-height-med;
57
+ cursor: pointer;
58
+
59
+ // Transition for the switch label to follow paddle
60
+ @include single-transition(left, $transition-speed, $transition-ease);
61
+ }
62
+
63
+ // So that we don't need to recreate the form with any JS, we use the
64
+ // existing checkbox or radio button, but we cleverly position and hide it.
65
+ input {
66
+ opacity: 0;
67
+ position: absolute;
68
+ top: 9px;
69
+ left: 10px;
70
+ padding:0;
71
+
72
+ & + label { margin-left: 0; margin-right: 0; }
73
+ }
74
+
75
+ // The paddle for the switch is created from an after psuedoclass
76
+ // content element. This is sized and positioned, and reacts to
77
+ // the state of the input.
78
+
79
+ label:after {
80
+ content: "";
81
+ display: block;
82
+ background: $switch-paddle-bg;
83
+ position: absolute; top: .25rem; left: .25rem;
84
+ width: $switch-height-med - 0.5rem; height: $switch-height-med - 0.5rem;
85
+
86
+ -webkit-transition: left $transition-speed $transition-ease;
87
+ -moz-transition: left $transition-speed $transition-ease;
88
+ transition: left $transition-speed $transition-ease;
89
+
90
+ -webkit-transform: translate3d(0,0,0);
91
+ -moz-transform: translate3d(0,0,0);
92
+ transform: translate3d(0,0,0);
93
+ }
94
+
95
+ input:checked + label {
96
+ background: $switch-active-color;
97
+ }
98
+
99
+ input:checked + label:after {
100
+ left: $switch-height-med + 0.25rem;
101
+ }
102
+ }
103
+
104
+ // We use this mixin to create the size styles for switches.
105
+ //
106
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
107
+ // $font-size - Font size of text in switch. Default: $switch-font-size-med.
108
+ // $line-height - Line height of switch. Default: 2.3rem.
109
+ @mixin switch-size($height: $switch-height-med) {
110
+
111
+ label {
112
+ width: $height * 2; height: $height;
113
+ }
114
+
115
+ label:after {
116
+ width: $height - 0.5rem; height: $height - 0.5rem;
117
+ }
118
+
119
+ input:checked + label:after {
120
+ left: $height + 0.25rem;
121
+ }
122
+
123
+ }
124
+
125
+ // We use this mixin to add color and other fanciness to the switches.
126
+ //
127
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
128
+ // $active-color - Background color of positive side of switch. Default: $switch-positive-color.
129
+ // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
130
+ // $radius - Radius to apply to switch. Default: false.
131
+ // $base-style - Apply base styles? Default: true.
132
+ @mixin switch-style(
133
+ $paddle-bg:$switch-paddle-bg,
134
+ $radius:false,
135
+ $base-style:true) {
136
+
137
+ @if $base-style {
138
+
139
+ label {
140
+ color: transparent;
141
+ background: $switch-bg;
142
+ }
143
+
144
+ label:after {
145
+ background: $paddle-bg;
146
+ }
147
+
148
+ input:checked + label {
149
+ background: $switch-active-color;
150
+ }
151
+ }
152
+
153
+ // Setting up the radius for switches
154
+ @if $radius == true {
155
+ label {
156
+ border-radius: 2rem;
157
+ }
158
+ label:after {
159
+ border-radius: 2rem;
160
+ }
161
+ }
162
+ @else if $radius {
163
+ label {
164
+ border-radius: $radius;
165
+ }
166
+ label:after {
167
+ border-radius: $radius;
168
+ }
169
+ }
170
+
171
+ }
172
+
173
+ // We use this to quickly create switches with a single mixin
174
+ //
175
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
176
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
177
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
178
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
179
+ // $active-color - Background color of an active switch. Default: $switch-active-color.
180
+ // $radius - Radius to apply to switch. Default: false.
181
+ // $base-style - Apply base styles? Default: true.
182
+ @mixin switch(
183
+ $transition-speed: $switch-paddle-transition-speed,
184
+ $transition-ease: $switch-paddle-transition-ease,
185
+ $height: $switch-height-med,
186
+ $paddle-bg: $switch-paddle-bg,
187
+ $active-color: $switch-active-color,
188
+ $radius:false,
189
+ $base-style:true) {
190
+ padding: 0;
191
+ border: none;
192
+ position: relative;
193
+ @include switch-base($transition-speed, $transition-ease);
194
+ @include switch-size($height);
195
+ @include switch-style($paddle-bg, $radius, $base-style);
196
+ }
197
+
198
+ @include exports("switch") {
199
+ @if $include-html-form-classes {
200
+ .switch {
201
+ @include switch;
202
+
203
+ // Large radio switches
204
+ &.large { @include switch-size($switch-height-lrg); }
205
+
206
+ // Small radio switches
207
+ &.small { @include switch-size($switch-height-sml); }
208
+
209
+ // Tiny radio switches
210
+ &.tiny { @include switch-size($switch-height-tny); }
211
+
212
+ // Add a radius to the switch
213
+ &.radius {
214
+ label { @include radius(4px); }
215
+ label:after { @include radius(3px); }
216
+ }
217
+
218
+ // Make the switch completely round, like a pill
219
+ &.round { @include radius(1000px);
220
+ label { @include radius(2rem); }
221
+ label:after { @include radius(2rem); }
222
+ }
223
+
224
+ }
225
+ }
226
+ }
@@ -0,0 +1,135 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @name _tables.scss
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-table-classes: $include-html-classes !default;
17
+
18
+ // These control the background color for the table and even rows
19
+ $table-bg: $white !default;
20
+ $table-even-row-bg: $snow !default;
21
+
22
+ // These control the table cell border style
23
+ $table-border-style: solid !default;
24
+ $table-border-size: 1px !default;
25
+ $table-border-color: $gainsboro !default;
26
+
27
+ // These control the table head styles
28
+ $table-head-bg: $white-smoke !default;
29
+ $table-head-font-size: rem-calc(14) !default;
30
+ $table-head-font-color: $jet !default;
31
+ $table-head-font-weight: $font-weight-bold !default;
32
+ $table-head-padding: rem-calc(8 10 10) !default;
33
+
34
+ // These control the table foot styles
35
+ $table-foot-bg: $table-head-bg !default;
36
+ $table-foot-font-size: $table-head-font-size !default;
37
+ $table-foot-font-color: $table-head-font-color !default;
38
+ $table-foot-font-weight: $table-head-font-weight !default;
39
+ $table-foot-padding: $table-head-padding !default;
40
+
41
+ // These control the caption
42
+ $table-caption-bg: transparent !default;
43
+ $table-caption-font-color: $table-head-font-color !default;
44
+ $table-caption-font-size: rem-calc(16) !default;
45
+ $table-caption-font-weight: bold !default;
46
+
47
+ // These control the row padding and font styles
48
+ $table-row-padding: rem-calc(9 10) !default;
49
+ $table-row-font-size: rem-calc(14) !default;
50
+ $table-row-font-color: $jet !default;
51
+ $table-line-height: rem-calc(18) !default;
52
+
53
+ // These are for controlling the display and margin of tables
54
+ $table-display: table-cell !default;
55
+ $table-margin-bottom: rem-calc(20) !default;
56
+
57
+
58
+ //
59
+ // @mixins
60
+ //
61
+
62
+ @mixin table {
63
+ background: $table-bg;
64
+ margin-bottom: $table-margin-bottom;
65
+ border: $table-border-style $table-border-size $table-border-color;
66
+ table-layout: fixed;
67
+ width: 100%;
68
+
69
+ caption {
70
+ background: $table-caption-bg;
71
+ color: $table-caption-font-color;
72
+ font: {
73
+ size: $table-caption-font-size;
74
+ weight: $table-caption-font-weight;
75
+ }
76
+ }
77
+
78
+ thead {
79
+ background: $table-head-bg;
80
+
81
+ tr {
82
+ th,
83
+ td {
84
+ padding: $table-head-padding;
85
+ font-size: $table-head-font-size;
86
+ font-weight: $table-head-font-weight;
87
+ color: $table-head-font-color;
88
+ }
89
+ }
90
+ }
91
+
92
+ tfoot {
93
+ background: $table-foot-bg;
94
+
95
+ tr {
96
+ th,
97
+ td {
98
+ padding: $table-foot-padding;
99
+ font-size: $table-foot-font-size;
100
+ font-weight: $table-foot-font-weight;
101
+ color: $table-foot-font-color;
102
+ }
103
+ }
104
+ }
105
+
106
+ tr {
107
+ th,
108
+ td {
109
+ padding: $table-row-padding;
110
+ font-size: $table-row-font-size;
111
+ color: $table-row-font-color;
112
+ text-align: $default-float;
113
+ }
114
+
115
+ &.even,
116
+ &.alt,
117
+ &:nth-of-type(even) { background: $table-even-row-bg; }
118
+ }
119
+
120
+ thead tr th,
121
+ tfoot tr th,
122
+ tfoot tr td,
123
+ tbody tr th,
124
+ tbody tr td,
125
+ tr td { display: $table-display; line-height: $table-line-height; }
126
+ }
127
+
128
+
129
+ @include exports("table") {
130
+ @if $include-html-table-classes {
131
+ table {
132
+ @include table;
133
+ }
134
+ }
135
+ }