card 1.15.1 → 1.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/card.gemspec +19 -16
- data/config/initializers/recaptcha.rb +1 -0
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +13 -14
- data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +30 -0
- data/db/migrate_core_cards/20150331135745_new_card_menu.rb +8 -0
- data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +27 -0
- data/db/migrate_core_cards/20150510031118_fix_skin_images.rb +13 -0
- data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +9 -5
- data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +5 -5
- data/{test/fixtures/.gitkeep → db/migrate_core_cards/data/themes/bootstrap_default/_bootswatch.scss} +0 -0
- data/db/migrate_core_cards/data/themes/bootstrap_default/_variables.scss +866 -0
- data/db/migrate_core_cards/data/themes/cerulean/_bootswatch.scss +125 -0
- data/db/migrate_core_cards/data/themes/cerulean/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/cosmo/_bootswatch.scss +237 -0
- data/db/migrate_core_cards/data/themes/cosmo/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/cyborg/_bootswatch.scss +210 -0
- data/db/migrate_core_cards/data/themes/cyborg/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/darkly/_bootswatch.scss +330 -0
- data/db/migrate_core_cards/data/themes/darkly/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/flatly/_bootswatch.scss +313 -0
- data/db/migrate_core_cards/data/themes/flatly/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/journal/_bootswatch.scss +120 -0
- data/db/migrate_core_cards/data/themes/journal/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/lumen/_bootswatch.scss +496 -0
- data/db/migrate_core_cards/data/themes/lumen/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/paper/_bootswatch.scss +607 -0
- data/db/migrate_core_cards/data/themes/paper/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/readable/_bootswatch.scss +174 -0
- data/db/migrate_core_cards/data/themes/readable/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/sandstone/_bootswatch.scss +194 -0
- data/db/migrate_core_cards/data/themes/sandstone/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/simplex/_bootswatch.scss +142 -0
- data/db/migrate_core_cards/data/themes/simplex/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/slate/_bootswatch.scss +417 -0
- data/db/migrate_core_cards/data/themes/slate/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/spacelab/_bootswatch.scss +137 -0
- data/db/migrate_core_cards/data/themes/spacelab/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/superhero/_bootswatch.scss +332 -0
- data/db/migrate_core_cards/data/themes/superhero/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/united/_bootswatch.scss +42 -0
- data/db/migrate_core_cards/data/themes/united/_variables.scss +861 -0
- data/db/migrate_core_cards/data/themes/yeti/_bootswatch.scss +437 -0
- data/db/migrate_core_cards/data/themes/yeti/_variables.scss +861 -0
- data/db/seed/README.md +2 -0
- data/db/{bootstrap → seed/new}/card_actions.yml +561 -295
- data/db/{bootstrap → seed/new}/card_acts.yml +1 -1
- data/db/seed/new/card_changes.yml +29331 -0
- data/db/{bootstrap → seed/new}/card_references.yml +1544 -1355
- data/db/seed/new/cards.yml +28057 -0
- data/db/seed/test/fixtures/.gitkeep +0 -0
- data/{test → db/seed/test}/fixtures/card_actions.yml +1501 -1235
- data/{test → db/seed/test}/fixtures/card_acts.yml +244 -244
- data/db/seed/test/fixtures/card_changes.yml +34527 -0
- data/{test → db/seed/test}/fixtures/card_references.yml +2215 -2026
- data/db/seed/test/fixtures/cards.yml +32708 -0
- data/{test → db/seed/test}/fixtures/mao2.jpg +0 -0
- data/{test → db/seed/test}/fixtures/rails.gif +0 -0
- data/{test → db/seed/test}/seed.rb +0 -0
- data/db/version_core_cards.txt +1 -1
- data/lib/card/format.rb +56 -56
- data/lib/cardio.rb +7 -5
- data/mod/01_core/chunk/include.rb +1 -1
- data/mod/01_core/set/all/fetch.rb +27 -27
- data/mod/01_core/set/all/rules.rb +53 -53
- data/mod/01_core/set/all/states.rb +5 -0
- data/mod/01_core/spec/format/html_format_spec.rb +6 -6
- data/mod/01_core/spec/set/all/rules2_spec.rb +6 -6
- data/mod/01_history/set/all/history.rb +4 -4
- data/mod/02_basic_types/set/all/rss.rb +10 -9
- data/mod/03_machines/lib/javascript/script_card_menu.js.coffee +20 -0
- data/mod/03_machines/lib/javascript/wagn.js.coffee +46 -34
- data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +36 -148
- data/mod/03_machines/lib/stylesheets/style_bootstrap_compatible.css +10 -96
- data/mod/03_machines/lib/stylesheets/style_cards.scss +127 -87
- data/mod/03_machines/set/self/script_card_menu.rb +10 -2
- data/mod/05_email/set/all/follow.rb +38 -22
- data/mod/05_email/set/right/follow.rb +79 -1
- data/mod/05_email/set/type_plus_right/user/follow.rb +31 -31
- data/mod/05_email/spec/set/all/follow_spec.rb +37 -28
- data/mod/05_email/spec/set/right/followers_spec.rb +29 -29
- data/mod/05_standard/set/all/error.rb +17 -20
- data/mod/05_standard/set/all/links.rb +31 -18
- data/mod/05_standard/set/all/rich_html/content.rb +41 -18
- data/mod/05_standard/set/all/rich_html/editing.rb +21 -17
- data/mod/05_standard/set/all/rich_html/header.rb +13 -48
- data/mod/05_standard/set/all/rich_html/menu.rb +147 -0
- data/mod/05_standard/set/all/rich_html/modal.rb +54 -0
- data/mod/05_standard/set/all/rich_html/toolbar.rb +237 -0
- data/mod/05_standard/set/all/rich_html/wrapper.rb +43 -25
- data/mod/05_standard/set/right/account.rb +8 -7
- data/mod/05_standard/set/rstar/rules.rb +111 -84
- data/mod/05_standard/set/self/head.rb +15 -15
- data/mod/05_standard/set/type/set.rb +65 -34
- data/mod/05_standard/spec/set/all/attach_spec.rb +1 -1
- data/mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb +13 -9
- data/mod/05_standard/spec/set/rstar/rules_spec.rb +1 -1
- data/mod/06_bootstrap/lib/javascript/bootstrap.js +108 -97
- data/mod/06_bootstrap/lib/javascript/smartmenu.js +94 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_alerts.scss +73 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_badges.scss +68 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_button-groups.scss +243 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_buttons.scss +160 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_carousel.scss +269 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_close.scss +36 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_code.scss +69 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_component-animations.scss +37 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_dropdowns.scss +214 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_forms.scss +578 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_glyphicons.scss +305 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_grid.scss +84 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_input-groups.scss +166 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_jumbotron.scss +50 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_labels.scss +66 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_list-group.scss +124 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_media.scss +61 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_mixins.scss +39 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_modals.scss +150 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_navbar.scss +662 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_navs.scss +242 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_normalize.scss +427 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_pager.scss +54 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_pagination.scss +88 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_panels.scss +265 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_popovers.scss +135 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_print.scss +107 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_progress-bars.scss +87 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_responsive-embed.scss +35 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_responsive-utilities.scss +177 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_scaffolding.scss +162 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_tables.scss +234 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_theme.scss +273 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_tooltip.scss +102 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_type.scss +298 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_utilities.scss +55 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_variables.scss +866 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/_wells.scss +29 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/mod/06_bootstrap/lib/stylesheets/{bootswatch_mixins.scss → bootstrap/mixins/_vendor-prefixes.scss} +1 -61
- data/mod/06_bootstrap/lib/stylesheets/bootstrap_cards.scss +20 -13
- data/mod/06_bootstrap/lib/stylesheets/smartmenu.css +433 -0
- data/mod/06_bootstrap/set/all/bootstrap/wrapper.rb +2 -2
- data/mod/06_bootstrap/set/all/rich_bootstrap.rb +58 -4
- data/mod/06_bootstrap/set/self/bootstrap_js.rb +1 -1
- data/mod/06_bootstrap/set/self/bootswatch_shared.rb +32 -0
- data/mod/06_bootstrap/set/self/smartmenu_css.rb +7 -0
- data/mod/06_bootstrap/set/self/smartmenu_js.rb +7 -0
- data/spec/spec_helper.rb +16 -16
- metadata +133 -93
- data/db/bootstrap/card_changes.yml +0 -12765
- data/db/bootstrap/cards.yml +0 -11567
- data/db/seeds.rb +0 -8
- data/mod/03_machines/lib/javascript/script_card_menu.js +0 -72
- data/mod/06_bootstrap/lib/stylesheets/bootstrap_css.css +0 -6565
- data/mod/06_bootstrap/lib/stylesheets/theme_bootstrap_default.css +0 -476
- data/mod/06_bootstrap/lib/stylesheets/theme_cerulean.css +0 -6721
- data/mod/06_bootstrap/lib/stylesheets/theme_cosmo.css +0 -5898
- data/mod/06_bootstrap/lib/stylesheets/theme_cyborg.css +0 -5876
- data/mod/06_bootstrap/lib/stylesheets/theme_darkly.css +0 -5986
- data/mod/06_bootstrap/lib/stylesheets/theme_flatly.css +0 -6830
- data/mod/06_bootstrap/lib/stylesheets/theme_journal.css +0 -6647
- data/mod/06_bootstrap/lib/stylesheets/theme_lumen.css +0 -6097
- data/mod/06_bootstrap/lib/stylesheets/theme_paper.css +0 -6647
- data/mod/06_bootstrap/lib/stylesheets/theme_readable.css +0 -5896
- data/mod/06_bootstrap/lib/stylesheets/theme_sandstone.css +0 -6733
- data/mod/06_bootstrap/lib/stylesheets/theme_simplex.css +0 -5886
- data/mod/06_bootstrap/lib/stylesheets/theme_slate.css +0 -7057
- data/mod/06_bootstrap/lib/stylesheets/theme_spacelab.css +0 -5935
- data/mod/06_bootstrap/lib/stylesheets/theme_superhero.css +0 -5964
- data/mod/06_bootstrap/lib/stylesheets/theme_united.css +0 -6588
- data/mod/06_bootstrap/lib/stylesheets/theme_yeti.css +0 -6088
- data/mod/06_bootstrap/set/self/bootstrap_css.rb +0 -9
- data/mod/06_bootstrap/set/self/bootswatch_mixins.rb +0 -9
- data/mod/06_bootstrap/set/self/theme_bootstrap_default.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_cerulean.rb +0 -9
- data/mod/06_bootstrap/set/self/theme_cosmo.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_cyborg.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_darkly.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_flatly.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_journal.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_lumen.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_paper.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_readable.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_sandstone.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_simplex.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_slate.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_spacelab.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_superhero.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_united.rb +0 -2
- data/mod/06_bootstrap/set/self/theme_yeti.rb +0 -2
- data/test/fixtures/card_changes.yml +0 -17961
- data/test/fixtures/cards.yml +0 -16218
@@ -0,0 +1,607 @@
|
|
1
|
+
// Paper 3.3.4
|
2
|
+
// Bootswatch
|
3
|
+
// -----------------------------------------------------
|
4
|
+
|
5
|
+
@import url("//fonts.googleapis.com/css?family=Roboto:300,400,500,700");
|
6
|
+
|
7
|
+
// Navbar =====================================================================
|
8
|
+
|
9
|
+
.navbar {
|
10
|
+
border: none;
|
11
|
+
@include box-shadow(0 1px 2px rgba(0,0,0,.3));
|
12
|
+
|
13
|
+
&-brand {
|
14
|
+
font-size: 24px;
|
15
|
+
}
|
16
|
+
|
17
|
+
&-inverse {
|
18
|
+
.form-control {
|
19
|
+
color: #fff;
|
20
|
+
@include placeholder($navbar-inverse-link-color);
|
21
|
+
|
22
|
+
&[type=text] {
|
23
|
+
@include box-shadow(inset 0 -1px 0 $navbar-inverse-link-color);
|
24
|
+
|
25
|
+
&:focus {
|
26
|
+
@include box-shadow(inset 0 -2px 0 #fff);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&-nav > li > .dropdown-menu {
|
33
|
+
margin-top: 2px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// Buttons ====================================================================
|
38
|
+
|
39
|
+
@mixin btn($class,$bg){
|
40
|
+
.btn-#{$class} {
|
41
|
+
background-size: 200%;
|
42
|
+
background-position: 50%;
|
43
|
+
|
44
|
+
&:hover,
|
45
|
+
&:active:hover,
|
46
|
+
&:focus {
|
47
|
+
background-color: darken($bg, 6%);
|
48
|
+
}
|
49
|
+
|
50
|
+
&:active {
|
51
|
+
background-color: darken($bg, 6%);
|
52
|
+
@include gradient-radial(darken($bg, 6%) 10%, $bg 11%);
|
53
|
+
background-size: 1000%;
|
54
|
+
@include box-shadow(2px 2px 2px rgba(0,0,0,.3));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@include btn(default,$btn-default-bg);
|
60
|
+
@include btn(primary,$btn-primary-bg);
|
61
|
+
@include btn(success,$btn-success-bg);
|
62
|
+
@include btn(info,$btn-info-bg);
|
63
|
+
@include btn(warning,$btn-warning-bg);
|
64
|
+
@include btn(danger,$btn-danger-bg);
|
65
|
+
|
66
|
+
.btn {
|
67
|
+
text-transform: uppercase;
|
68
|
+
border-right: none;
|
69
|
+
border-bottom: none;
|
70
|
+
@include box-shadow(1px 1px 2px rgba(0,0,0,.3));
|
71
|
+
@include transition(all 0.2s);
|
72
|
+
|
73
|
+
&-link {
|
74
|
+
@include box-shadow(none);
|
75
|
+
|
76
|
+
&:hover,
|
77
|
+
&:focus {
|
78
|
+
color: $brand-primary;
|
79
|
+
text-decoration: none;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&-default.disabled {
|
84
|
+
border: 1px solid $btn-default-border;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.btn-group {
|
89
|
+
.btn + .btn,
|
90
|
+
.btn + .btn-group,
|
91
|
+
.btn-group + .btn,
|
92
|
+
.btn-group + .btn-group {
|
93
|
+
margin-left: 0;
|
94
|
+
}
|
95
|
+
|
96
|
+
&-vertical {
|
97
|
+
> .btn + .btn,
|
98
|
+
> .btn + .btn-group,
|
99
|
+
> .btn-group + .btn,
|
100
|
+
> .btn-group + .btn-group {
|
101
|
+
margin-top: 0;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Typography =================================================================
|
107
|
+
|
108
|
+
body {
|
109
|
+
-webkit-font-smoothing: antialiased;
|
110
|
+
letter-spacing: .1px;
|
111
|
+
text-rendering: optimizeLegibility;
|
112
|
+
}
|
113
|
+
|
114
|
+
p {
|
115
|
+
margin: 0 0 1em;
|
116
|
+
}
|
117
|
+
|
118
|
+
input,
|
119
|
+
button {
|
120
|
+
-webkit-font-smoothing: antialiased;
|
121
|
+
letter-spacing: .1px;
|
122
|
+
text-rendering: optimizeLegibility;
|
123
|
+
}
|
124
|
+
|
125
|
+
a {
|
126
|
+
@include transition(all 0.2s);
|
127
|
+
}
|
128
|
+
|
129
|
+
// Tables =====================================================================
|
130
|
+
|
131
|
+
// Forms ======================================================================
|
132
|
+
|
133
|
+
label {
|
134
|
+
font-weight: normal;
|
135
|
+
}
|
136
|
+
|
137
|
+
textarea,
|
138
|
+
textarea.form-control,
|
139
|
+
input.form-control,
|
140
|
+
input[type=text],
|
141
|
+
input[type=password],
|
142
|
+
input[type=email],
|
143
|
+
input[type=number],
|
144
|
+
[type=text].form-control,
|
145
|
+
[type=password].form-control,
|
146
|
+
[type=email].form-control,
|
147
|
+
[type=tel].form-control,
|
148
|
+
[contenteditable].form-control {
|
149
|
+
padding: 0;
|
150
|
+
border: none;
|
151
|
+
border-radius: 0;
|
152
|
+
-webkit-appearance: none;
|
153
|
+
@include box-shadow(inset 0 -1px 0 #ddd);
|
154
|
+
font-size: 16px;
|
155
|
+
|
156
|
+
&:focus {
|
157
|
+
@include box-shadow(inset 0 -2px 0 $brand-primary);
|
158
|
+
}
|
159
|
+
|
160
|
+
&[disabled],
|
161
|
+
&[readonly] {
|
162
|
+
@include box-shadow(none);
|
163
|
+
border-bottom: 1px dotted #ddd;
|
164
|
+
}
|
165
|
+
|
166
|
+
&.input {
|
167
|
+
&-sm {
|
168
|
+
font-size: $font-size-small;
|
169
|
+
}
|
170
|
+
|
171
|
+
&-lg {
|
172
|
+
font-size: $font-size-large;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
select,
|
178
|
+
select.form-control {
|
179
|
+
border: 0;
|
180
|
+
border-radius: 0;
|
181
|
+
-webkit-appearance: none;
|
182
|
+
-moz-appearance: none;
|
183
|
+
appearance: none;
|
184
|
+
padding-left: 0;
|
185
|
+
padding-right: 0\9; // remove padding for < ie9 since default arrow can't be removed
|
186
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
|
187
|
+
background-size: 13px;
|
188
|
+
background-repeat: no-repeat;
|
189
|
+
background-position: right center;
|
190
|
+
@include box-shadow(inset 0 -1px 0 #ddd);
|
191
|
+
font-size: 16px;
|
192
|
+
line-height: 1.5;
|
193
|
+
|
194
|
+
&::-ms-expand {
|
195
|
+
display: none;
|
196
|
+
}
|
197
|
+
|
198
|
+
&.input {
|
199
|
+
&-sm {
|
200
|
+
font-size: $font-size-small;
|
201
|
+
}
|
202
|
+
|
203
|
+
&-lg {
|
204
|
+
font-size: $font-size-large;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
&:focus {
|
209
|
+
@include box-shadow(inset 0 -2px 0 $brand-primary);
|
210
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
|
211
|
+
}
|
212
|
+
|
213
|
+
&[multiple] {
|
214
|
+
background: none;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
.radio,
|
219
|
+
.radio-inline,
|
220
|
+
.checkbox,
|
221
|
+
.checkbox-inline {
|
222
|
+
label {
|
223
|
+
padding-left: 25px;
|
224
|
+
}
|
225
|
+
|
226
|
+
input[type="radio"],
|
227
|
+
input[type="checkbox"] {
|
228
|
+
margin-left: -25px;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
input[type="radio"],
|
233
|
+
.radio input[type="radio"],
|
234
|
+
.radio-inline input[type="radio"] {
|
235
|
+
position: relative;
|
236
|
+
margin-top: 5px;
|
237
|
+
margin-right: 4px;
|
238
|
+
vertical-align: -4px;
|
239
|
+
border: none;
|
240
|
+
background-color: transparent;
|
241
|
+
-webkit-appearance: none;
|
242
|
+
appearance: none;
|
243
|
+
cursor: pointer;
|
244
|
+
|
245
|
+
&:focus {
|
246
|
+
outline: none;
|
247
|
+
}
|
248
|
+
|
249
|
+
&:before,
|
250
|
+
&:after {
|
251
|
+
content: "";
|
252
|
+
display: block;
|
253
|
+
width: 18px;
|
254
|
+
height: 18px;
|
255
|
+
margin-top: -3px;
|
256
|
+
border-radius: 50%;
|
257
|
+
@include transition(240ms);
|
258
|
+
}
|
259
|
+
|
260
|
+
&:before {
|
261
|
+
position: absolute;
|
262
|
+
left: 0;
|
263
|
+
top: 0;
|
264
|
+
background-color: $brand-primary;
|
265
|
+
@include scale(0);
|
266
|
+
}
|
267
|
+
|
268
|
+
&:after {
|
269
|
+
border: 2px solid $gray;
|
270
|
+
}
|
271
|
+
|
272
|
+
&:checked:before {
|
273
|
+
@include scale(0.5);
|
274
|
+
}
|
275
|
+
|
276
|
+
&:disabled:checked:before {
|
277
|
+
background-color: $gray-light;
|
278
|
+
}
|
279
|
+
|
280
|
+
&:checked:after {
|
281
|
+
border-color: $brand-primary;
|
282
|
+
}
|
283
|
+
|
284
|
+
&:disabled:after,
|
285
|
+
&:disabled:checked:after {
|
286
|
+
border-color: $gray-light;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
|
290
|
+
input[type="checkbox"],
|
291
|
+
.checkbox input[type="checkbox"],
|
292
|
+
.checkbox-inline input[type="checkbox"] {
|
293
|
+
position: relative;
|
294
|
+
vertical-align: -4px;
|
295
|
+
border: none;
|
296
|
+
-webkit-appearance: none;
|
297
|
+
appearance: none;
|
298
|
+
cursor: pointer;
|
299
|
+
|
300
|
+
&:focus {
|
301
|
+
outline: none;
|
302
|
+
}
|
303
|
+
|
304
|
+
&:after {
|
305
|
+
content: "";
|
306
|
+
display: block;
|
307
|
+
width: 18px;
|
308
|
+
height: 18px;
|
309
|
+
margin-top: -2px;
|
310
|
+
margin-right: 5px;
|
311
|
+
border: 2px solid $gray;
|
312
|
+
border-radius: 2px;
|
313
|
+
@include transition(240ms);
|
314
|
+
}
|
315
|
+
|
316
|
+
&:checked:before {
|
317
|
+
content: "";
|
318
|
+
position: absolute;
|
319
|
+
top: 0;
|
320
|
+
left: 6px;
|
321
|
+
display: table;
|
322
|
+
width: 6px;
|
323
|
+
height: 12px;
|
324
|
+
border: 2px solid #fff;
|
325
|
+
border-top-width: 0;
|
326
|
+
border-left-width: 0;
|
327
|
+
@include rotate(45deg);
|
328
|
+
}
|
329
|
+
|
330
|
+
&:checked:after {
|
331
|
+
background-color: $brand-primary;
|
332
|
+
border-color: $brand-primary;
|
333
|
+
}
|
334
|
+
|
335
|
+
&:disabled:after {
|
336
|
+
border-color: $gray-light;
|
337
|
+
}
|
338
|
+
|
339
|
+
&:disabled:checked:after {
|
340
|
+
background-color: $gray-light;
|
341
|
+
border-color: transparent;
|
342
|
+
}
|
343
|
+
}
|
344
|
+
|
345
|
+
.has-warning {
|
346
|
+
input:not([type=checkbox]),
|
347
|
+
.form-control,
|
348
|
+
input:not([type=checkbox]):focus,
|
349
|
+
.form-control:focus {
|
350
|
+
@include box-shadow(inset 0 -2px 0 $brand-warning);
|
351
|
+
}
|
352
|
+
}
|
353
|
+
|
354
|
+
.has-error {
|
355
|
+
input:not([type=checkbox]),
|
356
|
+
.form-control,
|
357
|
+
input:not([type=checkbox]):focus,
|
358
|
+
.form-control:focus {
|
359
|
+
@include box-shadow(inset 0 -2px 0 $brand-danger);
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
.has-success {
|
364
|
+
input:not([type=checkbox]),
|
365
|
+
.form-control,
|
366
|
+
input:not([type=checkbox]):focus,
|
367
|
+
.form-control:focus {
|
368
|
+
@include box-shadow(inset 0 -2px 0 $brand-success);
|
369
|
+
}
|
370
|
+
}
|
371
|
+
|
372
|
+
// Navs =======================================================================
|
373
|
+
|
374
|
+
.nav-tabs {
|
375
|
+
> li > a,
|
376
|
+
> li > a:focus {
|
377
|
+
margin-right: 0;
|
378
|
+
background-color: transparent;
|
379
|
+
border: none;
|
380
|
+
color: $navbar-default-link-color;
|
381
|
+
@include box-shadow(inset 0 -1px 0 #ddd);
|
382
|
+
@include transition(all 0.2s);
|
383
|
+
|
384
|
+
&:hover {
|
385
|
+
background-color: transparent;
|
386
|
+
@include box-shadow(inset 0 -2px 0 $brand-primary);
|
387
|
+
color: $brand-primary;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
& > li.active > a,
|
392
|
+
& > li.active > a:focus {
|
393
|
+
border: none;
|
394
|
+
@include box-shadow(inset 0 -2px 0 $brand-primary);
|
395
|
+
color: $brand-primary;
|
396
|
+
|
397
|
+
&:hover {
|
398
|
+
border: none;
|
399
|
+
color: $brand-primary;
|
400
|
+
}
|
401
|
+
}
|
402
|
+
|
403
|
+
& > li.disabled > a {
|
404
|
+
@include box-shadow(inset 0 -1px 0 #ddd);
|
405
|
+
}
|
406
|
+
|
407
|
+
&.nav-justified {
|
408
|
+
|
409
|
+
& > li > a,
|
410
|
+
& > li > a:hover,
|
411
|
+
& > .active > a,
|
412
|
+
& > .active > a:hover {
|
413
|
+
border: none;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
.dropdown-menu {
|
418
|
+
margin-top: 0;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
|
422
|
+
.dropdown-menu {
|
423
|
+
border: none;
|
424
|
+
@include box-shadow(0 1px 4px rgba(0,0,0,.3));
|
425
|
+
}
|
426
|
+
|
427
|
+
// Indicators =================================================================
|
428
|
+
|
429
|
+
.alert {
|
430
|
+
border: none;
|
431
|
+
color: #fff;
|
432
|
+
|
433
|
+
&-success {
|
434
|
+
background-color: $brand-success;
|
435
|
+
}
|
436
|
+
|
437
|
+
&-info {
|
438
|
+
background-color: $brand-info;
|
439
|
+
}
|
440
|
+
|
441
|
+
&-warning {
|
442
|
+
background-color: $brand-warning;
|
443
|
+
}
|
444
|
+
|
445
|
+
&-danger {
|
446
|
+
background-color: $brand-danger;
|
447
|
+
}
|
448
|
+
|
449
|
+
a:not(.close),
|
450
|
+
.alert-link {
|
451
|
+
color: #fff;
|
452
|
+
font-weight: bold;
|
453
|
+
}
|
454
|
+
|
455
|
+
.close {
|
456
|
+
color: #fff;
|
457
|
+
}
|
458
|
+
}
|
459
|
+
|
460
|
+
.badge {
|
461
|
+
padding: 3px 6px 5px;
|
462
|
+
}
|
463
|
+
|
464
|
+
.progress {
|
465
|
+
position: relative;
|
466
|
+
z-index: 1;
|
467
|
+
height: 6px;
|
468
|
+
border-radius: 0;
|
469
|
+
|
470
|
+
@include box-shadow(none);
|
471
|
+
|
472
|
+
&-bar {
|
473
|
+
@include box-shadow(none);
|
474
|
+
|
475
|
+
&:last-child {
|
476
|
+
border-radius: 0 3px 3px 0;
|
477
|
+
}
|
478
|
+
|
479
|
+
&:last-child {
|
480
|
+
&:before {
|
481
|
+
display: block;
|
482
|
+
content: "";
|
483
|
+
position: absolute;
|
484
|
+
width: 100%;
|
485
|
+
height: 100%;
|
486
|
+
left: 0;
|
487
|
+
right: 0;
|
488
|
+
z-index: -1;
|
489
|
+
background-color: lighten($progress-bar-bg, 35%);
|
490
|
+
}
|
491
|
+
}
|
492
|
+
|
493
|
+
&-success:last-child.progress-bar:before {
|
494
|
+
background-color: lighten($brand-success, 35%);
|
495
|
+
}
|
496
|
+
|
497
|
+
&-info:last-child.progress-bar:before {
|
498
|
+
background-color: lighten($brand-info, 45%);
|
499
|
+
}
|
500
|
+
&-warning:last-child.progress-bar:before {
|
501
|
+
background-color: lighten($brand-warning, 35%);
|
502
|
+
}
|
503
|
+
|
504
|
+
&-danger:last-child.progress-bar:before {
|
505
|
+
background-color: lighten($brand-danger, 25%);
|
506
|
+
}
|
507
|
+
}
|
508
|
+
}
|
509
|
+
|
510
|
+
// Progress bars ==============================================================
|
511
|
+
|
512
|
+
// Containers =================================================================
|
513
|
+
|
514
|
+
.close {
|
515
|
+
font-size: 34px;
|
516
|
+
font-weight: 300;
|
517
|
+
line-height: 24px;
|
518
|
+
opacity: 0.6;
|
519
|
+
|
520
|
+
&:hover {
|
521
|
+
opacity: 1;
|
522
|
+
}
|
523
|
+
}
|
524
|
+
|
525
|
+
.list-group {
|
526
|
+
|
527
|
+
&-item {
|
528
|
+
padding: 15px;
|
529
|
+
}
|
530
|
+
|
531
|
+
&-item-text {
|
532
|
+
color: $gray-light;
|
533
|
+
}
|
534
|
+
}
|
535
|
+
|
536
|
+
.well {
|
537
|
+
border-radius: 0;
|
538
|
+
@include box-shadow(none);
|
539
|
+
}
|
540
|
+
|
541
|
+
.panel {
|
542
|
+
border: none;
|
543
|
+
border-radius: 2px;
|
544
|
+
@include box-shadow(0 1px 4px rgba(0,0,0,.3));
|
545
|
+
|
546
|
+
&-heading {
|
547
|
+
border-bottom: none;
|
548
|
+
}
|
549
|
+
|
550
|
+
&-footer {
|
551
|
+
border-top: none;
|
552
|
+
}
|
553
|
+
|
554
|
+
&-success {
|
555
|
+
.panel-heading {
|
556
|
+
background-color: $brand-success;
|
557
|
+
}
|
558
|
+
|
559
|
+
.panel-title {
|
560
|
+
color: #fff;
|
561
|
+
}
|
562
|
+
}
|
563
|
+
|
564
|
+
&-info {
|
565
|
+
.panel-heading {
|
566
|
+
background-color: $brand-info;
|
567
|
+
}
|
568
|
+
|
569
|
+
.panel-title {
|
570
|
+
color: #fff;
|
571
|
+
}
|
572
|
+
}
|
573
|
+
|
574
|
+
&-warning {
|
575
|
+
.panel-heading {
|
576
|
+
background-color: $brand-warning;
|
577
|
+
}
|
578
|
+
|
579
|
+
.panel-title {
|
580
|
+
color: #fff;
|
581
|
+
}
|
582
|
+
}
|
583
|
+
|
584
|
+
&-danger {
|
585
|
+
.panel-heading {
|
586
|
+
background-color: $brand-danger;
|
587
|
+
}
|
588
|
+
|
589
|
+
.panel-title {
|
590
|
+
color: #fff;
|
591
|
+
}
|
592
|
+
}
|
593
|
+
}
|
594
|
+
|
595
|
+
.popover {
|
596
|
+
border: none;
|
597
|
+
@include box-shadow(0 1px 4px rgba(0,0,0,.3));
|
598
|
+
}
|
599
|
+
|
600
|
+
.carousel {
|
601
|
+
&-caption {
|
602
|
+
h1, h2, h3, h4, h5, h6 {
|
603
|
+
color: inherit;
|
604
|
+
}
|
605
|
+
}
|
606
|
+
}
|
607
|
+
|