magic_stylez 0.0.0.44 → 0.0.0.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76e55644201959c252c9d1f98c5de32eba4ecdd3
4
- data.tar.gz: 3343846bf08c293b7d8d5db4edeaa40536db49c3
3
+ metadata.gz: f2e95832a24971ec4038d58c501913bdbeb14fb5
4
+ data.tar.gz: 9cc18b7a91a11d20e71c939eeaa15b4e3e68b01b
5
5
  SHA512:
6
- metadata.gz: 3e0381f19247640fc444dff710b6a61f21b8262808efbade41c51cab16a6814a0eee9bc682d1cdadfe8620f14bd16aa51c280ece9e07d85151972de9dba6e8fa
7
- data.tar.gz: 89659086531e7c48c1791fb0134d969807a59e4bfee783e9b13bb6092d9e372fd0a0ca06209952c6a93a82261bb376648859d377782739a85e3121e8601e060a
6
+ metadata.gz: 566075cdae4788c7a1ab9e480ca55ea9e43dd6312bda324402e01eddd5fa0799b9848c19fbd728c9f633b2f859ce733552522c265735b9a3be2aef4a781ecbba
7
+ data.tar.gz: 941d153f615592015be4287272846bb1b78b594775e567d3bb5bbecf7eb7747425e8316a283488ea116adfc1b28bc087ddc7d17ff907ab9cc98e0a57ef9caa1c
@@ -1,3 +1,3 @@
1
1
  module MagicStylez
2
- VERSION = "0.0.0.44"
2
+ VERSION = "0.0.0.45"
3
3
  end
@@ -35,6 +35,15 @@
35
35
  z-index: $zindex-application-notice;
36
36
  }
37
37
 
38
+ @mixin calculate_notice_top( $that-header-height: 50px ) {
39
+ padding-top: $important-notice-height + $that-header-height;
40
+ .application_notice { top: $application-notice-top + $important-notice-height + $that-header-height; }
41
+ &.fixed-sub-nav {
42
+ padding-top: $important-notice-height + $that-header-height + $subnav-height;
43
+ .application_notice { top: $application-notice-top + $important-notice-height + $that-header-height + $subnav-height; }
44
+ }
45
+ }
46
+
38
47
 
39
48
  body, #body, #container, .main-content, .main_content {
40
49
 
@@ -50,25 +59,29 @@ body, #body, #container, .main-content, .main_content {
50
59
 
51
60
  .application_notice { top: $application-notice-top + $important-notice-height; }
52
61
 
53
- &.fixed-nav-xs {
54
- padding-top: $important-notice-height + $navbar-height-xs;
55
- .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-xs; }
62
+ &.fixed-nav-xs { @include calculate_notice_top( $navbar-height-xs );
63
+ // padding-top: $important-notice-height + $navbar-height-xs;
64
+ // .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-xs; }
65
+ // &.fixed-sub-nav {
66
+ // padding-top: $important-notice-height + $navbar-height-xs;
67
+ // .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-xs; }
68
+ // }
56
69
  }
57
- &.fixed-nav-sm {
58
- padding-top: $important-notice-height + $navbar-height-sm;
59
- .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-sm; }
70
+ &.fixed-nav-sm { @include calculate_notice_top( $navbar-height-sm );
71
+ // padding-top: $important-notice-height + $navbar-height-sm;
72
+ // .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-sm; }
60
73
  }
61
- &.fixed-nav {
62
- padding-top: $important-notice-height + $navbar-height;
63
- .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height; }
74
+ &.fixed-nav { @include calculate_notice_top( $navbar-height );
75
+ // padding-top: $important-notice-height + $navbar-height;
76
+ // .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height; }
64
77
  }
65
- &.fixed-nav-lg {
66
- padding-top: $important-notice-height + $navbar-height-lg;
67
- .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-lg; }
78
+ &.fixed-nav-lg { @include calculate_notice_top( $navbar-height-lg );
79
+ // padding-top: $important-notice-height + $navbar-height-lg;
80
+ // .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-lg; }
68
81
  }
69
- &.fixed-nav-xl {
70
- padding-top: $important-notice-height + $navbar-height-xl;
71
- .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-xl; }
82
+ &.fixed-nav-xl { @include calculate_notice_top( $navbar-height-xl );
83
+ // padding-top: $important-notice-height + $navbar-height-xl;
84
+ // .application_notice { top: $application-notice-top + $important-notice-height + $navbar-height-xl; }
72
85
  }
73
86
 
74
87
  .fixed-top, .navbar-fixed-top { top: $important-notice-height; }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_stylez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.44
4
+ version: 0.0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel