better_styles 0.0.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +33 -0
  4. data/Rakefile +34 -0
  5. data/app/helpers/styles_helper.rb +33 -0
  6. data/assets/fonts/betterfonts/betterwork-icons.eot +0 -0
  7. data/assets/fonts/betterfonts/betterwork-icons.svg +368 -0
  8. data/assets/fonts/betterfonts/betterwork-icons.ttf +0 -0
  9. data/assets/fonts/betterfonts/betterwork-icons.woff +0 -0
  10. data/assets/fonts/betterfonts/icomoon.eot +0 -0
  11. data/assets/fonts/betterfonts/icomoon.svg +461 -0
  12. data/assets/fonts/betterfonts/icomoon.ttf +0 -0
  13. data/assets/fonts/betterfonts/icomoon.woff +0 -0
  14. data/assets/fonts/betterfonts/magicons-regular-webfont.eot +0 -0
  15. data/assets/fonts/betterfonts/magicons-regular-webfont.svg +461 -0
  16. data/assets/fonts/betterfonts/magicons-regular-webfont.ttf +0 -0
  17. data/assets/fonts/betterfonts/magicons-regular-webfont.woff +0 -0
  18. data/assets/fonts/betterfonts/newmagicons-regular-webfont.eot +0 -0
  19. data/assets/fonts/betterfonts/newmagicons-regular-webfont.svg +199 -0
  20. data/assets/fonts/betterfonts/newmagicons-regular-webfont.ttf +0 -0
  21. data/assets/fonts/betterfonts/newmagicons-regular-webfont.woff +0 -0
  22. data/assets/fonts/betterfonts/orderlifticons-webfont.eot +0 -0
  23. data/assets/fonts/betterfonts/orderlifticons-webfont.svg +172 -0
  24. data/assets/fonts/betterfonts/orderlifticons-webfont.ttf +0 -0
  25. data/assets/fonts/betterfonts/orderlifticons-webfont.woff +0 -0
  26. data/assets/images/better/arrows/arrow-round1-a.png +0 -0
  27. data/assets/images/better/arrows/arrow-round1-b.png +0 -0
  28. data/assets/images/better/arrows/arrow-round2-a.png +0 -0
  29. data/assets/images/better/arrows/arrow-round2-b.png +0 -0
  30. data/assets/images/better/arrows/arrow1-a.png +0 -0
  31. data/assets/images/better/arrows/arrow1-b.png +0 -0
  32. data/assets/images/better/arrows/arrow1.png +0 -0
  33. data/assets/images/better/arrows/arrow2-1.png +0 -0
  34. data/assets/images/better/arrows/arrow2-2.png +0 -0
  35. data/assets/images/better/arrows/arrow2-a.png +0 -0
  36. data/assets/images/better/arrows/arrow2-b.png +0 -0
  37. data/assets/images/better/arrows/arrow3-a.png +0 -0
  38. data/assets/images/better/arrows/arrow3-b.png +0 -0
  39. data/assets/images/better/arrows/arrow4-a.png +0 -0
  40. data/assets/images/better/arrows/arrow4-b.png +0 -0
  41. data/assets/images/better/arrows/arrow5-a.png +0 -0
  42. data/assets/images/better/arrows/arrow5-b.png +0 -0
  43. data/assets/images/better/arrows/arrow6-a.png +0 -0
  44. data/assets/images/better/arrows/arrow6-b.png +0 -0
  45. data/assets/images/better/helper/blank_10.png +0 -0
  46. data/assets/images/better/helper/crossed.png +0 -0
  47. data/assets/images/better/helper/white_10.png +0 -0
  48. data/assets/javascripts/better_styles.js.coffee +4 -0
  49. data/assets/javascripts/betterjs/forms/check_switch.js.coffee +25 -0
  50. data/assets/javascripts/betterjs/helper.js.coffee +74 -0
  51. data/assets/javascripts/betterjs/navigations/aside_link.js.coffee +9 -0
  52. data/assets/javascripts/betterjs/navigations/nav_list.js.coffee +19 -0
  53. data/assets/javascripts/betterjs/rails_ext/rails-ujs.js +479 -0
  54. data/assets/javascripts/betterjs/render_eco.js.coffee +9 -0
  55. data/assets/javascripts/betterjs/templates/fixed_aside_to_header.js.coffee +6 -0
  56. data/assets/javascripts/betterjs/templates/icon_aside.js.coffee +12 -0
  57. data/assets/javascripts/betterjs/templates/scroll_to_fix_aside.js +32 -0
  58. data/assets/javascripts/betterjs/twbs_ext/affix_2_1_0.js +103 -0
  59. data/assets/javascripts/betterjs/twbs_ext/affix_3_3_7.js +162 -0
  60. data/assets/javascripts/betterjs/twbs_ext/affix_ext.js +131 -0
  61. data/assets/stylesheets/better/content/_box.scss +46 -0
  62. data/assets/stylesheets/better/content/_buttons.scss +22 -0
  63. data/assets/stylesheets/better/content/_check_switch.scss +78 -0
  64. data/assets/stylesheets/better/content/_divider.scss +65 -0
  65. data/assets/stylesheets/better/content/_helpers.scss +85 -0
  66. data/assets/stylesheets/better/content/_pix.scss +70 -0
  67. data/assets/stylesheets/better/content/_typography.scss +44 -0
  68. data/assets/stylesheets/better/icons/bettericons.scss +419 -0
  69. data/assets/stylesheets/better/icons/icomoon.scss +1392 -0
  70. data/assets/stylesheets/better/icons/magicons.scss +705 -0
  71. data/assets/stylesheets/better/icons/orderlifticons.scss +300 -0
  72. data/assets/stylesheets/better/layout/_corset.scss +57 -0
  73. data/assets/stylesheets/better/layout/_fullpage_table.scss +185 -0
  74. data/assets/stylesheets/better/layout/_positioning.scss +62 -0
  75. data/assets/stylesheets/better/layout/_section.scss +220 -0
  76. data/assets/stylesheets/better/lib/_helpers.scss +67 -0
  77. data/assets/stylesheets/better/lib/_media_querries.scss +43 -0
  78. data/assets/stylesheets/better/lib/_nav.scss +31 -0
  79. data/assets/stylesheets/better/lib/_shadows.scss +247 -0
  80. data/assets/stylesheets/better/lib/_text.scss +66 -0
  81. data/assets/stylesheets/better/navigations/_aside_lnk.scss +100 -0
  82. data/assets/stylesheets/better/navigations/_nav_list.scss +177 -0
  83. data/assets/stylesheets/better/templates/_fixed_aside_to_header.scss +89 -0
  84. data/assets/stylesheets/better/templates/_icon_aside.scss +404 -0
  85. data/assets/stylesheets/better/templates/_scroll_to_fix_aside.scss +104 -0
  86. data/assets/stylesheets/better/variables/_color.scss +87 -0
  87. data/assets/stylesheets/better/variables/_typography.scss +59 -0
  88. data/assets/stylesheets/better/variables/_vars.scss +57 -0
  89. data/assets/stylesheets/better_styles.scss +44 -0
  90. data/assets/stylesheets/better_styles_min.scss +43 -0
  91. data/lib/better_styles.rb +64 -0
  92. data/lib/better_styles/engine.rb +25 -0
  93. data/lib/better_styles/version.rb +3 -0
  94. data/lib/tasks/better_styles_tasks.rake +4 -0
  95. metadata +181 -0
@@ -0,0 +1,66 @@
1
+ // no line break in texts, when to long for box show "..."
2
+ @mixin noWrap {
3
+ white-space: nowrap;
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ }
7
+
8
+ @mixin no_wrap { @include noWrap; }
9
+ @mixin no-wrap { @include noWrap; }
10
+ @mixin no_word_break { @include noWrap; }
11
+ @mixin no-word-break { @include noWrap; }
12
+
13
+
14
+
15
+ // user formated text .. like pre tag
16
+ @mixin preText {
17
+ white-space: -moz-pre-wrap !important;
18
+ white-space: -pre-wrap;
19
+ white-space: -o-pre-wrap;
20
+ white-space: pre-wrap;
21
+ word-wrap: break-word;
22
+ }
23
+
24
+ @mixin pre_text { @include preText; }
25
+ @mixin pre-text { @include preText; }
26
+ @mixin user_input { @include preText; }
27
+ @mixin user-input { @include preText; }
28
+
29
+
30
+
31
+ // make icons and fonts thinner in webkit (white icons on dark background)
32
+ @mixin antialiasedText {
33
+ text-shadow: 0 0 0 rgba(0,0,0,.01);
34
+ -webkit-font-smoothing: antialiased;
35
+ text-rendering: optimizelegibility;
36
+ }
37
+
38
+ @mixin antialiased_text { @include antialiasedText; }
39
+ @mixin antialiased-text { @include antialiasedText; }
40
+
41
+
42
+
43
+ // make it smooth and app-like on mobile (best in body!)
44
+ @mixin mobileAppImprovements {
45
+ -webkit-font-smoothing: antialiased;
46
+ -webkit-touch-callout: none;
47
+ -webkit-user-select: none;
48
+ ::-webkit-scrollbar { display: none; }
49
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
50
+ }
51
+
52
+ @mixin mobile_app_improvements { @include mobileAppImprovements; }
53
+ @mixin mobile-app-improvements { @include mobileAppImprovements; }
54
+
55
+
56
+
57
+ // add rules for all text elements
58
+ @mixin textTags {
59
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p, span, a {
60
+ @content;
61
+ }
62
+ }
63
+
64
+ @mixin text_tags { @include textTags { @content; } }
65
+ @mixin text-tags { @include textTags { @content; } }
66
+
@@ -0,0 +1,100 @@
1
+ #nav_list, #nav-list {
2
+
3
+
4
+
5
+ }
6
+
7
+ $appAside-bg: #333;
8
+
9
+
10
+ .aside_lnk, .aside_lnk a {
11
+ display: block;
12
+ }
13
+
14
+ .aside_lnk {
15
+ display: block;
16
+ line-height: 2.5rem;
17
+ text-align: left;
18
+ @include noWrap;
19
+ overflow: hidden;
20
+ text-decoration: none;
21
+ cursor: pointer;
22
+ .icn, .labl {
23
+ line-height: 2.5rem;
24
+ height: 2.5rem;
25
+ }
26
+ .icn {
27
+ font-size: 1.2rem;
28
+ width: 2.5rem;
29
+ float: left;
30
+ text-align: center;
31
+ img { margin-top: .25rem; }
32
+ }
33
+
34
+ .aside_nav, .aside_nav li, .aside_nav li a {
35
+ display: block; position: relative;
36
+ margin: 0; padding: 0;
37
+ }
38
+
39
+ img.flag { width: 1.2rem; }
40
+
41
+ .aside_nav {
42
+ display: none;
43
+ list-style: none;
44
+ padding: 0.25rem 0 0.5rem;
45
+ background: darken( $appAside-bg, 5% );
46
+ li {
47
+ margin: 0;
48
+
49
+ &.divide {
50
+ display: block;
51
+ height: 0;
52
+ margin: 0.25rem 0.5rem;
53
+ border: none;
54
+ background: transparent;
55
+ border-top: solid 1px rgba(0,0,0,.23);
56
+ border-bottom: solid 1px rgba(255,255,255,.42);
57
+ }
58
+
59
+ a {
60
+ height: 2.2rem;
61
+ text-decoration: none;
62
+ background: darken( $appAside-bg, 5% );
63
+ &:hover { background: darken( $appAside-bg, 10% ); }
64
+
65
+ .icn, .labl {
66
+ line-height: 2.2rem;
67
+ height: 2.2rem;
68
+ padding: 0;
69
+ color: #777;
70
+ }
71
+ .icn {
72
+ font-size: 1.2rem;
73
+ width: 2.5rem;
74
+ float: left;
75
+ text-align: center;
76
+ }
77
+
78
+ &.current, &.active {
79
+ .icn, .labl { color: $brand-color; }
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+
86
+ &.on {
87
+ & > .aside_nav { display: block; }
88
+ }
89
+
90
+ }
91
+
92
+ a.aside_lnk, .aside_lnk > a {
93
+ &.current { color: #069; }
94
+ &:hover {
95
+ background: darken( $appAside-bg, 20% );
96
+ }
97
+ &:hover, &:focus, &:active, &.active {
98
+ text-decoration: none;
99
+ }
100
+ }
@@ -0,0 +1,177 @@
1
+ $fontSize: 1rem;
2
+ $lineHeight: 1.42em;
3
+ $activeColor: $brand-color;
4
+ $currentBG: $white;
5
+ $navColor: $text-gray;
6
+ $hoverBG: $white;
7
+ $hoverColor: $brand-color;
8
+ $borderColor: $main-border-color;
9
+ $subNavBG: rgba(0,0,0,.05);
10
+
11
+ .nav_list, .nav-list {
12
+ &, & > li, .sub_nav, .sub_nav li, a, span.lst_lnk , p.lst_lnk {
13
+ display: block; position: relative;
14
+ margin: 0; padding: 0;
15
+ }
16
+ &, & > li, .sub_nav, .sub_nav li {
17
+ list-style: none;
18
+ }
19
+ }
20
+
21
+
22
+ .nav_list, .nav-list {
23
+
24
+ font-size: $fontSize;
25
+
26
+ li {
27
+ border: none;
28
+
29
+ a, span.lst_lnk, p.lst_lnk {
30
+ padding: 0.8em 0.6em;
31
+ line-height: $lineHeight;
32
+ text-decoration: none;
33
+ color: $navColor;
34
+ .label {
35
+ font-size: inherit; line-height: inherit; color: inherit;
36
+ margin-left: 10px; margin-top: -1px;
37
+ text-align: center;
38
+ float: right;
39
+ width: 2.5em;
40
+ border: solid 1px $borderColor;
41
+ border-radius: 80px;
42
+ }
43
+ }
44
+ a:hover, a:focus {
45
+ background: $hoverBG;
46
+ color: $hoverColor;
47
+ }
48
+
49
+ .sub_nav {
50
+ display: none;
51
+ background: $subNavBG;
52
+ li {
53
+ a, span.lst_lnk, p.lst_lnk {
54
+ padding: 0.5em 0.6em;
55
+ font-size: 0.9em;
56
+ }
57
+ .sub_nav {
58
+ li {
59
+ a, span.lst_lnk, p.lst_lnk {
60
+ padding: 0.3em 0.6em;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ &.active {
68
+ & > a {
69
+ font-weight: $bold;
70
+ }
71
+ & > .sub_nav { display: block; }
72
+ }
73
+ &.current > a {
74
+ color: $activeColor;
75
+ background: $currentBG;
76
+ }
77
+
78
+ &.arrow {
79
+
80
+ }
81
+
82
+ }
83
+
84
+
85
+
86
+ // some other styles
87
+ &.lined {
88
+ li + li { border-top: solid 1px $borderColor; }
89
+ .sub_nav { border-top: solid 1px $borderColor; }
90
+ }
91
+
92
+ &.pressed {
93
+ // background: $white;
94
+ li {
95
+ &.current, &.active {
96
+ padding-left: 3px;
97
+ & > a {
98
+ // background: $white;
99
+ }
100
+ .sub_nav > li { padding-left: 3px; }
101
+ }
102
+ }
103
+ }
104
+
105
+ &.color-pressed {
106
+ // background: $white;
107
+ li {
108
+ &.current, &.active {
109
+
110
+ &:before {
111
+ display: block; position: absolute;
112
+ margin: 0; padding: 0;
113
+ content: "";
114
+ top: 0; left: 0; bottom: 0;
115
+ width: 3px;
116
+ background: $activeColor;
117
+ }
118
+ padding-left: 3px;
119
+ & > a {
120
+ // background: $white;
121
+ }
122
+ }
123
+ }
124
+ .sub_nav { padding-left: 1px; }
125
+ }
126
+
127
+ &.nice {
128
+ li .sub_nav {
129
+ overflow: hidden;
130
+ &:before, &:after {
131
+ display: block; position: absolute; content: "";
132
+ margin: 0; padding: 0;
133
+ z-index: 3;
134
+ left: -10px; right: -10px;
135
+ height: 5px;
136
+ }
137
+ &:before {
138
+ top: -7px;
139
+ box-shadow: 0 2px 7px 0 rgba(0,0,0,.35);
140
+ }
141
+ &:after {
142
+ bottom: -7px;
143
+ box-shadow: 0 -2px 7px 0 rgba(0,0,0,.35);
144
+ }
145
+ }
146
+ }
147
+
148
+
149
+ &.arrowed li a, li.arrow > a {
150
+ padding-right: 2.5em;
151
+ &:after {
152
+ display: block;
153
+ position: absolute;
154
+ top: 0; right: 0; bottom: 0;
155
+ padding: inherit;
156
+ @include horizontal-padding( 0 );
157
+ text-align: center;
158
+ width: 1.5em;
159
+ line-height: $line-height-computed + 10;
160
+ content: "\e920";
161
+ font-family: 'betterwork-icons';
162
+ font-weight: normal;
163
+ font-style: normal;
164
+ font-size: 1.6em;
165
+ line-height: .9;
166
+ }
167
+ }
168
+ &.arrowed li.active > a, li.arrow.active > a {
169
+ &:after { content: "\e91f"; }
170
+ }
171
+
172
+
173
+ &.shiny {
174
+ @include single_shine( rgba(0, 0, 0, 0.13), 2, right, 1px, 10px, 5px, 80 );
175
+ }
176
+
177
+ }
@@ -0,0 +1,89 @@
1
+ body {
2
+ &.blank {
3
+ background: #fff;
4
+ }
5
+ &.main_template {
6
+ padding: 40px 0 0 0;
7
+ }
8
+ }
9
+
10
+ #app_content {
11
+ display: block;
12
+ position: relative;
13
+ // position: static;
14
+ width: 100%; height: 100%;
15
+
16
+ z-index: 1;
17
+
18
+ @include gpu_render;
19
+
20
+ }
21
+
22
+
23
+ #aside {
24
+ // @mixin single_shine( $color, $times: 3, $position: right, $width: 5px, $blur: 5px, $size: 0, $corner: 100 )
25
+ display: block; position: fixed;
26
+ top: 40px; right: auto; bottom: 0; left: 0;
27
+ width: 220px;
28
+ z-index: 99999;
29
+ background: #e5e5e5;
30
+ // box-shadow: inset -2px 0 3px 0 #000;
31
+ border-right: solid 1px #ccc;
32
+ overflow-y: scroll;
33
+ .btn { width: 90%; margin: 0 auto; display: block; }
34
+
35
+ // transform: translateZ( 0 ) ;
36
+ // transform: translateX( -222px ) ;
37
+
38
+ transform: translate(-220px,0) ;
39
+
40
+ @include transition (all 0.5s ease-in-out);
41
+ @include asideScrollBar;
42
+ }
43
+
44
+
45
+ #mobile_header {
46
+ position: fixed;
47
+ top: 0; right: 0; left: 0;
48
+ height: 40px; line-height: 40px;
49
+ z-index: 999999;
50
+ // @include linear-gradient( #222, #111 );
51
+ color: #ccc;
52
+ background: rgba(0,0,0,.80);
53
+ text-shadow: 0 1px 1px #000;
54
+ i, i:before { font-size: 24px; line-height: 40px;}
55
+ text-decoration: none;
56
+ }
57
+
58
+ body.aside-on {
59
+ #aside {
60
+ // transform: translateX( 0 ) ;
61
+ transform: translate(0,0) ;
62
+ }
63
+ #mobile_header { color: #069; }
64
+ }
65
+
66
+
67
+
68
+
69
+ @include responsiveStep-sm {
70
+
71
+ body {
72
+ &.main_template {
73
+ padding: 0 0 0 220px;
74
+ }
75
+ }
76
+
77
+ #aside {
78
+ @include single_shine( rgba(0,0,0,.13), 1, right, 10px );
79
+ display: block; position: fixed;
80
+ top: 0;
81
+
82
+ // transform: translateX( 0 ) ;
83
+ transform: translate(0,0) ;
84
+ }
85
+
86
+ #mobile_header {
87
+ display: none;
88
+ }
89
+ }
@@ -0,0 +1,404 @@
1
+ $appAside-width: 14rem;
2
+ $appAside-icn-width: 2.5rem;
3
+
4
+ $appAside-bg: #e5e5e5;
5
+ $appAside-admin-bg: #222;
6
+
7
+ $appAside-color: #444;
8
+ $appAside-admin-color: #ccc;
9
+
10
+ $infoAside-width: 18rem;
11
+ $infoAside-margin: 0.65rem;
12
+
13
+ $filterAside-width: 15rem;
14
+
15
+ .main-aside, .right-aside, .filter-aside {
16
+ display: block; position: fixed;
17
+ margin: 0; padding: 0;
18
+ @include gpu_render;
19
+ .aside-inner {
20
+ display: block; position: relative;
21
+ margin: 0; padding: 0 0 70px;
22
+ width: 100%; height: 100%;
23
+ // overflow-y: auto;
24
+ }
25
+ }
26
+
27
+ .main-aside { z-index: 3; }
28
+ .filter-aside { z-index: 1; }
29
+ .main-content { z-index: 15; }
30
+ .right-aside { z-index: 75; }
31
+ .app-logo { z-index: 105; }
32
+
33
+
34
+ .main-aside, .filter-aside, .main-content, .right-aside, .app-logo {
35
+ @include transition(all 1s ease);
36
+ }
37
+ body { @include transition(padding 1s ease); min-height: 100%; }
38
+
39
+
40
+ .main-content {
41
+ display: block; position: relative;
42
+ margin: 0; padding: 0;
43
+ width: 100%;
44
+ height: auto; min-height: 100%;
45
+ background: $main-bg;
46
+ transform: translateX( 0 ) ;
47
+ }
48
+
49
+ .main-aside {
50
+ left: 0; top: 0; bottom: 0;
51
+ width: $appAside-width;
52
+ background: $appAside-bg;
53
+ color: $appAside-color;
54
+ // font-size: $font-size-large;
55
+
56
+ transform: translateX(-.5 * $appAside-width) ;
57
+ @include asideScrollBar;
58
+
59
+ hr {
60
+ margin: 5px 0;
61
+ }
62
+
63
+
64
+ .bottom-btn {
65
+ position: absolute;
66
+ left: 20px; bottom: 20px; right: 20px;
67
+ .small_labl { display: none; }
68
+ }
69
+
70
+ &.admin {
71
+ @include antialiased_text;
72
+
73
+ background: $appAside-admin-bg;
74
+ color: $appAside-admin-color;
75
+ a.aside_lnk, .aside_lnk a {
76
+ background: $appAside-admin-bg;
77
+ color: $appAside-admin-color;
78
+ &.current, &.active { color: $brand-color; }
79
+ &:hover {
80
+ background: #000;
81
+ }
82
+ }
83
+ .aside_lnk .aside_nav {
84
+ background: rgba(255,255,255, .11);
85
+ li a {
86
+ background: transparent;
87
+ color: #f3f2f2;
88
+ &:hover { background: #000; }
89
+ .icn, .labl { color: #ccc; }
90
+ &.current, &.active {
91
+ .icn, .labl { color: $brand-color; }
92
+ }
93
+ }
94
+ }
95
+
96
+ hr {
97
+ margin: 5px;
98
+ border-top-color: #000;
99
+ border-bottom-color: rgba(255,255,255,.07);
100
+ }
101
+ }
102
+
103
+ }
104
+
105
+
106
+ .app-logo {
107
+ display: block; position: fixed;
108
+ @include gpu_render;
109
+ background: #000;
110
+ color: #fff;
111
+ line-height: 30px;
112
+ // font-size: $font-size-xl;
113
+ padding: 10px 0;
114
+ top: 0; right: 0; bottom: auto; left: 0;
115
+ text-align: center;
116
+ transform: translateX( 0 ) ;
117
+
118
+ .toggl {
119
+ font-size: 20px;
120
+ width: 50px;
121
+ float: left;
122
+ text-align: center;
123
+ cursor: pointer;
124
+ }
125
+ .short-labl { display: none; }
126
+ .labl { display: block; }
127
+ }
128
+
129
+
130
+ .filter-aside {
131
+ left: auto; bottom: 0; right: 0;
132
+ top: 0;
133
+ width: $filterAside-width;
134
+ background: #999;
135
+ transform: translateX(.5 * $filterAside-width) ;
136
+ }
137
+
138
+
139
+
140
+ .right-aside {
141
+ background: #fff;
142
+ border: solid 1px $main-border-color;
143
+ border-radius: 3px;
144
+ right: 10px; top: 10px; bottom: 10px;
145
+ width: $infoAside-width;
146
+ z-index: 500;
147
+ transform: translateX($infoAside-width + $infoAside-margin) ;
148
+
149
+ .header {
150
+ line-height: 30px;
151
+ padding: 10px;
152
+ // font-size: $font-size-large;
153
+ color: $blue;
154
+ border-bottom: solid 1px #ccc;
155
+ h1, h2, h3, h4 {
156
+ // font-size: $font-size-large;
157
+ line-height: 30px;
158
+ padding: 0;
159
+ margin: 0;
160
+ }
161
+ .close {
162
+ display: block; position: absolute;
163
+ top: 7px; right: 7px;
164
+ width: 20px; height: 20px;
165
+ line-height: 20px;
166
+ text-align: center; vertical-align: middle;
167
+ text-shadow: 0 0 0 transparent;
168
+ }
169
+ &.with_avatar {
170
+ padding-right: 25px;
171
+ img.avatar {
172
+ max-width: 40px;
173
+ float: left;
174
+ margin: 0 7px 0 0;
175
+ }
176
+ h1, h2, h3, h4 {
177
+ line-height: 40px;
178
+ }
179
+ }
180
+ }
181
+ .body {
182
+ padding: 10px;
183
+ table.facts { margin: 0 auto; }
184
+ }
185
+ }
186
+
187
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
188
+ // Mobile:
189
+ body {
190
+ // mobile .. space for app-logo
191
+ &.app { padding-top: 50px; }
192
+
193
+ // mobile .. space for important_notice
194
+ &.with_important_notice {
195
+ &.app { padding-top: 80px; }
196
+ .app-logo { top: 30px; }
197
+ .main-aside { top: 30px; }
198
+ .right-aside { top: 90px; } // mmobile ( important_notice + app-logo )
199
+ &.with_info_aside {
200
+ .right-aside { transform: translateX( 0 ) ; }
201
+ }
202
+ }
203
+
204
+ // mobile .. main-aside is open
205
+ &.with_open_aside {
206
+ .main-content { transform: translateX( $appAside-width ) ; }
207
+ .main-aside {
208
+ transform: translateX( 0 ) ;
209
+ }
210
+ .app-logo {
211
+ transform: translateX( $appAside-width ) ;
212
+ .toggl { color: #069; }
213
+ }
214
+ }
215
+ &.with_filter_aside {
216
+ .filter-aside { transform: translateX( 0 ) ; }
217
+ // see step-xs-only !!!
218
+ // .main-content { transform: translateX( -1 * $filterAside-width ) ; }
219
+ // .app-logo { transform: translateX( -1 * $filterAside-width ) ; }
220
+ }
221
+ &.with_info_aside {
222
+ .right-aside {
223
+ transform: translateX( 0 ) ;
224
+ }
225
+ }
226
+
227
+ }
228
+
229
+
230
+
231
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
232
+ @include responsiveStep-sm {
233
+ body {
234
+ &.app {
235
+ padding-top: 0;
236
+ padding-left: $appAside-icn-width;
237
+
238
+ .main-aside { top: 50px; }
239
+ .right-aside { top: 10px; }
240
+ .filter-aside { left: $appAside-icn-width; top: 0; transform: translateX( -0.5 * $filterAside-width ) ; }
241
+ &.with_filter_aside {
242
+ padding-left: $appAside-icn-width + $filterAside-width;
243
+ .filter-aside { transform: translateX( 0 ) ; }
244
+ .main-content { transform: translateX( 0 ) ; }
245
+ }
246
+ &.with_important_notice {
247
+ padding-top: 30px;
248
+ .main-aside { top: 80px; }
249
+ .right-aside { top: 40px; }
250
+ }
251
+
252
+ }
253
+ &.with_open_aside {
254
+ .main-content { transform: translateX( 0 ) ; }
255
+ .main-aside { transform: translateX( 0 ) ; }
256
+ .app-logo { transform: translateX( 0 ) ; }
257
+ }
258
+ }
259
+
260
+ .app-logo {
261
+ width: $appAside-icn-width;
262
+ text-align: center;
263
+ .toggl { display: none; }
264
+ .labl { display: none; }
265
+ .short-labl { display: block; }
266
+ // &:hover {
267
+ // .labl { display: block; }
268
+ // .short-labl { display: none; }
269
+ // width: $appAside-width;
270
+ // @include border-right-radius( 5px );
271
+ // }
272
+ }
273
+ .main-aside {
274
+ width: $appAside-icn-width;
275
+ .labl { display: none; }
276
+ transform: translateX(0) ;
277
+
278
+ // &:hover, &:active {
279
+ // width: $appAside-width;
280
+ // .labl { display: block; }
281
+ // }
282
+
283
+ // .aside_lnk:hover {
284
+ // width: $appAside-width;
285
+ // .labl { display: block; }
286
+ // @include border-right-radius( 5px );
287
+ // }
288
+
289
+ }
290
+
291
+ }
292
+
293
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
294
+ @include responsiveStep-md {
295
+
296
+ body.app {
297
+ padding-left: $appAside-width;
298
+ .filter-aside { left: $appAside-width - $filterAside-width / 2; }
299
+ &.with_filter_aside {
300
+ .filter-aside { left: $appAside-width; }
301
+ padding-left: $appAside-width + $filterAside-width;
302
+ }
303
+ &.with_info_aside {
304
+ padding-right: $infoAside-width + 0.65rem;
305
+
306
+ .right-aside {
307
+ transform: translateX( 0 ) ;
308
+ }
309
+
310
+ }
311
+ }
312
+
313
+ .app-logo {
314
+ width: $appAside-width;
315
+ text-align: left;
316
+ .toggl { display: none; }
317
+ padding: 10px 20px;
318
+ .labl { display: block; }
319
+ .short-labl { display: none; }
320
+ }
321
+
322
+ .filter-aside { left: $appAside-width; }
323
+
324
+ .main-aside {
325
+ width: $appAside-width;
326
+ .labl { display: block; }
327
+ .aside_lnk:hover {
328
+ border-radius: 0;
329
+ }
330
+ }
331
+
332
+
333
+ .form-page-table {
334
+ display: table;
335
+ width: 100%;
336
+ & > .cell {
337
+ display: table-cell;
338
+ padding: 0 20px;
339
+ &:first-child { padding-left: 0; }
340
+ &:last-child { padding-right: 0; }
341
+ &.form {
342
+ width: 60%;
343
+ max-width: 600px;
344
+ }
345
+ &.helper {
346
+ width: 40%;
347
+ text-align: left;
348
+ }
349
+ }
350
+ }
351
+
352
+ }
353
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
354
+ @include responsiveStep-lg {
355
+
356
+ .form-page-table > .cell {
357
+ &.form { width: 50%; }
358
+ &.helper { width: 50%; }
359
+ }
360
+
361
+ }
362
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
363
+ @include responsiveStep-xl {
364
+
365
+ .form-page-table > .cell {
366
+ &.form { width: 40%; }
367
+ &.helper { width: 60%; }
368
+ }
369
+
370
+ }
371
+
372
+
373
+
374
+
375
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
376
+ // // // // // // // // // // // // // // // // only - steps // // // // // // // // // // // // // // // // //
377
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
378
+ @include responsiveStep-xs-only {
379
+
380
+ body.app {
381
+ &.with_filter_aside {
382
+ .main-content { transform: translateX( -1 * $filterAside-width ) ; }
383
+ .app-logo { transform: translateX( -1 * $filterAside-width ) ; }
384
+ }
385
+ }
386
+
387
+ }
388
+ @include responsiveStep-sm-only {
389
+
390
+ .main-aside {
391
+
392
+ .bottom-btn {
393
+ left: 10px; bottom: 20px; right: 10px;
394
+ padding: 2px 2px 5px;
395
+ // font-size: $font-size-large;
396
+ // font-weight: 600;
397
+ .small_labl { display: block !important; }
398
+ .big_labl { display: none; }
399
+ }
400
+
401
+ }
402
+ }
403
+
404
+