sigbit_admin_rails 0.0.4.1 → 0.0.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9675ed0e51c8d1354dbe058973496b92c2850dc9
4
- data.tar.gz: 6c3c31fc81960b815040374c0cef2197ee4c9027
3
+ metadata.gz: b556abf2edbfb7c7834f11e9ad574b611b8cb998
4
+ data.tar.gz: 711e7dd5bb3df7f21cec29de64656ba9e520d86f
5
5
  SHA512:
6
- metadata.gz: 7b34efbe05abcfff6db455f5d8ac95fb022aba49416b438c48f6579110cb9283914ee0b953eb509899f527202937458e945bf27502282fb6b2f829c1bc8309c8
7
- data.tar.gz: 5b45307444d9b503cea27be6c363c76421e08162acd122c65a3b29cb83d3b8487165d3768897f28791c805e8fb16416d683e7bc176df2591de5adaf8e9bbc2fd
6
+ metadata.gz: b9eb12310b2bbabd0d3b88cb0b409b007eb5ea19ea883a52930d0bfd63bfb8850e30b99a91543882dc20edac0436114f314d2894b3aa30d7c355a4743ad37ef7
7
+ data.tar.gz: 07393ef1b47659fb6e9e48f3c82c2b094d2392485c46ce29fb3760f696277f2adb1426c60153928ed0b41f85918030aa4a08670c60545b1a660701cb9bd8237e
@@ -1,8 +1,8 @@
1
1
  #header-navbar {
2
2
  height: $header-navbar-height;
3
- padding: $spacer/2 $spacer $spacer/2 0;
3
+ padding: $header-navbar-padding;
4
4
  background: $header-navbar-bg;
5
- border-bottom: 1px solid $header-navbar-bottom-border;
5
+ border-bottom: 1px solid $header-navbar-border-color;
6
6
  -webkit-transform-style: preserve-3d;
7
7
  -moz-transform-style: preserve-3d;
8
8
  transform-style: preserve-3d;
@@ -25,8 +25,8 @@
25
25
  top: 50%;
26
26
  left: 50%;
27
27
  @include transform(translate(-50%, -50%));
28
- width: 25%;
29
- height: 65%;
28
+ width: $header-navbar-logotype-width;
29
+ height: $header-navbar-logotype-height;
30
30
  background: transparent url($header-navbar-logotype) no-repeat center center;
31
31
  background-size: contain;
32
32
 
@@ -48,29 +48,26 @@ body {
48
48
 
49
49
  .sidebar-nav {
50
50
  width: $sidebar-width;
51
- margin: $spacer 0 0 0;
51
+ margin: $sidebar-nav-margin;
52
52
  padding: 0;
53
53
  list-style: none;
54
54
  }
55
55
 
56
56
  .sidebar-nav li {
57
- text-indent: $spacer;
58
- line-height: 50px;
59
-
60
- .active {
61
- color: white !important;
62
- }
57
+ text-indent: $sidebar-nav-li-textindent;
58
+ line-height: $sidebar-nav-li-lineheight;
59
+ margin: $sidebar-nav-li-margin;
63
60
 
64
61
  a {
65
62
  position: relative;
66
63
  display: block;
67
64
  text-decoration: none;
68
- color: rgba(white,0.6);
65
+ color: $sidebar-nav-link-color;
69
66
 
70
67
  &:hover {
71
68
  text-decoration: none;
72
- color: #fff;
73
- background: lighten($sidebar-bg,5%);
69
+ color: $sidebar-nav-link-color-hover;
70
+ background: $sidebar-nav-link-bg-hover;
74
71
  }
75
72
  &:active, &:focus { text-decoration: none; }
76
73
 
@@ -95,28 +92,31 @@ body {
95
92
  }
96
93
 
97
94
  &[aria-expanded="true"] {
98
- background: lighten($sidebar-bg, 5%);
95
+ background: $sidebar-nav-link-bg-hover;
99
96
  .fa-chevron-right {
100
97
  @include transform(translateY(-50%) rotate(90deg));
101
98
  }
102
99
  }
103
100
  }
101
+ a.active {
102
+ color: $sidebar-nav-link-color-active;
103
+ }
104
104
 
105
105
  ul.submenu {
106
- background: darken($sidebar-bg,6%);
106
+ background: $sidebar-nav-submenu-bg;
107
107
  padding: 0;
108
108
 
109
109
  li {
110
- text-indent: $spacer*1.5;
110
+ text-indent: $sidebar-nav-li-textindent*1.5;
111
111
  > ul.submenu li {
112
- text-indent: $spacer*2;
112
+ text-indent: $sidebar-nav-li-textindent*2;
113
113
  }
114
114
  a[aria-expanded="true"] {
115
- background: darken($sidebar-bg,3%);
115
+ background: $sidebar-nav-submenu-link-bg-hover;
116
116
  }
117
117
  }
118
118
  a:hover {
119
- background: darken($sidebar-bg,3%);
119
+ background: $sidebar-nav-submenu-link-bg-hover;
120
120
  }
121
121
  }
122
122
 
@@ -127,9 +127,9 @@ body {
127
127
  display: block;
128
128
  width: 100%;
129
129
  height: $header-navbar-height;
130
- background: darken($sidebar-bg,5%) url($sidebar-logotype) no-repeat $spacer center;
131
- background-size: auto 50%;
132
- border-bottom: 1px solid darken($sidebar-bg,25%);
130
+ background: $sidebar-brand-bg url($sidebar-logotype) no-repeat $sidebar-logotype-position;
131
+ background-size: $sidebar-logotype-size;
132
+ border-bottom: 1px solid $sidebar-brand-border-color;
133
133
  }
134
134
 
135
135
 
@@ -1,6 +1,6 @@
1
1
  .action-toolbar {
2
2
  position: relative;
3
- padding: $navbar-padding-horizontal 0;
3
+ padding: $action-toolbar-padding;
4
4
  @include clearfix;
5
5
 
6
6
  > * {
@@ -0,0 +1,16 @@
1
+ @import 'bourbon';
2
+ @import 'variables';
3
+ @import "node_modules/bootstrap/scss/bootstrap";
4
+
5
+ @import 'mixins/nestable';
6
+
7
+ @import 'components/header-navbar';
8
+ @import 'components/sidebar';
9
+ @import 'components/page-header';
10
+ @import 'components/card';
11
+ @import 'components/btn-circle';
12
+ @import 'components/small-action-btns';
13
+ @import 'components/action-toolbar';
14
+ @import 'components/file-input';
15
+ @import 'components/nestable';
16
+ @import 'components/sortable';
@@ -673,16 +673,45 @@ $pre-scrollable-max-height: 340px !default;
673
673
  // Logotypes
674
674
  // On mobile the sidebar logotype is replaced with the header navbar logotype
675
675
 
676
- $sidebar-logotype: 'http://d1i5cf397ceebi.cloudfront.net/assets/main_logo-4ab62363897ec9168acbb5507e91e7db4910b8006237f4b1be1fb06339a0395a.png'!default;
677
- $header-navbar-logotype: 'http://www.significantbit.se/assets/logotype-2b1fd527c1bed395289dcef8bdf490100f0c3303786007178694802beb83fbc8.svg'!default;
676
+ $sidebar-logotype: "http://www.significantbit.se/assets/logotype-2b1fd527c1bed395289dcef8bdf490100f0c3303786007178694802beb83fbc8.svg" !default;
677
+ $sidebar-logotype-position: $spacer center !default;
678
+ $sidebar-logotype-size: auto 50% !default;
679
+
680
+ $header-navbar-logotype: $sidebar-logotype !default;
681
+ $header-navbar-logotype-width: 25% !default;
682
+ $header-navbar-logotype-height: 65% !default;
683
+
678
684
 
679
685
  // Sidebar
680
686
 
681
- $sidebar-width: 250px!default;
682
- $sidebar-bg: #2d2f40!default;
687
+ $sidebar-bg: #2d2f40 !default;
688
+ $sidebar-brand-bg: darken($sidebar-bg,5%) !default;
689
+ $sidebar-brand-border-color: darken($sidebar-brand-bg,25%) !default;
690
+
691
+ $sidebar-width: 250px !default;
692
+
693
+ $sidebar-nav-margin: $spacer 0 0 0 !default;
694
+ $sidebar-nav-li-margin: 0 !default;
695
+ $sidebar-nav-li-lineheight: 50px !default;
696
+ $sidebar-nav-li-textindent: $spacer !default;
697
+
698
+ $sidebar-nav-link-color: rgba(white,0.6) !default;
699
+ $sidebar-nav-link-color-hover: white !default;
700
+ $sidebar-nav-link-bg-hover: lighten($sidebar-bg,5%) !default;
701
+ $sidebar-nav-link-color-active: white !default;
702
+
703
+ $sidebar-nav-submenu-bg: darken($sidebar-bg,6%) !default;
704
+ $sidebar-nav-submenu-link-bg-hover: darken($sidebar-bg,3%) !default;
705
+
683
706
 
684
707
  // Header-navbar
685
708
 
686
- $header-navbar-height: 60px!default;
687
- $header-navbar-bg: white!default;
688
- $header-navbar-bottom-border: darken($gray-lighter,10%)!default;
709
+ $header-navbar-height: 60px !default;
710
+ $header-navbar-padding: $spacer/2 $spacer $spacer/2 0 !default;
711
+ $header-navbar-bg: white !default;
712
+ $header-navbar-border-color: darken($gray-lighter,10%) !default; // border-color ist för bottom-border
713
+
714
+
715
+ // Action toolbar
716
+
717
+ $action-toolbar-padding: $spacer 0 !default;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sigbit_admin_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.1
4
+ version: 0.0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ante Wall
@@ -62,6 +62,7 @@ files:
62
62
  - assets/stylesheets/components/sortable.scss
63
63
  - assets/stylesheets/mixins/nestable.scss
64
64
  - assets/stylesheets/sigbit-admin.scss
65
+ - assets/stylesheets/style.scss
65
66
  - assets/stylesheets/variables.scss
66
67
  - lib/sigbit_admin_rails.rb
67
68
  - lib/sigbit_admin_rails/helpers/application_helper.rb