magic_stylez 0.0.0.51 → 0.0.0.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/magic_stylez/version.rb +1 -1
- data/test/dummy/app/controllers/front_controller.rb +1 -1
- data/test/dummy/public/html/aside-nav.html +101 -10
- data/test/dummy/public/html/fixed-header.html +10 -19
- data/test/dummy/public/html/fixed-subnav.html +31 -19
- data/test/dummy/public/html/slidebar-subnav.html +26 -2
- data/vendor/assets/stylesheets/magic/content/_navbar.scss +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 886d1cf261d7cded6591f3f83ba02fece0b5a6e4
|
4
|
+
data.tar.gz: e1a6c26ecb8f8bd92e577d5e43370a8a690e7ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ef874723d861512a342963f826f8c0c24a254af2c187ac0fbf026ad1bf0f12578ef120799355908879b3f109e6c9fb9a7d9a350b3d6b2aea1fba8a9d2bd2ec
|
7
|
+
data.tar.gz: ffb0cb9110d348295e7dcbe0565260a696b4d148aaef684ed16e47fff12344a195a0384fbdeaf6c7ec468ee8dcbaf9dec5f10d7f860d3c8427cc66cff8126bd0
|
data/lib/magic_stylez/version.rb
CHANGED
@@ -19,7 +19,7 @@ class FrontController < ApplicationController
|
|
19
19
|
directory = "#{Rails.root}/public/html/"
|
20
20
|
TEMPLATES.each do |tmpl|
|
21
21
|
File.open(File.join(directory, "#{tmpl}.html"), 'w') do |f|
|
22
|
-
f.puts render_to_string("templates
|
22
|
+
f.puts render_to_string("templates/#{tmpl}", layout: "blank")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
File.open(File.join(directory, "index.html"), 'w') do |f|
|
@@ -12,8 +12,23 @@
|
|
12
12
|
App.Environment = "production";
|
13
13
|
</script>
|
14
14
|
</head>
|
15
|
-
<body class="
|
16
|
-
|
15
|
+
<body class="with_aside_nav with_important_notice fixed-nav-lg">
|
16
|
+
|
17
|
+
<div class="important_notice warning">
|
18
|
+
<div class="row">
|
19
|
+
<div class="col-xs-2" style="font-size: 24px;">
|
20
|
+
<i class="magicons-info-round"></i>
|
21
|
+
</div>
|
22
|
+
<div class="col-xs-8">
|
23
|
+
Example pictures from: <a href="http://lorempixel.com/" target="_blank">lorempixel.com</a>
|
24
|
+
</div>
|
25
|
+
<div class="col-xs-2" style="font-size: 24px;">
|
26
|
+
<i class="magicons-info-round"></i>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="fixed_nav" class="navbar navbar-default navbar-fixed-top navbar-lg navbar-slidebar" role="navigation">
|
17
32
|
<div class="corset">
|
18
33
|
|
19
34
|
|
@@ -50,9 +65,90 @@
|
|
50
65
|
</div>
|
51
66
|
</div>
|
52
67
|
|
68
|
+
<div id="nav-aside" class="fixed-left">
|
69
|
+
<div class="inner-aside">
|
70
|
+
|
71
|
+
<div class="aside-btn user-pic">
|
72
|
+
<img alt="User Picture" src="http://lorempixel.com/g/50/60/people/" />
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<a class="aside-btn" href="#" title="Dashboard">
|
76
|
+
<i class='glyphicon glyphicon-home'></i>
|
77
|
+
</a>
|
78
|
+
<a class="aside-btn active" href="#" title="Settings">
|
79
|
+
<i class='glyphicon glyphicon-cog'></i>
|
80
|
+
</a>
|
81
|
+
<a class="aside-btn" href="#" title="Inbox">
|
82
|
+
<i class='glyphicon glyphicon-inbox'></i>
|
83
|
+
</a>
|
84
|
+
<a class="aside-btn" href="#" title="Pictures">
|
85
|
+
<i class='glyphicon glyphicon-picture'></i>
|
86
|
+
</a>
|
87
|
+
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<div class="fullpage-table" id="banner-one">
|
95
|
+
<div class="table-row">
|
96
|
+
<div class="banner-box responsive-hero with-footer with-header fill lorempixel" style="background-image: url('http://lorempixel.com/g/1200/500/nature/')">
|
97
|
+
<div class="banner-header">
|
98
|
+
<div class="corset">
|
99
|
+
<h1 class="loud">Responsive Aside-Nav</h1>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
|
103
|
+
<div class="banner-content">
|
104
|
+
<div class="corset">
|
105
|
+
<br/>
|
106
|
+
<div class="box blur">
|
107
|
+
<table class="name">
|
108
|
+
<tr>
|
109
|
+
<th>body </th>
|
110
|
+
<td>with_aside_nav with_important_notice fixed-nav-lg</td>
|
111
|
+
</tr>
|
112
|
+
<tr>
|
113
|
+
<th>navbar </th>
|
114
|
+
<td>navbar navbar-default navbar-fixed-top navbar-lg navbar-slidebar</td>
|
115
|
+
</tr>
|
116
|
+
</table>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="banner-footer" id="sign_up_banner">
|
122
|
+
<div class="corset">
|
123
|
+
<div class="row">
|
124
|
+
<div class="col-sm-4 col-sm-offset-1">
|
125
|
+
<!--<a href="#" class="btn btn-success btn-block btn-lg">Sign up now</a>-->
|
126
|
+
<button class="btn btn-success btn-block help_arrow hide_da_notice" data-text="Hide notice!">
|
127
|
+
toggle Notice
|
128
|
+
</button>
|
129
|
+
</div>
|
130
|
+
<div class="col-sm-4 col-sm-offset-2">
|
131
|
+
<!--<a href="#" class="btn btn-success btn-block btn-lg">Sign up now</a>-->
|
132
|
+
<button class="btn btn-default btn-block help_arrow get_some_borders" data-text="click!">
|
133
|
+
toggle Borders
|
134
|
+
</button>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
53
144
|
<div class="main_content">
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
54
150
|
|
55
|
-
<div class="section
|
151
|
+
<div class="section dark">
|
56
152
|
<div class="corset">
|
57
153
|
<h1>Responsive Slidebar</h1>
|
58
154
|
<br/>
|
@@ -62,13 +158,8 @@
|
|
62
158
|
</p>
|
63
159
|
<br/>
|
64
160
|
<h4>dependency:</h4>
|
65
|
-
<code>@import "magic/content/
|
66
|
-
<
|
67
|
-
<br/>
|
68
|
-
<br/>
|
69
|
-
<div class="h3 center_text">
|
70
|
-
<i class="magicons-arrow-right"></i> Smaller your screen to see the Slidebar !! <i class="magicons-arrow-left"></i>
|
71
|
-
</div>
|
161
|
+
<code>@import "magic/content/aside_nav";</code>
|
162
|
+
<code>@import "magic/content/notice";</code>
|
72
163
|
</div>
|
73
164
|
</div>
|
74
165
|
|
@@ -12,14 +12,14 @@
|
|
12
12
|
App.Environment = "production";
|
13
13
|
</script>
|
14
14
|
</head>
|
15
|
-
<body class="blank fixed-nav">
|
16
|
-
<div id="fixed_nav" class="navbar navbar-default navbar-fixed-top navbar-
|
15
|
+
<body class="blank fixed-nav-xl">
|
16
|
+
<div id="fixed_nav" class="navbar navbar-default navbar-fixed-top navbar-xl" role="navigation">
|
17
17
|
<div class="corset">
|
18
18
|
|
19
19
|
|
20
20
|
|
21
21
|
<div class="navbar-header">
|
22
|
-
<button type="button" class="navbar-toggle
|
22
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#front-main-nav-colapse">
|
23
23
|
<span class="sr-only">Toggle navigation</span>
|
24
24
|
<span class="icon-bar"></span>
|
25
25
|
<span class="icon-bar"></span>
|
@@ -29,21 +29,20 @@
|
|
29
29
|
</div>
|
30
30
|
<div class="collapse navbar-collapse" id="front-main-nav-colapse">
|
31
31
|
<ul class="nav navbar-nav navbar-left">
|
32
|
-
<li><a href="#">
|
33
|
-
<li><a href="#">
|
34
|
-
|
32
|
+
<li><a href="#">Jobs</a></li>
|
33
|
+
<li><a href="#">Jobs</a></li>
|
34
|
+
<li><a class="btn btn-success" href="#">Jobs</a></li>
|
35
35
|
</ul>
|
36
36
|
<ul class="nav navbar-nav navbar-right">
|
37
37
|
<li class="dropdown">
|
38
38
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
39
|
-
|
39
|
+
Hallo <b class="caret"></b>
|
40
40
|
</a> <ul class="dropdown-menu">
|
41
41
|
<li><a href="#">Link 1</a></li>
|
42
42
|
<li><a href="#">Link 2</a></li>
|
43
43
|
<li><a href="#">Link 3</a></li>
|
44
44
|
</ul>
|
45
45
|
</li>
|
46
|
-
<li><a class="btn btn-success" href="#">Button</a></li>
|
47
46
|
</ul>
|
48
47
|
</div>
|
49
48
|
|
@@ -54,21 +53,12 @@
|
|
54
53
|
|
55
54
|
<div class="section brand">
|
56
55
|
<div class="corset">
|
57
|
-
<h1>
|
56
|
+
<h1>usual twbs header plus some improvements</h1>
|
58
57
|
<br/>
|
59
|
-
<p class="loud">
|
60
|
-
Turns the usual twbs <em>navbar-collapse</em> into a nice slidebar. .. try it out:<br/>
|
61
|
-
make your screen smaller than 768px and press the header-toggle
|
62
|
-
</p>
|
58
|
+
<p class="loud">just niced up button alignment (no <em>.navbar-btn</em> needed) .. add sizes: <em>.navbar-xs, .navbar-sm, .navbar-lg, .navbar-xl</em></p>
|
63
59
|
<br/>
|
64
60
|
<h4>dependency:</h4>
|
65
61
|
<code>@import "magic/content/navbar";</code>
|
66
|
-
<br/>
|
67
|
-
<br/>
|
68
|
-
<br/>
|
69
|
-
<div class="h3 center_text">
|
70
|
-
<i class="magicons-arrow-right"></i> Smaller your screen to see the Slidebar !! <i class="magicons-arrow-left"></i>
|
71
|
-
</div>
|
72
62
|
</div>
|
73
63
|
</div>
|
74
64
|
|
@@ -161,6 +151,7 @@
|
|
161
151
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
162
152
|
</div>
|
163
153
|
</div>
|
154
|
+
|
164
155
|
|
165
156
|
</div>
|
166
157
|
</body>
|
@@ -12,14 +12,14 @@
|
|
12
12
|
App.Environment = "production";
|
13
13
|
</script>
|
14
14
|
</head>
|
15
|
-
<body class="blank fixed-nav">
|
16
|
-
<div id="fixed_nav" class="navbar navbar-default navbar-fixed-top navbar-
|
15
|
+
<body class="blank fixed-nav-xl fixed-sub-nav">
|
16
|
+
<div id="fixed_nav" class="navbar navbar-default navbar-fixed-top navbar-xl" role="navigation">
|
17
17
|
<div class="corset">
|
18
18
|
|
19
19
|
|
20
20
|
|
21
21
|
<div class="navbar-header">
|
22
|
-
<button type="button" class="navbar-toggle
|
22
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#front-main-nav-colapse">
|
23
23
|
<span class="sr-only">Toggle navigation</span>
|
24
24
|
<span class="icon-bar"></span>
|
25
25
|
<span class="icon-bar"></span>
|
@@ -29,22 +29,42 @@
|
|
29
29
|
</div>
|
30
30
|
<div class="collapse navbar-collapse" id="front-main-nav-colapse">
|
31
31
|
<ul class="nav navbar-nav navbar-left">
|
32
|
-
<li><a href="#">
|
33
|
-
<li><a href="#">
|
34
|
-
|
32
|
+
<li><a href="#">Jobs</a></li>
|
33
|
+
<li><a href="#">Jobs</a></li>
|
34
|
+
<li><a class="btn btn-success" href="#">Jobs</a></li>
|
35
35
|
</ul>
|
36
36
|
<ul class="nav navbar-nav navbar-right">
|
37
37
|
<li class="dropdown">
|
38
38
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
39
|
-
|
39
|
+
Hallo <b class="caret"></b>
|
40
40
|
</a> <ul class="dropdown-menu">
|
41
41
|
<li><a href="#">Link 1</a></li>
|
42
42
|
<li><a href="#">Link 2</a></li>
|
43
43
|
<li><a href="#">Link 3</a></li>
|
44
44
|
</ul>
|
45
45
|
</li>
|
46
|
-
<li><a class="btn btn-success" href="#">Button</a></li>
|
47
46
|
</ul>
|
47
|
+
<div class="clearfix"></div>
|
48
|
+
<div class="navbar-sub-nav">
|
49
|
+
<div class="corset">
|
50
|
+
<ul class="nav navbar-nav navbar-left">
|
51
|
+
<li><a href="#">Link</a></li>
|
52
|
+
<li><a href="#">Link</a></li>
|
53
|
+
</ul>
|
54
|
+
<ul class="nav navbar-nav navbar-right">
|
55
|
+
<li class="dropdown">
|
56
|
+
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
57
|
+
Dropdown <b class="caret"></b>
|
58
|
+
</a> <ul class="dropdown-menu">
|
59
|
+
<li><a href="#">Link 1</a></li>
|
60
|
+
<li><a href="#">Link 2</a></li>
|
61
|
+
<li><a href="#">Link 3</a></li>
|
62
|
+
</ul>
|
63
|
+
</li>
|
64
|
+
<li><a class="btn btn-success" href="#">Button</a></li>
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
</div>
|
48
68
|
</div>
|
49
69
|
|
50
70
|
</div>
|
@@ -54,21 +74,12 @@
|
|
54
74
|
|
55
75
|
<div class="section brand">
|
56
76
|
<div class="corset">
|
57
|
-
<h1>
|
77
|
+
<h1>usual twbs header plus some improvements</h1>
|
58
78
|
<br/>
|
59
|
-
<p class="loud">
|
60
|
-
Turns the usual twbs <em>navbar-collapse</em> into a nice slidebar. .. try it out:<br/>
|
61
|
-
make your screen smaller than 768px and press the header-toggle
|
62
|
-
</p>
|
79
|
+
<p class="loud">just niced up button alignment (no <em>.navbar-btn</em> needed) .. add sizes: <em>.navbar-xs, .navbar-sm, .navbar-lg, .navbar-xl</em></p>
|
63
80
|
<br/>
|
64
81
|
<h4>dependency:</h4>
|
65
82
|
<code>@import "magic/content/navbar";</code>
|
66
|
-
<br/>
|
67
|
-
<br/>
|
68
|
-
<br/>
|
69
|
-
<div class="h3 center_text">
|
70
|
-
<i class="magicons-arrow-right"></i> Smaller your screen to see the Slidebar !! <i class="magicons-arrow-left"></i>
|
71
|
-
</div>
|
72
83
|
</div>
|
73
84
|
</div>
|
74
85
|
|
@@ -161,6 +172,7 @@
|
|
161
172
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
162
173
|
</div>
|
163
174
|
</div>
|
175
|
+
|
164
176
|
|
165
177
|
</div>
|
166
178
|
</body>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
App.Environment = "production";
|
13
13
|
</script>
|
14
14
|
</head>
|
15
|
-
<body class="blank fixed-nav">
|
15
|
+
<body class="blank fixed-nav fixed-sub-nav">
|
16
16
|
<div id="fixed_nav" class="navbar navbar-default navbar-fixed-top navbar-slidebar" role="navigation">
|
17
17
|
<div class="corset">
|
18
18
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</button>
|
28
28
|
<a class="navbar-brand" href="#">Magic-Stylez</a>
|
29
29
|
</div>
|
30
|
-
<div class="collapse navbar-collapse" id="front-main-nav-colapse">
|
30
|
+
<div class="collapse navbar-collapse navbar-bordered" id="front-main-nav-colapse">
|
31
31
|
<ul class="nav navbar-nav navbar-left">
|
32
32
|
<li><a href="#">Link</a></li>
|
33
33
|
<li><a href="#">Link</a></li>
|
@@ -45,6 +45,30 @@
|
|
45
45
|
</li>
|
46
46
|
<li><a class="btn btn-success" href="#">Button</a></li>
|
47
47
|
</ul>
|
48
|
+
<div class="clearfix"></div>
|
49
|
+
<div class="navbar-sub-nav">
|
50
|
+
<div class="corset">
|
51
|
+
|
52
|
+
|
53
|
+
<ul class="nav navbar-nav navbar-left">
|
54
|
+
<li><a href="#">Link</a></li>
|
55
|
+
<li><a href="#">Link</a></li>
|
56
|
+
</ul>
|
57
|
+
<ul class="nav navbar-nav navbar-right">
|
58
|
+
<li class="dropdown">
|
59
|
+
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
60
|
+
Dropdown <b class="caret"></b>
|
61
|
+
</a> <ul class="dropdown-menu">
|
62
|
+
<li><a href="#">Link 1</a></li>
|
63
|
+
<li><a href="#">Link 2</a></li>
|
64
|
+
<li><a href="#">Link 3</a></li>
|
65
|
+
</ul>
|
66
|
+
</li>
|
67
|
+
<li><a class="btn btn-success" href="#">Button</a></li>
|
68
|
+
</ul>
|
69
|
+
<div class="clearfix"></div>
|
70
|
+
</div>
|
71
|
+
</div>
|
48
72
|
</div>
|
49
73
|
|
50
74
|
</div>
|