quick-templater 0.0.5
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.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +22 -0
- data/README.md +53 -0
- data/Rakefile +1 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/carousel.css +148 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/jumbotron.css +4 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/justified_nav.css +88 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/narrow_jumbotron.css +79 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/navbar.css +8 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/navbar_fixed_top.css +4 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/navbar_static_top.css +7 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/non_responsive.css +120 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/offcanvas.css +51 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/sign_in_page.css +40 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/starter.css +7 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/sticky_footer.css +38 -0
- data/app/assets/stylesheets/quick-templater/bootstrap3/sticky_footer_navbar.css +46 -0
- data/lib/generators/quick-templater/layout/layout_generator.rb +64 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/carousel.html.erb +186 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/jumbotron.html.erb +79 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/justified_nav.html.erb +67 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/narrow_jumbotron.html.erb +65 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/navbar.html.erb +68 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/navbar_fixed_top.html.erb +71 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/navbar_static_top.html.erb +72 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/non_responsive.html.erb +78 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/offcanvas.html.erb +110 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/quick-templater.css.erb +8 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/sign_in_page.html.erb +34 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/starter.html.erb +48 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/sticky_footer.html.erb +37 -0
- data/lib/generators/quick-templater/layout/templates/bootstrap3/sticky_footer_navbar.html.erb +71 -0
- data/lib/quick-templater/version.rb +3 -0
- data/lib/quick-templater.rb +7 -0
- data/quick-templater.gemspec +25 -0
- data/spec/generators/layout_spec.rb +42 -0
- data/spec/spec_helper.rb +8 -0
- metadata +128 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4299e09e4bedffa1c73c0354fa0e9e20977307d3
|
4
|
+
data.tar.gz: 8255fddfe8a59075a03337cc60d06838b66afabf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 44e062a35eee0ccba69dde606ad2736a88be558eba6016e1751eb0ed6b65fd210d8c9d8e7f27a12bc5312b61e652bb1d7dccf45d4c4129a85678196f5c0a5afb
|
7
|
+
data.tar.gz: 0dae0ba211f81f0405735542e01a3174186f80817fd4441c9eba9f341f3e1a2e5c7d9e07d3c10d47a7afc9c7812832eea02a6fb385f5bb03fad255ebfa6326c6
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Jurrick
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Quick Templater
|
2
|
+
|
3
|
+
Quick Templater is a rails generator that you can use to generate site templates quickly.
|
4
|
+
Today some bootstrap v3 templates already available to generate layouts.
|
5
|
+
|
6
|
+
[](http://badge.fury.io/rb/quick-templater)
|
7
|
+
[](https://travis-ci.org/jurrick/quick-templater)
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
gem 'quick-templater'
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install quick-templater
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Layout generator
|
26
|
+
|
27
|
+
Used without parameters, it generates the layout inside the application.html.erb file using the bootstrap template "Starter".
|
28
|
+
|
29
|
+
rails g quick_templater:layout
|
30
|
+
|
31
|
+
You can specify the layout file name in the first parameter:
|
32
|
+
|
33
|
+
rails g quick_templater:layout admin # it will generate a layout called `admin.html.erb`
|
34
|
+
|
35
|
+
If you want to use another bootstrap template layout (See a [list of all templates](https://github.com/jurrick/quick-templater/wiki/List-templates)), instead of the default, you can use the `--template` option:
|
36
|
+
|
37
|
+
rails g quick_templater:layout admin --template="jumbotron"
|
38
|
+
|
39
|
+
You can specify the template engine with `--engine=name` option, where name can be erb (default), haml or slim:
|
40
|
+
|
41
|
+
rails g quick_templater:layout --engine=slim # you must specify slim in your Gemfile
|
42
|
+
|
43
|
+
You can specify the text used in the header with the `--app-name` option:
|
44
|
+
|
45
|
+
rails g quick_templater:layout --app-name="My New Application"
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
1. Fork it ( http://github.com/jurrick/quick-templater/fork )
|
50
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
51
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
52
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
53
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,148 @@
|
|
1
|
+
/* GLOBAL STYLES
|
2
|
+
-------------------------------------------------- */
|
3
|
+
/* Padding below the footer and lighter body text */
|
4
|
+
|
5
|
+
body {
|
6
|
+
padding-bottom: 40px;
|
7
|
+
color: #5a5a5a;
|
8
|
+
}
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
/* CUSTOMIZE THE NAVBAR
|
13
|
+
-------------------------------------------------- */
|
14
|
+
|
15
|
+
/* Special class on .container surrounding .navbar, used for positioning it into place. */
|
16
|
+
.navbar-wrapper {
|
17
|
+
position: absolute;
|
18
|
+
top: 0;
|
19
|
+
left: 0;
|
20
|
+
right: 0;
|
21
|
+
z-index: 20;
|
22
|
+
}
|
23
|
+
|
24
|
+
/* Flip around the padding for proper display in narrow viewports */
|
25
|
+
.navbar-wrapper .container {
|
26
|
+
padding-left: 0;
|
27
|
+
padding-right: 0;
|
28
|
+
}
|
29
|
+
.navbar-wrapper .navbar {
|
30
|
+
padding-left: 15px;
|
31
|
+
padding-right: 15px;
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
/* CUSTOMIZE THE CAROUSEL
|
36
|
+
-------------------------------------------------- */
|
37
|
+
|
38
|
+
/* Carousel base class */
|
39
|
+
.carousel {
|
40
|
+
height: 500px;
|
41
|
+
margin-bottom: 60px;
|
42
|
+
}
|
43
|
+
/* Since positioning the image, we need to help out the caption */
|
44
|
+
.carousel-caption {
|
45
|
+
z-index: 10;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Declare heights because of positioning of img element */
|
49
|
+
.carousel .item {
|
50
|
+
height: 500px;
|
51
|
+
background-color: #777;
|
52
|
+
}
|
53
|
+
.carousel-inner > .item > img {
|
54
|
+
position: absolute;
|
55
|
+
top: 0;
|
56
|
+
left: 0;
|
57
|
+
min-width: 100%;
|
58
|
+
height: 500px;
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
/* MARKETING CONTENT
|
64
|
+
-------------------------------------------------- */
|
65
|
+
|
66
|
+
/* Pad the edges of the mobile views a bit */
|
67
|
+
.marketing {
|
68
|
+
padding-left: 15px;
|
69
|
+
padding-right: 15px;
|
70
|
+
}
|
71
|
+
|
72
|
+
/* Center align the text within the three columns below the carousel */
|
73
|
+
.marketing .col-lg-4 {
|
74
|
+
text-align: center;
|
75
|
+
margin-bottom: 20px;
|
76
|
+
}
|
77
|
+
.marketing h2 {
|
78
|
+
font-weight: normal;
|
79
|
+
}
|
80
|
+
.marketing .col-lg-4 p {
|
81
|
+
margin-left: 10px;
|
82
|
+
margin-right: 10px;
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
/* Featurettes
|
87
|
+
------------------------- */
|
88
|
+
|
89
|
+
.featurette-divider {
|
90
|
+
margin: 80px 0; /* Space out the Bootstrap <hr> more */
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Thin out the marketing headings */
|
94
|
+
.featurette-heading {
|
95
|
+
font-weight: 300;
|
96
|
+
line-height: 1;
|
97
|
+
letter-spacing: -1px;
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
/* RESPONSIVE CSS
|
103
|
+
-------------------------------------------------- */
|
104
|
+
|
105
|
+
@media (min-width: 768px) {
|
106
|
+
|
107
|
+
/* Remove the edge padding needed for mobile */
|
108
|
+
.marketing {
|
109
|
+
padding-left: 0;
|
110
|
+
padding-right: 0;
|
111
|
+
}
|
112
|
+
|
113
|
+
/* Navbar positioning foo */
|
114
|
+
.navbar-wrapper {
|
115
|
+
margin-top: 20px;
|
116
|
+
}
|
117
|
+
.navbar-wrapper .container {
|
118
|
+
padding-left: 15px;
|
119
|
+
padding-right: 15px;
|
120
|
+
}
|
121
|
+
.navbar-wrapper .navbar {
|
122
|
+
padding-left: 0;
|
123
|
+
padding-right: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
/* The navbar becomes detached from the top, so we round the corners */
|
127
|
+
.navbar-wrapper .navbar {
|
128
|
+
border-radius: 4px;
|
129
|
+
}
|
130
|
+
|
131
|
+
/* Bump up size of carousel content */
|
132
|
+
.carousel-caption p {
|
133
|
+
margin-bottom: 20px;
|
134
|
+
font-size: 21px;
|
135
|
+
line-height: 1.4;
|
136
|
+
}
|
137
|
+
|
138
|
+
.featurette-heading {
|
139
|
+
font-size: 50px;
|
140
|
+
}
|
141
|
+
|
142
|
+
}
|
143
|
+
|
144
|
+
@media (min-width: 992px) {
|
145
|
+
.featurette-heading {
|
146
|
+
margin-top: 120px;
|
147
|
+
}
|
148
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
body {
|
2
|
+
padding-top: 20px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.footer {
|
6
|
+
border-top: 1px solid #eee;
|
7
|
+
margin-top: 40px;
|
8
|
+
padding-top: 40px;
|
9
|
+
padding-bottom: 40px;
|
10
|
+
}
|
11
|
+
|
12
|
+
/* Main marketing message and sign up button */
|
13
|
+
.jumbotron {
|
14
|
+
text-align: center;
|
15
|
+
background-color: transparent;
|
16
|
+
}
|
17
|
+
.jumbotron .btn {
|
18
|
+
font-size: 21px;
|
19
|
+
padding: 14px 24px;
|
20
|
+
}
|
21
|
+
|
22
|
+
/* Customize the nav-justified links to be fill the entire space of the .navbar */
|
23
|
+
|
24
|
+
.nav-justified {
|
25
|
+
background-color: #eee;
|
26
|
+
border-radius: 5px;
|
27
|
+
border: 1px solid #ccc;
|
28
|
+
}
|
29
|
+
.nav-justified > li > a {
|
30
|
+
margin-bottom: 0;
|
31
|
+
padding-top: 15px;
|
32
|
+
padding-bottom: 15px;
|
33
|
+
color: #777;
|
34
|
+
font-weight: bold;
|
35
|
+
text-align: center;
|
36
|
+
border-bottom: 1px solid #d5d5d5;
|
37
|
+
background-color: #e5e5e5; /* Old browsers */
|
38
|
+
background-repeat: repeat-x; /* Repeat the gradient */
|
39
|
+
background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */
|
40
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
|
41
|
+
background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */
|
42
|
+
background-image: -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Opera 11.10+ */
|
43
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
|
44
|
+
background-image: linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* W3C */
|
45
|
+
}
|
46
|
+
.nav-justified > .active > a,
|
47
|
+
.nav-justified > .active > a:hover,
|
48
|
+
.nav-justified > .active > a:focus {
|
49
|
+
background-color: #ddd;
|
50
|
+
background-image: none;
|
51
|
+
box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
|
52
|
+
}
|
53
|
+
.nav-justified > li:first-child > a {
|
54
|
+
border-radius: 5px 5px 0 0;
|
55
|
+
}
|
56
|
+
.nav-justified > li:last-child > a {
|
57
|
+
border-bottom: 0;
|
58
|
+
border-radius: 0 0 5px 5px;
|
59
|
+
}
|
60
|
+
|
61
|
+
@media (min-width: 768px) {
|
62
|
+
.nav-justified {
|
63
|
+
max-height: 52px;
|
64
|
+
}
|
65
|
+
.nav-justified > li > a {
|
66
|
+
border-left: 1px solid #fff;
|
67
|
+
border-right: 1px solid #d5d5d5;
|
68
|
+
}
|
69
|
+
.nav-justified > li:first-child > a {
|
70
|
+
border-left: 0;
|
71
|
+
border-radius: 5px 0 0 5px;
|
72
|
+
}
|
73
|
+
.nav-justified > li:last-child > a {
|
74
|
+
border-radius: 0 5px 5px 0;
|
75
|
+
border-right: 0;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
/* Responsive: Portrait tablets and up */
|
80
|
+
@media screen and (min-width: 768px) {
|
81
|
+
/* Remove the padding we set earlier */
|
82
|
+
.masthead,
|
83
|
+
.marketing,
|
84
|
+
.footer {
|
85
|
+
padding-left: 0;
|
86
|
+
padding-right: 0;
|
87
|
+
}
|
88
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
/* Space out content a bit */
|
2
|
+
body {
|
3
|
+
padding-top: 20px;
|
4
|
+
padding-bottom: 20px;
|
5
|
+
}
|
6
|
+
|
7
|
+
/* Everything but the jumbotron gets side spacing for mobile first views */
|
8
|
+
.header,
|
9
|
+
.marketing,
|
10
|
+
.footer {
|
11
|
+
padding-left: 15px;
|
12
|
+
padding-right: 15px;
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Custom page header */
|
16
|
+
.header {
|
17
|
+
border-bottom: 1px solid #e5e5e5;
|
18
|
+
}
|
19
|
+
/* Make the masthead heading the same height as the navigation */
|
20
|
+
.header h3 {
|
21
|
+
margin-top: 0;
|
22
|
+
margin-bottom: 0;
|
23
|
+
line-height: 40px;
|
24
|
+
padding-bottom: 19px;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Custom page footer */
|
28
|
+
.footer {
|
29
|
+
padding-top: 19px;
|
30
|
+
color: #777;
|
31
|
+
border-top: 1px solid #e5e5e5;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* Customize container */
|
35
|
+
@media (min-width: 768px) {
|
36
|
+
.container {
|
37
|
+
max-width: 730px;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
.container-narrow > hr {
|
41
|
+
margin: 30px 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Main marketing message and sign up button */
|
45
|
+
.jumbotron {
|
46
|
+
text-align: center;
|
47
|
+
border-bottom: 1px solid #e5e5e5;
|
48
|
+
}
|
49
|
+
.jumbotron .btn {
|
50
|
+
font-size: 21px;
|
51
|
+
padding: 14px 24px;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* Supporting marketing content */
|
55
|
+
.marketing {
|
56
|
+
margin: 40px 0;
|
57
|
+
}
|
58
|
+
.marketing p + h4 {
|
59
|
+
margin-top: 28px;
|
60
|
+
}
|
61
|
+
|
62
|
+
/* Responsive: Portrait tablets and up */
|
63
|
+
@media screen and (min-width: 768px) {
|
64
|
+
/* Remove the padding we set earlier */
|
65
|
+
.header,
|
66
|
+
.marketing,
|
67
|
+
.footer {
|
68
|
+
padding-left: 0;
|
69
|
+
padding-right: 0;
|
70
|
+
}
|
71
|
+
/* Space out the masthead */
|
72
|
+
.header {
|
73
|
+
margin-bottom: 30px;
|
74
|
+
}
|
75
|
+
/* Remove the bottom border on the jumbotron for visual effect */
|
76
|
+
.jumbotron {
|
77
|
+
border-bottom: 0;
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/* Template-specific stuff
|
2
|
+
*
|
3
|
+
* Customizations just for the template; these are not necessary for anything
|
4
|
+
* with disabling the responsiveness.
|
5
|
+
*/
|
6
|
+
|
7
|
+
/* Account for fixed navbar */
|
8
|
+
body {
|
9
|
+
padding-top: 70px;
|
10
|
+
padding-bottom: 30px;
|
11
|
+
min-width: 970px;
|
12
|
+
}
|
13
|
+
|
14
|
+
/* Finesse the page header spacing */
|
15
|
+
.page-header {
|
16
|
+
margin-bottom: 30px;
|
17
|
+
}
|
18
|
+
.page-header .lead {
|
19
|
+
margin-bottom: 10px;
|
20
|
+
}
|
21
|
+
|
22
|
+
|
23
|
+
/* Non-responsive overrides
|
24
|
+
*
|
25
|
+
* Utilitze the following CSS to disable the responsive-ness of the container,
|
26
|
+
* grid system, and navbar.
|
27
|
+
*/
|
28
|
+
|
29
|
+
/* Reset the container */
|
30
|
+
.container {
|
31
|
+
max-width: none !important;
|
32
|
+
width: 970px;
|
33
|
+
}
|
34
|
+
|
35
|
+
/* Demonstrate the grids */
|
36
|
+
.col-xs-4 {
|
37
|
+
padding-top: 15px;
|
38
|
+
padding-bottom: 15px;
|
39
|
+
background-color: #eee;
|
40
|
+
border: 1px solid #ddd;
|
41
|
+
background-color: rgba(86,61,124,.15);
|
42
|
+
border: 1px solid rgba(86,61,124,.2);
|
43
|
+
}
|
44
|
+
|
45
|
+
.container .navbar-header,
|
46
|
+
.container .navbar-collapse {
|
47
|
+
margin-right: 0;
|
48
|
+
margin-left: 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Always float the navbar header */
|
52
|
+
.navbar-header {
|
53
|
+
float: left;
|
54
|
+
}
|
55
|
+
|
56
|
+
/* Undo the collapsing navbar */
|
57
|
+
.navbar-collapse {
|
58
|
+
display: block !important;
|
59
|
+
height: auto !important;
|
60
|
+
padding-bottom: 0;
|
61
|
+
overflow: visible !important;
|
62
|
+
}
|
63
|
+
|
64
|
+
.navbar-toggle {
|
65
|
+
display: none;
|
66
|
+
}
|
67
|
+
.navbar-collapse {
|
68
|
+
border-top: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
.navbar-brand {
|
72
|
+
margin-left: -15px;
|
73
|
+
}
|
74
|
+
|
75
|
+
/* Always apply the floated nav */
|
76
|
+
.navbar-nav {
|
77
|
+
float: left;
|
78
|
+
margin: 0;
|
79
|
+
}
|
80
|
+
.navbar-nav > li {
|
81
|
+
float: left;
|
82
|
+
}
|
83
|
+
.navbar-nav > li > a {
|
84
|
+
padding: 15px;
|
85
|
+
}
|
86
|
+
|
87
|
+
/* Redeclare since we override the float above */
|
88
|
+
.navbar-nav.navbar-right {
|
89
|
+
float: right;
|
90
|
+
}
|
91
|
+
|
92
|
+
/* Undo custom dropdowns */
|
93
|
+
.navbar .navbar-nav .open .dropdown-menu {
|
94
|
+
position: absolute;
|
95
|
+
float: left;
|
96
|
+
background-color: #fff;
|
97
|
+
border: 1px solid #cccccc;
|
98
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
99
|
+
border-width: 0 1px 1px;
|
100
|
+
border-radius: 0 0 4px 4px;
|
101
|
+
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
102
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
103
|
+
}
|
104
|
+
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
|
105
|
+
color: #333;
|
106
|
+
}
|
107
|
+
.navbar .navbar-nav .open .dropdown-menu > li > a:hover,
|
108
|
+
.navbar .navbar-nav .open .dropdown-menu > li > a:focus,
|
109
|
+
.navbar .navbar-nav .open .dropdown-menu > .active > a,
|
110
|
+
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
|
111
|
+
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
|
112
|
+
color: #fff !important;
|
113
|
+
background-color: #428bca !important;
|
114
|
+
}
|
115
|
+
.navbar .navbar-nav .open .dropdown-menu > .disabled > a,
|
116
|
+
.navbar .navbar-nav .open .dropdown-menu > .disabled > a:hover,
|
117
|
+
.navbar .navbar-nav .open .dropdown-menu > .disabled > a:focus {
|
118
|
+
color: #999 !important;
|
119
|
+
background-color: transparent !important;
|
120
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/*
|
2
|
+
* Style tweaks
|
3
|
+
* --------------------------------------------------
|
4
|
+
*/
|
5
|
+
html,
|
6
|
+
body {
|
7
|
+
overflow-x: hidden; /* Prevent scroll on narrow devices */
|
8
|
+
}
|
9
|
+
body {
|
10
|
+
padding-top: 70px;
|
11
|
+
}
|
12
|
+
footer {
|
13
|
+
padding: 30px 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
/*
|
17
|
+
* Off Canvas
|
18
|
+
* --------------------------------------------------
|
19
|
+
*/
|
20
|
+
@media screen and (max-width: 767px) {
|
21
|
+
.row-offcanvas {
|
22
|
+
position: relative;
|
23
|
+
-webkit-transition: all 0.25s ease-out;
|
24
|
+
-moz-transition: all 0.25s ease-out;
|
25
|
+
transition: all 0.25s ease-out;
|
26
|
+
}
|
27
|
+
|
28
|
+
.row-offcanvas-right
|
29
|
+
.sidebar-offcanvas {
|
30
|
+
right: -50%; /* 6 columns */
|
31
|
+
}
|
32
|
+
|
33
|
+
.row-offcanvas-left
|
34
|
+
.sidebar-offcanvas {
|
35
|
+
left: -50%; /* 6 columns */
|
36
|
+
}
|
37
|
+
|
38
|
+
.row-offcanvas-right.active {
|
39
|
+
right: 50%; /* 6 columns */
|
40
|
+
}
|
41
|
+
|
42
|
+
.row-offcanvas-left.active {
|
43
|
+
left: 50%; /* 6 columns */
|
44
|
+
}
|
45
|
+
|
46
|
+
.sidebar-offcanvas {
|
47
|
+
position: absolute;
|
48
|
+
top: 0;
|
49
|
+
width: 50%; /* 6 columns */
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
body {
|
2
|
+
padding-top: 40px;
|
3
|
+
padding-bottom: 40px;
|
4
|
+
background-color: #eee;
|
5
|
+
}
|
6
|
+
|
7
|
+
.form-signin {
|
8
|
+
max-width: 330px;
|
9
|
+
padding: 15px;
|
10
|
+
margin: 0 auto;
|
11
|
+
}
|
12
|
+
.form-signin .form-signin-heading,
|
13
|
+
.form-signin .checkbox {
|
14
|
+
margin-bottom: 10px;
|
15
|
+
}
|
16
|
+
.form-signin .checkbox {
|
17
|
+
font-weight: normal;
|
18
|
+
}
|
19
|
+
.form-signin .form-control {
|
20
|
+
position: relative;
|
21
|
+
font-size: 16px;
|
22
|
+
height: auto;
|
23
|
+
padding: 10px;
|
24
|
+
-webkit-box-sizing: border-box;
|
25
|
+
-moz-box-sizing: border-box;
|
26
|
+
box-sizing: border-box;
|
27
|
+
}
|
28
|
+
.form-signin .form-control:focus {
|
29
|
+
z-index: 2;
|
30
|
+
}
|
31
|
+
.form-signin input[type="text"] {
|
32
|
+
margin-bottom: -1px;
|
33
|
+
border-bottom-left-radius: 0;
|
34
|
+
border-bottom-right-radius: 0;
|
35
|
+
}
|
36
|
+
.form-signin input[type="password"] {
|
37
|
+
margin-bottom: 10px;
|
38
|
+
border-top-left-radius: 0;
|
39
|
+
border-top-right-radius: 0;
|
40
|
+
}
|