lotus_admin 0.1.1 → 0.1.2

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: d373755d75c2d8a2b2ed104a6bea046b3452f305
4
- data.tar.gz: 3b9dadb41b968b1988ed242798436ddc80ef1eed
3
+ metadata.gz: 17ebcae5c9385f7abe94cdcba4f62412177ebd09
4
+ data.tar.gz: ece5e079729dfaa9e003f33df15b42640f72c5b1
5
5
  SHA512:
6
- metadata.gz: 3b1106f14af17dec86a9ef3e30b679d77e22fce50fbf1375f8addf459c629033ad7ae9ae53891e781b3bd4b951525790a69ee341ce8e465d5e71f4e097fdc153
7
- data.tar.gz: 2d18b1667a8cd6beb58afbc46b10bcffa534667d9a4e7da20d66ed1fef18cc5c9859e42627838e2ba887bcdebaa504168146f72fff6c6968787e4beb1dc24ada
6
+ metadata.gz: 427d76a76ca1cdaefc8352c1b1a1e15996ca3cc4e3501f0f51a0a73b28dd4d2dd5734802e7528082a68b604f8550816b6c1407d9ad3dc438458f70af2361a0a1
7
+ data.tar.gz: 5c967997e73de7994576d182e0ca663ca8cd336833c6246849aa8a66b21df7e8574639d1df91a011fa2a1d807072ffde1651480e6e024f6c105d38923dc15286
data/README.md CHANGED
@@ -44,6 +44,11 @@ $> rake lotus_admin:seed
44
44
 
45
45
  You can now login at [http://localhost:3000/admin](http://localhost:3000/admin).
46
46
 
47
+ ## Theme Customization
48
+ There are many partials and SCSS variables that can be overwritten to customize the theme without writing a lot of custom markup.
49
+
50
+ To get started, provide any SCSS variables in a file at `app/assets/stylesheets/lotus_admin/_variables.scss`.
51
+
47
52
  ## Contributing
48
53
  Contribution directions go here.
49
54
 
@@ -0,0 +1 @@
1
+ // Provide any bootstrap, font-awesome, or theme variables here to customize
@@ -1,6 +1,5 @@
1
1
  @import "lotus_admin/theme/inc/variables";
2
-
3
- $footer-height: 70px;
2
+ @import "lotus_admin/variables";
4
3
 
5
4
  @import "bootstrap";
6
5
  @import "font-awesome";
@@ -7,6 +7,10 @@ module LotusAdmin
7
7
  g.fixture_replacement :factory_bot, dir: 'spec/factories'
8
8
  end
9
9
 
10
+ config.to_prepare do
11
+ Rails.application.config.assets.precompile += %w( lotus_admin/application.js lotus_admin/application.css )
12
+ end
13
+
10
14
  initializer :append_migrations do |app|
11
15
  # This prevents migrations from being loaded twice from the inside of the gem itself (dummy test app)
12
16
  if app.root.to_s !~ /#{root}/
@@ -1,3 +1,3 @@
1
1
  module LotusAdmin
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  #header {
2
2
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
3
3
  min-height: $header-height;
4
- background-color: $m-blue;
4
+ background-color: $header-background-color;
5
5
  @include user-select(none);
6
6
 
7
7
  position: fixed;
@@ -228,4 +228,4 @@
228
228
  :-moz-full-screen [data-ma-action="fullscreen"] { display: none; }
229
229
  :-ms-fullscreen [data-ma-action="fullscreen"] { display: none; }
230
230
  :full-screen [data-ma-action="fullscreen"] { display: none; }
231
- :fullscreen [data-ma-action="fullscreen"] { display: none; }
231
+ :fullscreen [data-ma-action="fullscreen"] { display: none; }
@@ -164,7 +164,7 @@ $ace: #F7F7F7;
164
164
  --------------------------*/
165
165
  $sidebar-left-width: 268px;
166
166
  $sidebar-right-width: 280px;
167
- $footer-height: 110px;
167
+ $footer-height: 70px;
168
168
  $header-height: 70px;
169
169
 
170
170
 
@@ -172,3 +172,9 @@ $header-height: 70px;
172
172
  Card
173
173
  --------------------------*/
174
174
  $card-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
175
+
176
+
177
+ /*-------------------------
178
+ Header
179
+ --------------------------*/
180
+ $header-background-color: $m-blue;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Millsaps-Brewer
@@ -261,6 +261,7 @@ files:
261
261
  - app/assets/config/lotus_admin_manifest.js
262
262
  - app/assets/images/lotus_admin/profile-menu.png
263
263
  - app/assets/javascripts/lotus_admin/application.js
264
+ - app/assets/stylesheets/lotus_admin/_variables.scss
264
265
  - app/assets/stylesheets/lotus_admin/application.css.scss
265
266
  - app/assets/stylesheets/lotus_admin/components/_alerts.scss
266
267
  - app/assets/stylesheets/lotus_admin/components/_all.scss