persistentgrid 0.0.1.beta.1
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.
- data/README.md +5 -0
- data/lib/persistentgrid.rb +4 -0
- data/scss/pg/_helpers.scss +7 -0
- data/scss/pg/base/_all.scss +9 -0
- data/scss/pg/base/_behavior.scss +10 -0
- data/scss/pg/base/_helpers.scss +9 -0
- data/scss/pg/base/_settings.scss +10 -0
- data/scss/pg/base/baserules/_all.scss +8 -0
- data/scss/pg/base/baserules/_behavior.scss +125 -0
- data/scss/pg/base/baserules/_settings.scss +39 -0
- data/scss/pg/base/reset/_all.scss +9 -0
- data/scss/pg/base/reset/_behavior.scss +108 -0
- data/scss/pg/base/reset/_helpers.scss +7 -0
- data/scss/pg/base/reset/_settings.scss +27 -0
- data/scss/pg/base/reset/helpers/_all.scss +7 -0
- data/scss/pg/base/reset/helpers/_mixins.scss +395 -0
- data/scss/pg/base/typography/_all.scss +9 -0
- data/scss/pg/base/typography/_behavior.scss +31 -0
- data/scss/pg/base/typography/_helpers.scss +7 -0
- data/scss/pg/base/typography/_settings.scss +52 -0
- data/scss/pg/base/typography/helpers/_all.scss +8 -0
- data/scss/pg/base/typography/helpers/_functions.scss +160 -0
- data/scss/pg/base/typography/helpers/_mixins.scss +121 -0
- data/scss/pg/grid/_all.scss +9 -0
- data/scss/pg/grid/_behavior.scss +51 -0
- data/scss/pg/grid/_helpers.scss +8 -0
- data/scss/pg/grid/_settings.scss +48 -0
- data/scss/pg/grid/helpers/_functions.scss +140 -0
- data/scss/pg/grid/helpers/_mixins.scss +247 -0
- data/scss/pg/helpers/_all.scss +11 -0
- data/scss/pg/helpers/_colors.scss +163 -0
- data/scss/pg/helpers/_fonts.scss +21 -0
- data/scss/pg/helpers/_functions.scss +91 -0
- data/scss/pg/helpers/_mixins.scss +7 -0
- data/scss/pg/helpers/_settings.scss +11 -0
- data/scss/pg/helpers/fonts/_bree-serif.scss +27 -0
- data/scss/pg/helpers/fonts/_example.scss +47 -0
- data/scss/pg/helpers/fonts/_lato.scss +36 -0
- data/scss/pg/helpers/fonts/_monospace.scss +43 -0
- data/scss/pg/helpers/fonts/_raleway.scss +35 -0
- data/scss/pg/helpers/fonts/_righteous.scss +27 -0
- data/scss/pg/helpers/fonts/_roboto.scss +38 -0
- data/scss/pg/helpers/fonts/_sans-serif.scss +43 -0
- data/scss/pg/helpers/fonts/_serif.scss +43 -0
- data/scss/pg/helpers/fonts/_sofia-pro.scss +44 -0
- data/scss/pg/helpers/fonts/_varela-round.scss +28 -0
- data/scss/pg/helpers/fonts/icon-fonts/_fontawesome.scss +34 -0
- data/scss/pg/helpers/fonts/icon-fonts/_foundation-accessability.scss +76 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_core.scss +129 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_path.scss +14 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
- data/scss/pg/helpers/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
- data/scss/pg/helpers/library/_lists.scss +462 -0
- data/scss/pg/helpers/mixins/_all.scss +15 -0
- data/scss/pg/helpers/mixins/_anchors.scss +125 -0
- data/scss/pg/helpers/mixins/_baseline.scss +53 -0
- data/scss/pg/helpers/mixins/_breakpoints.scss +35 -0
- data/scss/pg/helpers/mixins/_content.scss +19 -0
- data/scss/pg/helpers/mixins/_css-triangle.scss +70 -0
- data/scss/pg/helpers/mixins/_elements.scss +106 -0
- data/scss/pg/helpers/mixins/_module.scss +327 -0
- data/scss/pg/helpers/mixins/_text.scss +87 -0
- data/scss/pg/helpers/mixins/_units.scss +67 -0
- data/scss/pg/helpers/settings/_all.scss +7 -0
- data/scss/pg/helpers/settings/_breakpoints.scss +21 -0
- data/scss/pg/modules/_all.scss +9 -0
- data/scss/pg/modules/_behavior.scss +13 -0
- data/scss/pg/modules/_helpers.scss +13 -0
- data/scss/pg/modules/_settings.scss +13 -0
- data/scss/pg/modules/accordions/_all.scss +8 -0
- data/scss/pg/modules/accordions/_behavior.scss +5 -0
- data/scss/pg/modules/accordions/_helpers.scss +5 -0
- data/scss/pg/modules/accordions/_settings.scss +4 -0
- data/scss/pg/modules/buttons/_all.scss +8 -0
- data/scss/pg/modules/buttons/_behavior.scss +89 -0
- data/scss/pg/modules/buttons/_helpers.scss +7 -0
- data/scss/pg/modules/buttons/_settings.scss +153 -0
- data/scss/pg/modules/buttons/helpers/_mixins.scss +33 -0
- data/scss/pg/modules/forms/_all.scss +8 -0
- data/scss/pg/modules/forms/_behavior.bak.scss +215 -0
- data/scss/pg/modules/forms/_behavior.scss +215 -0
- data/scss/pg/modules/forms/_helpers.scss +8 -0
- data/scss/pg/modules/forms/_settings.scss +10 -0
- data/scss/pg/modules/forms/helpers/_mixins.scss +94 -0
- data/scss/pg/modules/forms/settings/forms.scss +19 -0
- data/scss/pg/modules/forms/settings/input.scss +256 -0
- data/scss/pg/modules/forms/settings/labels.scss +101 -0
- data/scss/pg/modules/lists/_all.scss +9 -0
- data/scss/pg/modules/lists/_behavior.scss +99 -0
- data/scss/pg/modules/lists/_helpers.scss +11 -0
- data/scss/pg/modules/lists/_settings.scss +49 -0
- data/scss/pg/modules/tables/_all.scss +8 -0
- data/scss/pg/modules/tables/_behavior.scss +79 -0
- data/scss/pg/modules/tables/_helpers.scss +7 -0
- data/scss/pg/modules/tables/_settings.scss +69 -0
- data/scss/pg/modules/tables/helpers/_mixins.scss +9 -0
- data/scss/pg/modules/tabs/_all.scss +8 -0
- data/scss/pg/modules/tabs/_behavior.scss +77 -0
- data/scss/pg/modules/tabs/_helpers.scss +7 -0
- data/scss/pg/modules/tabs/_settings.scss +8 -0
- data/scss/pg/modules/tabs/helpers/_mixins.scss +4 -0
- data/scss/pg/skins/_crossinghippos.scss +8 -0
- data/scss/pg/skins/crossinghippos/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/_behavior.scss +10 -0
- data/scss/pg/skins/crossinghippos/_helpers.scss +8 -0
- data/scss/pg/skins/crossinghippos/_settings.scss +9 -0
- data/scss/pg/skins/crossinghippos/buttons/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/buttons/_behavior.scss +25 -0
- data/scss/pg/skins/crossinghippos/buttons/_helpers.scss +7 -0
- data/scss/pg/skins/crossinghippos/buttons/_settings.scss +50 -0
- data/scss/pg/skins/crossinghippos/forms/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/forms/_base.scss +7 -0
- data/scss/pg/skins/crossinghippos/forms/_behavior.scss +259 -0
- data/scss/pg/skins/crossinghippos/forms/_settings.scss +29 -0
- data/scss/pg/skins/crossinghippos/linkbar/_all.scss +8 -0
- data/scss/pg/skins/crossinghippos/linkbar/_behavior.scss +73 -0
- data/scss/pg/skins/crossinghippos/linkbar/_helpers.scss +5 -0
- data/scss/pg/skins/crossinghippos/linkbar/_settings.scss +27 -0
- data/templates/base/manifest.rb +15 -0
- data/templates/base/screen.scss +39 -0
- data/templates/grid/manifest.rb +15 -0
- data/templates/grid/screen.scss +36 -0
- data/templates/modules/manifest.rb +15 -0
- data/templates/modules/screen.scss +44 -0
- metadata +210 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
|
6
|
+
// Use the final type size in the font-unit specified in the Vertical-Rhythm module
|
7
|
+
@mixin module-font($type, $base-font-size:$base-font-size, $base-line-height:$base-line-height) {
|
8
|
+
@include font($type);
|
9
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
|
6
|
+
.tabs {
|
7
|
+
position: relative;
|
8
|
+
}
|
9
|
+
.tab {
|
10
|
+
@include column-behavior;
|
11
|
+
}
|
12
|
+
.tab-tab {
|
13
|
+
float: left;
|
14
|
+
}
|
15
|
+
.tab-content {
|
16
|
+
float: left;
|
17
|
+
position: relative; // This is necessary for the accompanying script to work correctly
|
18
|
+
display: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
.tabs-horizontal {
|
22
|
+
@for $i from $min-tabs through $max-tabs {
|
23
|
+
&.tabs-#{$i} {
|
24
|
+
.tab {
|
25
|
+
@include column-width(1/$i);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
// Reset tabs to full width on smaller screens
|
30
|
+
@include breakpoint($small_handheld_wide) {
|
31
|
+
.tab {
|
32
|
+
width: 100% !important;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.tab {
|
38
|
+
&:target,
|
39
|
+
&.is-active {
|
40
|
+
.tab-content {
|
41
|
+
display: inline-block;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.tab-tab {
|
47
|
+
text-align: center;
|
48
|
+
border: 1px solid $color-primary;
|
49
|
+
}
|
50
|
+
.is-active {
|
51
|
+
.tab-tab {
|
52
|
+
border-bottom: rhythm(1) solid $color-primary;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
// .tab-tab {
|
56
|
+
// padding-right: 10px;
|
57
|
+
// display: block;
|
58
|
+
// @include column-spacing;
|
59
|
+
// padding-left: 0 !important;
|
60
|
+
// span {
|
61
|
+
// display: block;
|
62
|
+
// border: 1px solid $color-theme;
|
63
|
+
// border-width: 1px 1px 0;
|
64
|
+
// @include border-top-radius($corner-radius);
|
65
|
+
// @include column-spacing;
|
66
|
+
// background: $color-theme;
|
67
|
+
// }
|
68
|
+
|
69
|
+
// }
|
70
|
+
// .is-active {
|
71
|
+
// .tab-tab {
|
72
|
+
// background: $white;
|
73
|
+
// span {
|
74
|
+
// background: $white;
|
75
|
+
// }
|
76
|
+
// }
|
77
|
+
// }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
|
6
|
+
|
7
|
+
$min-tabs : 2; // This number defines how many different widths are set
|
8
|
+
$max-tabs : 4; // This number defines how many different widths are set
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
@import "helpers";
|
8
|
+
@import "settings";
|
9
|
+
@import "behavior";
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
// @import "pg/extended/behavior";
|
9
|
+
|
10
|
+
@import "buttons/behavior";
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
// @import "pg/extended/settings";
|
8
|
+
|
9
|
+
@import "buttons/settings";
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
@import "settings";
|
8
|
+
@import "helpers";
|
9
|
+
@import "behavior";
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// /**
|
2
|
+
// * @copyright Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * @license GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
@include button(".#{$button-base-class}-primary") {
|
9
|
+
@include column-spacing;
|
10
|
+
@include module-background($button-primary-background);
|
11
|
+
@include button('&:hover') {
|
12
|
+
@extend .is-#{$button-base-class}-primary-hover !optional;
|
13
|
+
}
|
14
|
+
@include button('&:active') {
|
15
|
+
@extend .is-#{$button-base-class}-primary-active !optional;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@include button(".is-#{$button-base-class}-primary-hover") {
|
20
|
+
@include module-background($button-primary-hover-background);
|
21
|
+
}
|
22
|
+
|
23
|
+
@include button(".is-#{$button-base-class}-primary-active") {
|
24
|
+
@include module-background($button-primary-active-background);
|
25
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later !default; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
// @import "pg/extended/buttons/settings";
|
8
|
+
|
9
|
+
|
10
|
+
// -----------------------------------------------------------------------
|
11
|
+
// Default button overrides - default state
|
12
|
+
// -----------------------------------------------------------------------
|
13
|
+
|
14
|
+
$button-padding: false;
|
15
|
+
|
16
|
+
|
17
|
+
// -----------------------------------------------------------------------
|
18
|
+
// Primary button - default state
|
19
|
+
// -----------------------------------------------------------------------
|
20
|
+
|
21
|
+
$button-primary-background-color: $color-primary;
|
22
|
+
$button-primary-background-image: none;
|
23
|
+
$button-primary-background:
|
24
|
+
$button-primary-background-color
|
25
|
+
$button-primary-background-image
|
26
|
+
;
|
27
|
+
|
28
|
+
|
29
|
+
// -----------------------------------------------------------------------
|
30
|
+
// Primary button - hover state
|
31
|
+
// -----------------------------------------------------------------------
|
32
|
+
|
33
|
+
$button-primary-hover-background-color: darken($button-primary-background-color, 5%);
|
34
|
+
$button-primary-hover-background-image: none;
|
35
|
+
$button-primary-hover-background:
|
36
|
+
$button-primary-hover-background-color
|
37
|
+
$button-primary-hover-background-image
|
38
|
+
;
|
39
|
+
|
40
|
+
|
41
|
+
// -----------------------------------------------------------------------
|
42
|
+
// Primary button - active state
|
43
|
+
// -----------------------------------------------------------------------
|
44
|
+
|
45
|
+
$button-primary-active-background-color: darken($button-primary-background-color, 15%);
|
46
|
+
$button-primary-active-background-image: none;
|
47
|
+
$button-primary-active-background:
|
48
|
+
$button-primary-active-background-color
|
49
|
+
$button-primary-active-background-image
|
50
|
+
;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
@import "settings";
|
8
|
+
@import "helpers";
|
9
|
+
@import "behavior";
|
@@ -0,0 +1,259 @@
|
|
1
|
+
// /**
|
2
|
+
// * @copyright Copyright (C) 2013 Online Kollektief - Babs Gösgens. All rights reserved.
|
3
|
+
// * @license GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
|
6
|
+
// $form-horizontal-padding: rhythm(.5);
|
7
|
+
$form-vertical-padding: rhythm(.5);
|
8
|
+
$form-height-textarea: rhythm(5);
|
9
|
+
|
10
|
+
fieldset {
|
11
|
+
&>ul,
|
12
|
+
&>ol {
|
13
|
+
list-style-type: none;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
fieldset {
|
18
|
+
fieldset {
|
19
|
+
legend {
|
20
|
+
@extend label;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
label,
|
25
|
+
input,
|
26
|
+
select,
|
27
|
+
textarea {
|
28
|
+
display: inline-block;
|
29
|
+
@include adjust-font-size-to($base-font-size);
|
30
|
+
@include box-sizing('border-box');
|
31
|
+
border: 0;
|
32
|
+
margin: 0;
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
textarea {
|
36
|
+
height: $form-height-textarea;
|
37
|
+
}
|
38
|
+
input[type="radio"],
|
39
|
+
input[type="checkbox"] {
|
40
|
+
width: auto;
|
41
|
+
padding: 0;
|
42
|
+
margin: 0;
|
43
|
+
border: 0;
|
44
|
+
vertical-align: baseline;
|
45
|
+
+ label {
|
46
|
+
width: auto;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
input[type="button"],
|
51
|
+
input[type="submit"],
|
52
|
+
input[type="reset"] {
|
53
|
+
@extend .button;
|
54
|
+
width: auto;
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
// .inline {
|
60
|
+
// label {
|
61
|
+
// width: $inlineLabelWidth;
|
62
|
+
// margin-right: $negative-right-margin;
|
63
|
+
// }
|
64
|
+
// input,
|
65
|
+
// select,
|
66
|
+
// textarea {
|
67
|
+
// width: 100% - $inlineLabelWidth;
|
68
|
+
// margin-right: $negative-right-margin;
|
69
|
+
// }
|
70
|
+
// }
|
71
|
+
|
72
|
+
$roundedCorners : true;
|
73
|
+
$color-cta-secondary: $color-attn-one;
|
74
|
+
|
75
|
+
$form-reset-elements: true; // Implement behavior
|
76
|
+
|
77
|
+
$form-color-default: darken($white,10);
|
78
|
+
$form-color-hover: $color-cta-secondary;
|
79
|
+
$form-color-focus: $form-color-hover;
|
80
|
+
$form-color-invalid: $red;
|
81
|
+
$form-color-inactive: lighten($red,60);
|
82
|
+
|
83
|
+
$form-corner-radius: $corner-radius;
|
84
|
+
|
85
|
+
$form-border-width: 1px;
|
86
|
+
$form-border-color: $form-color-default;
|
87
|
+
$form-border-style: solid;
|
88
|
+
|
89
|
+
$form-text-color: $color-body;
|
90
|
+
|
91
|
+
$form-triangle-size: $base-font-size;
|
92
|
+
|
93
|
+
.form-default {
|
94
|
+
@include webkit-remove-shadow-on-input-elements();
|
95
|
+
.span {
|
96
|
+
width: 100%;
|
97
|
+
}
|
98
|
+
li {
|
99
|
+
@include trailer;
|
100
|
+
}
|
101
|
+
input,
|
102
|
+
select,
|
103
|
+
textarea {
|
104
|
+
@if $roundedCorners {
|
105
|
+
@include border-bottom-radius($form-corner-radius);
|
106
|
+
}
|
107
|
+
border: #{$form-border-width} #{$form-border-style} #{$form-border-color};
|
108
|
+
@include box-shadow(0);
|
109
|
+
&:hover,
|
110
|
+
&:focus {
|
111
|
+
outline: none;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
label,
|
115
|
+
input,
|
116
|
+
select,
|
117
|
+
textarea {
|
118
|
+
@include rhythm(0,$form-vertical-spacing,$form-vertical-spacing,0);
|
119
|
+
@include column-spacing();
|
120
|
+
}
|
121
|
+
|
122
|
+
li:hover {
|
123
|
+
.choices legend,
|
124
|
+
>label:first-child {
|
125
|
+
position: relative;
|
126
|
+
background-color: $color-cta-secondary;
|
127
|
+
color: $white;
|
128
|
+
@include triangle($form-triangle-size, down, $form-color-hover, after );
|
129
|
+
&::after {
|
130
|
+
left: (0.5*$column-spacing) - (0.25*$form-triangle-size);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
input,
|
134
|
+
select,
|
135
|
+
textarea {
|
136
|
+
border-color: $form-color-focus;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
.choices {
|
141
|
+
>legend {
|
142
|
+
@extend label;
|
143
|
+
&+ul {
|
144
|
+
@extend input;
|
145
|
+
@include rhythm(0,$form-vertical-spacing,$form-vertical-spacing,0);
|
146
|
+
@include column-spacing();
|
147
|
+
}
|
148
|
+
}
|
149
|
+
li {
|
150
|
+
margin-bottom: 0; // Override trailer
|
151
|
+
position: relative;
|
152
|
+
label {
|
153
|
+
background-color: transcontainer;
|
154
|
+
}
|
155
|
+
input {
|
156
|
+
position: absolute;
|
157
|
+
&+label {
|
158
|
+
padding-left: 1.3em;
|
159
|
+
padding-right: 0;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
label,
|
163
|
+
input {
|
164
|
+
@include vertical-rhythm(1,height);
|
165
|
+
padding: 0;
|
166
|
+
border: 0;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
&.boolean {
|
170
|
+
legend+ul {
|
171
|
+
margin-top: 0;
|
172
|
+
}
|
173
|
+
li {
|
174
|
+
display: inline-block;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
label {
|
180
|
+
@include border-top-radius($corner-radius);
|
181
|
+
background-color: $form-color-default;
|
182
|
+
&+textarea,
|
183
|
+
&+input,
|
184
|
+
&+select+input,
|
185
|
+
&+select+.select,
|
186
|
+
&+select+.input>.select {
|
187
|
+
@include border-top-radius(0);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
label+select {
|
192
|
+
@include vertical-rhythm(0.5, margin-top);
|
193
|
+
}
|
194
|
+
|
195
|
+
label.invalid,
|
196
|
+
label.invalid:hover {
|
197
|
+
background-color: $form-color-invalid !important;
|
198
|
+
color: $white !important;
|
199
|
+
}
|
200
|
+
.invalid,
|
201
|
+
.invalid:hover {
|
202
|
+
border-color: $form-color-invalid !important;
|
203
|
+
}
|
204
|
+
.invalid::after {
|
205
|
+
border-top-color: $form-color-invalid !important;
|
206
|
+
}
|
207
|
+
|
208
|
+
// Items with a sublabel
|
209
|
+
input[type="number"] {
|
210
|
+
@include column(1/2);
|
211
|
+
@include border-right-radius(0);
|
212
|
+
border-right-width: 0;
|
213
|
+
+label {
|
214
|
+
@extend input;
|
215
|
+
background-color: transcontainer !important;
|
216
|
+
@include column(1/2);
|
217
|
+
@include border-bottom-radius($corner-radius);
|
218
|
+
@include border-left-radius(0);
|
219
|
+
@include border-top-radius(0);
|
220
|
+
color: $color-body !important;
|
221
|
+
border-left-width: 0;
|
222
|
+
white-space: nowrap;
|
223
|
+
&.invalid:hover {
|
224
|
+
background-color: transcontainer !important;
|
225
|
+
color: $color-body !important;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
input[type="number"],
|
230
|
+
input[type="number"]+label {
|
231
|
+
height: rhythm(2) !important;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
//*
|
236
|
+
//* Searchbox styling
|
237
|
+
//* http://css-tricks.com/webkit-html5-search-inputs/
|
238
|
+
//*
|
239
|
+
input[type="search"] {
|
240
|
+
@include font-size(16px);
|
241
|
+
::-webkit-input-placeholder,
|
242
|
+
:-moz-placeholder,
|
243
|
+
::-moz-placeholder,
|
244
|
+
:-ms-placeholder {
|
245
|
+
color: $color-theme;
|
246
|
+
color: $color-body;
|
247
|
+
text-align: left;
|
248
|
+
cursor: pointer;
|
249
|
+
// letter-spacing: 4px;
|
250
|
+
text-shadow: 0 0 2px black;
|
251
|
+
word-spacing: 20px;
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
// noindex:-o-prefocus, input[type="number"] {
|
257
|
+
// padding-top: (14/16)*1em;
|
258
|
+
// padding-bottom: (14/16)*1em;
|
259
|
+
// }
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// /**
|
2
|
+
// * @copyright Copyright (C) 2013 Online Kollektief - Babs Gösgens. All rights reserved.
|
3
|
+
// * @license GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@import "pg/extended/forms/settings";
|
6
|
+
|
7
|
+
// $input-border-width : 1px;
|
8
|
+
// $input-border-style : solid;
|
9
|
+
// $input-border-color : #cec;
|
10
|
+
// $input-border-radius : $corner-radius; // Defaults to 3px
|
11
|
+
// $input-border : $input-border-width $input-border-style $input-border-color;
|
12
|
+
|
13
|
+
// $input-background-image : false;
|
14
|
+
|
15
|
+
// $input-shadow-box : #efefef 1px 1px 2px 0;
|
16
|
+
// $input-shadow-inner : #efefef 1px 1px 0 0 inset;
|
17
|
+
// $input-shadow : $input-shadow-box, $input-shadow-inner;
|
18
|
+
|
19
|
+
// // ################################################################################################################################ //
|
20
|
+
// // Forms //
|
21
|
+
// // ################################################################################################################################ //
|
22
|
+
|
23
|
+
// $inlineLabelWidth : 35% !default;
|
24
|
+
// $roundedCorners : true;
|
25
|
+
// $inputShadowInset : 0 0 0 1px rgba(0,0,0,.2) inset; //h-shadow v-shadow blur spread color inset;
|
26
|
+
// $inputShadowOutset : 0 0 10px 0 rgba(255,255,255,1);
|
27
|
+
// $heightTextarea : 4*$base-line-height !default;
|
28
|
+
// $form-vertical-spacing : 0.5;
|
29
|
+
// $form-color-invalid : #d03;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
|
6
|
+
##{$linkbar-base-class} {
|
7
|
+
@include column-spacing;
|
8
|
+
}
|
9
|
+
|
10
|
+
.#{$linkbar-base-class}-item,
|
11
|
+
.#{$linkbar-base-class}-item-link {
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
|
15
|
+
.#{$linkbar-base-class}-item {
|
16
|
+
@if($linkbar-item-background) {
|
17
|
+
background: $linkbar-item-background;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.#{$linkbar-base-class}-item-link {
|
22
|
+
text-decoration: none;
|
23
|
+
@if($linkbar-item-link-padding) {
|
24
|
+
padding: $linkbar-item-link-padding;
|
25
|
+
}
|
26
|
+
@include column-spacing; // Override default padding because smalles views have built-in smaller column spadding
|
27
|
+
@if($linkbar-item-link-background) {
|
28
|
+
background: $linkbar-item-link-background;
|
29
|
+
}
|
30
|
+
@if($linkbar-item-link-color) {
|
31
|
+
color: $linkbar-item-link-color;
|
32
|
+
}
|
33
|
+
&:hover {
|
34
|
+
@extend .is-#{$linkbar-base-class}-item-link-hover;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.is-#{$linkbar-base-class}-item-link-hover {
|
39
|
+
@if($linkbar-item-link-hover-background) {
|
40
|
+
background: $linkbar-item-link-hover-background;
|
41
|
+
}
|
42
|
+
@if($linkbar-item-link-hover-color) {
|
43
|
+
color: $linkbar-item-link-hover-color;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.#{$linkbar-base-class}-trigger {
|
48
|
+
@extend .is-visible;
|
49
|
+
display: inline-block;
|
50
|
+
&+.#{$linkbar-base-class} {
|
51
|
+
@include is-hidden;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
##{$linkbar-base-class}:target {
|
56
|
+
.#{$linkbar-base-class} {
|
57
|
+
@include is-not-hidden();
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@include breakpoint($medium_handheld) {
|
62
|
+
.#{$linkbar-base-class}-trigger {
|
63
|
+
&+.#{$linkbar-base-class} {
|
64
|
+
@include is-not-hidden;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
.#{$linkbar-base-class}-item,
|
68
|
+
.#{$linkbar-base-class}-item-link {
|
69
|
+
display: inline-block;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|