forever_style_guide 2.0.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/forever_style_guide/default_avatar.jpg +0 -0
- data/app/assets/images/forever_style_guide/forever-logo.jpg +0 -0
- data/app/assets/javascripts/forever_style_guide/account-popover.js +0 -26
- data/app/assets/javascripts/forever_style_guide/offcanvas.js +213 -0
- data/app/assets/stylesheets/forever_style_guide/base/_bootstrap_reset.scss +5 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_breakpoints.scss +1 -1
- data/app/assets/stylesheets/forever_style_guide/globals/_effects.scss +6 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_mixins.scss +3 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_all.scss +22 -22
- data/app/assets/stylesheets/forever_style_guide/modules/_button.scss +0 -5
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-account.scss +58 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-ambassador.scss +93 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns.scss +155 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-fixed.scss +0 -15
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-icons.scss +114 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-item-list.scss +53 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-offcanvas.scss +77 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav.scss +84 -73
- data/app/assets/stylesheets/style_guide/modules/_hero_simple.scss +0 -1
- data/app/helpers/forever_style_guide/application_helper.rb +309 -1
- data/app/views/forever_style_guide/demo/footer.html.erb +1 -1
- data/app/views/forever_style_guide/demo/hero.html.erb +1 -3
- data/app/views/forever_style_guide/demo/hero_simple.html.erb +1 -3
- data/app/views/forever_style_guide/demo/navigation.html.erb +43 -27
- data/app/views/forever_style_guide/demo/promo_banner.html.erb +1 -3
- data/app/views/forever_style_guide/sections/components/navigation/_nav.erb +60 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown.erb +37 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown_menu.erb +61 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_signed_out_mobile.erb +6 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_ambassador_dropdown.erb +112 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_community_dropdown.erb +99 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_my_forever_dropdown.erb +142 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_products_dropdown.erb +151 -0
- data/app/views/layouts/forever_style_guide/_navigation.erb +51 -29
- data/lib/forever_style_guide/version.rb +1 -1
- data/test/dummy/log/development.log +43794 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_all.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_button.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns-ambassador.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-fixed.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-icons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-offcanvas.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_breakpoints.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_effects.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/77afe34ae60f4f73cffcc8a92e720a6db579269d/_hero_simple.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/b7a4a2cc1ae6dd8beea9163f40226a4c9c3e7926/_bootstrap_reset.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13c6cfef7d2dae6157cb1e9a83970e58 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16ae65fae89ac9713129ac86c08be0fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bdd1622b754cd161cd49f472086df2d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5889baf60874f32654f269b1976b11da +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/74ee448666a16d19f05d144192a607fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/82e2ab0c7f220d85a3306094f9170995 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/93ba27aa64423f74732b1f2b12b84118 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a5339910db1afb33301cc638679d0cc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7c77fa9ddbae9998b1339d6c2c3eef0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d139d4c466cbb442154adf9c2b8149f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4a50f6ac0abd0a5af7071d8eb233a48 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee286b59ae897606bfd68a7f060d5baf +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +19 -21
- data/app/assets/javascripts/forever_style_guide/nav-fixed.js +0 -28
- data/app/assets/javascripts/forever_style_guide/navbar.js +0 -9
- data/app/assets/stylesheets/forever_style_guide/modules/_account-popover.scss +0 -133
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-more.scss +0 -60
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-nav.scss +0 -66
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product-main.scss +0 -52
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product.scss +0 -82
- data/app/assets/stylesheets/forever_style_guide/modules/_navbar.scss +0 -132
- data/app/views/forever_style_guide/demo/navigation-fixed-signed-in-app.html.erb +0 -22
- data/app/views/forever_style_guide/demo/navigation-fixed-signed-in.html.erb +0 -22
- data/app/views/forever_style_guide/demo/navigation-fixed.html.erb +0 -28
- data/app/views/forever_style_guide/sections/components/_navigation.html.erb +0 -69
- data/app/views/forever_style_guide/sections/components/navigation/_account_popover.erb +0 -71
- data/app/views/forever_style_guide/sections/components/navigation/_basic.erb +0 -33
- data/app/views/forever_style_guide/sections/components/navigation/_dropdown.erb +0 -119
- data/app/views/forever_style_guide/sections/components/navigation/_marketing.erb +0 -155
- data/app/views/forever_style_guide/sections/components/navigation/_marketing_signed_in.erb +0 -155
- data/app/views/forever_style_guide/sections/components/navigation/_signed_in.erb +0 -113
- data/app/views/forever_style_guide/sections/components/navigation/_stacked.erb +0 -22
@@ -1,52 +0,0 @@
|
|
1
|
-
// "Products & Services" Primary nav, featured first item styling
|
2
|
-
$product-image-main-width: 550px;
|
3
|
-
$product-image-main-height: 521px;
|
4
|
-
|
5
|
-
.dropdown-menu-product-main {
|
6
|
-
padding-bottom: 15px;
|
7
|
-
|
8
|
-
.dropdown-menu-product-item {
|
9
|
-
margin-bottom: 20px;
|
10
|
-
}
|
11
|
-
.dropdown-menu-product-img {
|
12
|
-
position: absolute;
|
13
|
-
width: $product-image-main-width;
|
14
|
-
max-width: none;
|
15
|
-
height: $product-image-main-height;
|
16
|
-
max-height: none;
|
17
|
-
margin-top: 0;
|
18
|
-
margin-left: 50%;
|
19
|
-
top: -120px;
|
20
|
-
left: (-$product-image-main-width / 2) - 20;
|
21
|
-
|
22
|
-
@media (max-width: $grid-float-breakpoint) {
|
23
|
-
top: -90px;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
.dropdown-menu-product-details {
|
27
|
-
@media (min-width: $screen-xl) {
|
28
|
-
width: 300px;
|
29
|
-
margin-left: auto;
|
30
|
-
margin-right: auto;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
.dropdown-menu-product-title {
|
34
|
-
@media (min-width: $screen-xl) {
|
35
|
-
margin-bottom: 30px;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
.dropdown-menu-product-description {
|
39
|
-
padding-top: 10px;
|
40
|
-
}
|
41
|
-
.dropdown-menu-product-btn {
|
42
|
-
@media (max-width: $grid-float-breakpoint) {
|
43
|
-
height: 62px;
|
44
|
-
font-size: $font-size-300;
|
45
|
-
line-height: 18px;
|
46
|
-
@include box-shadow($shadow-color, 0, 2px, 4px, 0);
|
47
|
-
}
|
48
|
-
@media (max-width: $screen-sm) {
|
49
|
-
font-size: $font-size-400;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
@@ -1,82 +0,0 @@
|
|
1
|
-
// "Products & Services" primary nav items
|
2
|
-
$product-image-height: 50px;
|
3
|
-
$product-image-lg-factor: 1.2;
|
4
|
-
$product-image-sm-factor: 0.85;
|
5
|
-
|
6
|
-
.dropdown-menu-product {
|
7
|
-
padding: 25px;
|
8
|
-
|
9
|
-
@media (max-width: $grid-float-breakpoint) {
|
10
|
-
padding: 5px;
|
11
|
-
}
|
12
|
-
|
13
|
-
a:hover,
|
14
|
-
a:active,
|
15
|
-
a:focus {
|
16
|
-
text-decoration: none;
|
17
|
-
}
|
18
|
-
.dropdown-menu-product-title,
|
19
|
-
.dropdown-menu-product-description {
|
20
|
-
color: color('text');
|
21
|
-
}
|
22
|
-
&:hover,
|
23
|
-
&:focus,
|
24
|
-
&:active {
|
25
|
-
.dropdown-menu-product-title {
|
26
|
-
color: color('secondary');
|
27
|
-
text-decoration: underline;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
.well {
|
31
|
-
margin-bottom: 0;
|
32
|
-
min-height: 310px;
|
33
|
-
background-color: color('white');
|
34
|
-
@extend %card-shadow;
|
35
|
-
|
36
|
-
@media (max-width: $grid-float-breakpoint) {
|
37
|
-
min-height: 0;
|
38
|
-
margin-bottom: 15px;
|
39
|
-
padding: 0;
|
40
|
-
}
|
41
|
-
@media (min-width: $screen-xl) {
|
42
|
-
min-height: 270px;
|
43
|
-
}
|
44
|
-
@media (min-width: $screen-xxl) {
|
45
|
-
min-height: 230px;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
.dropdown-menu-product-item {
|
50
|
-
margin-bottom: 30px;
|
51
|
-
height: $product-image-height;
|
52
|
-
text-align: center;
|
53
|
-
|
54
|
-
@media (max-width: $grid-float-breakpoint) {
|
55
|
-
margin-bottom: 10px;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
.dropdown-menu-product-img {
|
59
|
-
padding-top: 10px;
|
60
|
-
|
61
|
-
@media (max-width: $grid-float-breakpoint) {
|
62
|
-
max-height: $product-image-height * $product-image-sm-factor;
|
63
|
-
}
|
64
|
-
@media (max-width: $screen-sm) {
|
65
|
-
max-height: $product-image-height;
|
66
|
-
}
|
67
|
-
@media (min-width: $grid-float-breakpoint) {
|
68
|
-
max-height: $product-image-height * $product-image-lg-factor;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
.dropdown-menu-product-details {
|
72
|
-
position: relative;
|
73
|
-
min-width: 220px;
|
74
|
-
|
75
|
-
@media (max-width: $grid-float-breakpoint) {
|
76
|
-
min-width: 0;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
.dropdown-menu-product-title,
|
80
|
-
.dropdown-menu-product-description {
|
81
|
-
text-align: center;
|
82
|
-
}
|
@@ -1,132 +0,0 @@
|
|
1
|
-
%nav-item-stack {
|
2
|
-
display: inline-block;
|
3
|
-
padding: 5px 10px 0;
|
4
|
-
text-align: center;
|
5
|
-
|
6
|
-
.nav-item-tab {
|
7
|
-
padding: 5px 10px 0;
|
8
|
-
}
|
9
|
-
.nav-item-icon {
|
10
|
-
font-size: 20px;
|
11
|
-
}
|
12
|
-
.nav-item-label {
|
13
|
-
display: inherit;
|
14
|
-
font-size: $font-size-100;
|
15
|
-
line-height: 1;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
.navbar {
|
20
|
-
@extend %card-style;
|
21
|
-
position: relative;
|
22
|
-
border: 0;
|
23
|
-
border-radius: 0;
|
24
|
-
background-color: $color-nav-bg;
|
25
|
-
|
26
|
-
.navbar-brand {
|
27
|
-
display: block;
|
28
|
-
padding: 10px 0 10px 10px;
|
29
|
-
height: $header_height;
|
30
|
-
|
31
|
-
@media (min-width: $grid-float-breakpoint) {
|
32
|
-
padding-right: 30px;
|
33
|
-
}
|
34
|
-
|
35
|
-
.navbar-brand-logo {
|
36
|
-
width: 190px;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
.nav-item-stack {
|
41
|
-
@extend %nav-item-stack;
|
42
|
-
}
|
43
|
-
|
44
|
-
.navbar-right {
|
45
|
-
text-align: right;
|
46
|
-
|
47
|
-
@media (max-width: $grid-float-breakpoint) {
|
48
|
-
background-color: color('gray-100');
|
49
|
-
margin-bottom: 0;
|
50
|
-
padding-bottom: 8px;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
.navbar-toggle {
|
55
|
-
padding: 10px;
|
56
|
-
border: 0;
|
57
|
-
|
58
|
-
&:hover,
|
59
|
-
&:active,
|
60
|
-
&:focus {
|
61
|
-
background-color: transparent;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
.navbar-collapse {
|
65
|
-
@extend %card-style;
|
66
|
-
|
67
|
-
@media (min-width: $grid-float-breakpoint) {
|
68
|
-
@include box-shadow(transparent, 0, 0, 0, 0);
|
69
|
-
text-shadow: none;
|
70
|
-
}
|
71
|
-
@media (max-width: $grid-float-breakpoint) {
|
72
|
-
border-top: 0;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
.navbar-nav {
|
77
|
-
margin-top: 0;
|
78
|
-
margin-bottom: 0;
|
79
|
-
}
|
80
|
-
|
81
|
-
//nuke bootstrap navbar a tag psuedo-selectors
|
82
|
-
.navbar-nav > .open > a {
|
83
|
-
color: $color-nav-hover;
|
84
|
-
background-color: $color-nav-active;
|
85
|
-
border-color: color('secondary');
|
86
|
-
&:hover,
|
87
|
-
&:active,
|
88
|
-
&:focus {
|
89
|
-
color: $color-nav-hover;
|
90
|
-
background-color: $color-nav-active;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
.navbar-nav > li > a {
|
94
|
-
padding-top: 15px;
|
95
|
-
&:hover,
|
96
|
-
&:active,
|
97
|
-
&:focus {
|
98
|
-
color: $color-nav-hover;
|
99
|
-
}
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
.navbar-fixed-top {
|
104
|
-
.navbar-collapse {
|
105
|
-
max-height: none;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
.navbar-dropdown {
|
110
|
-
.nav,
|
111
|
-
.collapse
|
112
|
-
.dropup,
|
113
|
-
.dropdown {
|
114
|
-
position: inherit;
|
115
|
-
&.dropdown-left {
|
116
|
-
position: relative;
|
117
|
-
.dropdown-menu-nav {
|
118
|
-
right: 0;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
.nav.navbar-nav.navbar-right {
|
125
|
-
position: relative;
|
126
|
-
|
127
|
-
// switches at screen collapse breakpoint
|
128
|
-
@media(max-width: $grid-float-breakpoint) {
|
129
|
-
padding: 10px 0 10px 15px;
|
130
|
-
min-height: 70px;
|
131
|
-
}
|
132
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<header id="header-is_fixed">
|
2
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/signed_in" %>
|
3
|
-
</header>
|
4
|
-
<div class="container l-section">
|
5
|
-
<div class="card l-section-far l-padded-thick" style="min-height: 800px;">
|
6
|
-
<h1>Fixed Navigation - Signed In User</h1>
|
7
|
-
<p>To implement:</p>
|
8
|
-
<ol>
|
9
|
-
<li>Add the account popover triggers markup for mobile and desktop w/ in your conditional check against the logged in state.</li>
|
10
|
-
<li>Immediately following the triggers include the popover content markup</li>
|
11
|
-
<li>Be sure to include the (empty) account popover containers for desktop and mobile immediately after the closing <nav> tag.</li>
|
12
|
-
<li>Include the account-popover.js snippet</li>
|
13
|
-
</ol>
|
14
|
-
<p>How it works:</p>
|
15
|
-
<ul>
|
16
|
-
<li>On the desktop the avatar and name expose a popover inlined into the header the same way we do in the app, albeit with slightly modified contextual styling.</li>
|
17
|
-
<li>In mobile contexts, the popover behaves like an additional dropdown item and we must check against viewport height in the same manner we do for the <%= link_to "basic fixed header nav", demo_link('navigation-fixed') %> in mobile contexts. </li>
|
18
|
-
<li>Reference: <a href='http://getbootstrap.com/javascript/#dropdowns-methods'>Bootstrap Popovers</a></li>
|
19
|
-
</ul>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<header id="header-is_fixed">
|
2
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/marketing_signed_in" %>
|
3
|
-
</header>
|
4
|
-
<div class="container l-section">
|
5
|
-
<div class="card l-section-far l-padded-thick" style="min-height: 800px;">
|
6
|
-
<h1>Fixed Navigation - Signed In User</h1>
|
7
|
-
<p>To implement:</p>
|
8
|
-
<ol>
|
9
|
-
<li>Add the account popover triggers markup for mobile and desktop w/ in your conditional check against the logged in state.</li>
|
10
|
-
<li>Immediately following the triggers include the popover content markup</li>
|
11
|
-
<li>Be sure to include the (empty) account popover containers for desktop and mobile immediately after the closing <nav> tag.</li>
|
12
|
-
<li>Include the account-popover.js snippet</li>
|
13
|
-
</ol>
|
14
|
-
<p>How it works:</p>
|
15
|
-
<ul>
|
16
|
-
<li>On the desktop the avatar and name expose a popover inlined into the header the same way we do in the app, albeit with slightly modified contextual styling.</li>
|
17
|
-
<li>In mobile contexts, the popover behaves like an additional dropdown item and we must check against viewport height in the same manner we do for the <%= link_to "basic fixed header nav", demo_link('navigation-fixed') %> in mobile contexts. </li>
|
18
|
-
<li>Reference: <a href='http://getbootstrap.com/javascript/#dropdowns-methods'>Bootstrap Popovers</a></li>
|
19
|
-
</ul>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<header id="header-is_fixed">
|
2
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/marketing" %>
|
3
|
-
</header>
|
4
|
-
<div class="container l-section">
|
5
|
-
<div class="card l-section-far l-padded-thick" style="min-height: 800px;">
|
6
|
-
<h1>Fixed Navigation</h1>
|
7
|
-
<p>To implement fixed navigation:</p>
|
8
|
-
<ol>
|
9
|
-
<li>Add an id of "header-is_fixed" to the main <header> element</li>
|
10
|
-
<li>Add top padding to the <body> to match the height of the header (in most cases this will be equal to the $header_height variable unless there's a subnav or additional fixed elements.)</li>
|
11
|
-
<li>Include the nav-fixed.js snippet</li>
|
12
|
-
</ol>
|
13
|
-
<p>How it works:</p>
|
14
|
-
<ul>
|
15
|
-
<li>On the desktop the header is fixed and behaves as any other fixed element</li>
|
16
|
-
<li>In mobile contexts, we have to make sure that the nav is scrollable when expanded beyond the height of the viewport
|
17
|
-
<ul>
|
18
|
-
<li>We can rely on <a href='http://getbootstrap.com/javascript/#dropdowns-methods'>Bootstrap's Dropdown Methods</a> to help here.</li>
|
19
|
-
<li>When a dropdown w/ in the nav is expanded we check to see if this makes the height of the header greater than the height of the viewport</li>
|
20
|
-
<li>If it is greater, we give the header a max height equal to the viewport height to allow for vertical scrolling w/ in the header.</li>
|
21
|
-
<li>We make the body (now behind the header) fixed so it does interfere w/ scrolling.</li>
|
22
|
-
<li>When the dropdown or the collapse nav is closed, we make sure the body is no longer fixed</li>
|
23
|
-
</ul>
|
24
|
-
</li>
|
25
|
-
</ul>
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<div class="card style-guide-partial" id="navigation">
|
2
|
-
<h2 class="style-guide-partial-title">
|
3
|
-
Navigation
|
4
|
-
</h2>
|
5
|
-
|
6
|
-
<div class="style-guide-partial-description">
|
7
|
-
Built on top of <%= link_to "Bootstrap's navbar", "http://getbootstrap.com/components/#navbar" %> component. Provides a stylish, responsive main app navigation.
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<div class="style-guide-partial-content">
|
11
|
-
<label>Basic Navigation</label>
|
12
|
-
<p><%= link_to "Fullscreen Demo", demo_link('navigation') %></p>
|
13
|
-
<div class="style-guide-partial-rendered">
|
14
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/basic" %>
|
15
|
-
</div>
|
16
|
-
<div class="style-guide-toggle">
|
17
|
-
<input id="style-guide-toggle-nav_basic" class="style-guide-toggle-input" type="checkbox" />
|
18
|
-
<label for="style-guide-toggle-nav_basic" class="style-guide-toggle-label">
|
19
|
-
<pre class="style-guide-toggle-source prettyprint linenums"><%= escape_erb_for_display("forever_style_guide/sections/components/navigation/_basic.erb") %></pre>
|
20
|
-
<div class="style-guide-toggle-show">Show source code</div>
|
21
|
-
<div class="style-guide-toggle-hide">Hide source code</div>
|
22
|
-
</label>
|
23
|
-
</div>
|
24
|
-
</br>
|
25
|
-
<label>Dropdown Navigation</label>
|
26
|
-
<div class="style-guide-partial-rendered">
|
27
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/dropdown" %>
|
28
|
-
</div>
|
29
|
-
<div class="style-guide-toggle">
|
30
|
-
<input id="style-guide-toggle-nav_dropdown" class="style-guide-toggle-input" type="checkbox" />
|
31
|
-
<label for="style-guide-toggle-nav_dropdown" class="style-guide-toggle-label">
|
32
|
-
<pre class="style-guide-toggle-source prettyprint linenums"><%= escape_erb_for_display("forever_style_guide/sections/components/navigation/_dropdown.erb") %></pre>
|
33
|
-
<div class="style-guide-toggle-show">Show source code</div>
|
34
|
-
<div class="style-guide-toggle-hide">Hide source code</div>
|
35
|
-
</label>
|
36
|
-
</div>
|
37
|
-
</br>
|
38
|
-
<label>Stacked/Justified Navigation</label>
|
39
|
-
<div class="style-guide-partial-rendered">
|
40
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/stacked" %>
|
41
|
-
</div>
|
42
|
-
<div class="style-guide-toggle">
|
43
|
-
<input id="style-guide-toggle-nav_stacked" class="style-guide-toggle-input" type="checkbox" />
|
44
|
-
<label for="style-guide-toggle-nav_stacked" class="style-guide-toggle-label">
|
45
|
-
<pre class="style-guide-toggle-source prettyprint linenums"><%= escape_erb_for_display("forever_style_guide/sections/components/navigation/_stacked.erb") %></pre>
|
46
|
-
<div class="style-guide-toggle-show">Show source code</div>
|
47
|
-
<div class="style-guide-toggle-hide">Hide source code</div>
|
48
|
-
</label>
|
49
|
-
</div>
|
50
|
-
<div class="l-section">
|
51
|
-
<h2 class="style-guide-partial-title">
|
52
|
-
Fixed Header Navigation
|
53
|
-
</h2>
|
54
|
-
<p>Checkout out the <%= link_to "Fixed Header Full Screen Demo", demo_link('navigation-fixed') %> for visual reference and specifics on implementation</p>
|
55
|
-
<div class="l-padded-thin"></div>
|
56
|
-
</div>
|
57
|
-
<div class="l-section-close">
|
58
|
-
<h2 class="style-guide-partial-title">
|
59
|
-
Fixed Header - Signed In State
|
60
|
-
</h2>
|
61
|
-
<p>Checkout out the <%= link_to "Signed In State Full Screen Demo", demo_link('navigation-fixed-signed-in') %> for visual reference and specifics on implementation</p>
|
62
|
-
<div class="l-padded-thin"></div>
|
63
|
-
</div>
|
64
|
-
</div>
|
65
|
-
|
66
|
-
</div>
|
67
|
-
|
68
|
-
|
69
|
-
|
@@ -1,71 +0,0 @@
|
|
1
|
-
<div class="account-popover-trigger visible-md visible-lg" data-toggle="popover-desktop">
|
2
|
-
<%= image_tag("style_guide/personas/jane_avatar.png", alt: "Jane Persona", title: "Jane Persona Lada Lada Long Name", class: "avatar avatar-xs") %>
|
3
|
-
<p class="account-popover-user">
|
4
|
-
<span class="small">Signed in as </span> <br />
|
5
|
-
<strong class="color-gray-600">Jane Persona Lada Lada Long Name</strong>
|
6
|
-
</p>
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<div class="account-popover-trigger visible-xs visible-sm l-padded-thin" data-toggle="popover-mobile">
|
10
|
-
<%= image_tag("style_guide/personas/jane_avatar.png", alt: "Jane Persona", title: "Jane Persona Lada Lada Long Name", class: "avatar avatar-xs") %>
|
11
|
-
<p class="account-popover-user">
|
12
|
-
<span class="small">Signed in as </span> <br />
|
13
|
-
<strong class="color-gray-600">Jane Persona Lada Lada Long Name</strong>
|
14
|
-
</p>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div class="account-popover hidden">
|
18
|
-
<div class="account-popover-storage l-padded-thin">
|
19
|
-
<div class="row">
|
20
|
-
<div class="col-sm-6 account-popover-membership_type">Permanent Member</div>
|
21
|
-
<div class="col-sm-6 text-right">
|
22
|
-
<%= link_to "#", class: 'account-popover-link account-popover-link-text' do %>
|
23
|
-
<span class="account-popover-percent_used">26%</span> of <span class="account-popover-total_storage">10GB</span> <%= fa_icon("chevron-right") %>
|
24
|
-
<% end %>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
<div class="row">
|
28
|
-
<div class="col-sm-12">
|
29
|
-
<div class="progress progress-thin">
|
30
|
-
<div class="progress-bar" role="progressbar" aria-valuenow="26" aria-valuemin="0" aria-valuemax="100" style="width: 26%">
|
31
|
-
<span class="progress-label">26%</span>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
<div class="row account-popover-storage-upgrade">
|
37
|
-
<div class="col-sm-12">
|
38
|
-
<button class="btn btn-gray btn-inverse btn-block">Upgrade My Storage</button>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<div class="account-popover-app">
|
43
|
-
<div class="row">
|
44
|
-
<div class="col-sm-6">
|
45
|
-
<%= link_to "#", class: 'btn btn-link btn-inverse account-popover-link', title: 'My Home' do %>
|
46
|
-
<%= fa_icon("home", text: "Home", class:"nav-item-icon") %>
|
47
|
-
<% end %>
|
48
|
-
<%= link_to "#", class: 'btn btn-link btn-inverse account-popover-link', title: 'Library' do %>
|
49
|
-
<%= fa_icon("th-large", text: "Library", class:"nav-item-icon") %>
|
50
|
-
<% end %>
|
51
|
-
</div>
|
52
|
-
<div class="col-sm-6">
|
53
|
-
<%= link_to "#", class: 'btn btn-link btn-inverse account-popover-link', title: 'Projects' do %>
|
54
|
-
<%= fa_icon("paint-brush", text: "Projects", class:"nav-item-icon") %>
|
55
|
-
<% end %>
|
56
|
-
<%= link_to "#", class: 'btn btn-link btn-inverse account-popover-link', title: 'People' do %>
|
57
|
-
<%= fa_icon("group", text: "People", class:"nav-item-icon") %>
|
58
|
-
<% end %>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
<div class="account-popover-settings l-padded-thin">
|
63
|
-
<div class="row">
|
64
|
-
<div class="col-sm-12 text-center">
|
65
|
-
<%= link_to 'Settings', "#", class: 'account-popover-link', title: 'Account Settings' %>
|
66
|
-
<%= link_to 'Order History', "#", class: 'account-popover-link', title: 'Order History' %>
|
67
|
-
<%= link_to 'Log Out', "#", class: 'account-popover-link', title: 'Log Out' %>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
</div>
|