rails_admin_standard_theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +29 -0
- data/Rakefile +19 -0
- data/lib/rails_admin_standard_theme.rb +5 -0
- data/lib/rails_admin_standard_theme/engine.rb +4 -0
- data/lib/rails_admin_standard_theme/version.rb +3 -0
- data/vendor/assets/images/rails_admin/themes/standard_theme/feature_tile.gif +0 -0
- data/vendor/assets/images/rails_admin/themes/standard_theme/header_tile.gif +0 -0
- data/vendor/assets/stylesheets/rails_admin/themes/standard_theme/mixins.scss +8 -0
- data/vendor/assets/stylesheets/rails_admin/themes/standard_theme/theming.scss +103 -0
- data/vendor/assets/stylesheets/rails_admin/themes/standard_theme/variables.scss +161 -0
- metadata +69 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 635d4c64f4238ce4784d446c02b114b3e3baa409946d29bc0cc94877afa68d09
|
4
|
+
data.tar.gz: 15190757c62f09cf19a40c08ffe0744933cd13a547cc47f5a3239d4e54b91171
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4aaff6031ab02ff521e5e22daab889dcc70518b4987c85e19900ee7945521fede21adb2cf34f1b9aa3223703bd7420365e5b4dfa6f3d22579e276c719f9cf882
|
7
|
+
data.tar.gz: 3876571a8cc505a78a1e762f358fa13b56d847a4e3fafe217ed0ebc1c758652be3118a5f044e7c526ba19e07e070da4bdc117c485cab393a248e12a3904238c6
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2018 Dachi Natsvlishvili
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# RailsAdminStandardTheme
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'rails_admin_standard_theme'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install rails_admin_standard_theme
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
29
|
+
# rails_admin_standard_theme
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'RailsAdminStandardTheme'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
load 'rails/tasks/statistics.rake'
|
18
|
+
|
19
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/*
|
2
|
+
Customize Sass mixins from Twitter-Bootstrap/RailsAdmin theme or add new ones for your own use.
|
3
|
+
|
4
|
+
Available mixins to use/override:
|
5
|
+
|
6
|
+
https://github.com/twbs/bootstrap-sass/tree/master/assets/stylesheets/bootstrap/mixins
|
7
|
+
https://github.com/sferik/rails_admin/blob/master/app/assets/stylesheets/rails_admin/base/mixins.scss
|
8
|
+
*/
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/*
|
2
|
+
Customize RailsAdmin theme here.
|
3
|
+
|
4
|
+
Look at the markup in RailsAdmin and go there to get inspiration from:
|
5
|
+
|
6
|
+
http://getbootstrap.com
|
7
|
+
|
8
|
+
Test me: (actual color should be the one defined in variables.scss if you did)
|
9
|
+
|
10
|
+
body { background-color: $link-color; }
|
11
|
+
*/
|
12
|
+
|
13
|
+
body {
|
14
|
+
text-align: center;
|
15
|
+
font-family: Helvetica, Arial, sans-serif;
|
16
|
+
font-size: 18px;
|
17
|
+
line-height: 1.5em;
|
18
|
+
background: #fff;
|
19
|
+
color: $navbar-inverse-link-disabled-color;
|
20
|
+
}
|
21
|
+
|
22
|
+
/* temp */
|
23
|
+
body.rails_admin .form-horizontal textarea {
|
24
|
+
width: 100%;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* navbar */
|
28
|
+
.navbar-default {
|
29
|
+
background: #c52f24;
|
30
|
+
background-image: image-url("rails_admin/themes/standard_theme/header_tile.gif");
|
31
|
+
background-repeat: repeat-x;
|
32
|
+
border: 0;
|
33
|
+
}
|
34
|
+
/* navbar left part */
|
35
|
+
.navbar-default .navbar-brand, .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:active {
|
36
|
+
font-size: 30px;
|
37
|
+
line-height: 42px;
|
38
|
+
color: #fff;
|
39
|
+
}
|
40
|
+
.navbar-brand small {
|
41
|
+
color: #ef938e;
|
42
|
+
}
|
43
|
+
/* navbar links */
|
44
|
+
.navbar-default .navbar-nav > li > a,
|
45
|
+
.navbar-default .navbar-nav > li > a:visited {
|
46
|
+
line-height:50px;
|
47
|
+
color: #fff;
|
48
|
+
}
|
49
|
+
.navbar-default .navbar-nav > li > a:hover,
|
50
|
+
.navbar-default .navbar-nav > li > a:active
|
51
|
+
{
|
52
|
+
color: #fff;
|
53
|
+
text-decoration: underline;
|
54
|
+
}
|
55
|
+
/* logout button */
|
56
|
+
#secondary-navigation .label-danger {
|
57
|
+
padding: 0.5em 1.5em;
|
58
|
+
border-radius: 1em;
|
59
|
+
-webkit-border-radius: 1em;
|
60
|
+
-moz-border-radius: 1em;
|
61
|
+
background: #980905;
|
62
|
+
color: #fff;
|
63
|
+
}
|
64
|
+
|
65
|
+
/* header */
|
66
|
+
.content .page-header {
|
67
|
+
background: #d6e9f5;
|
68
|
+
margin-top: -20px;
|
69
|
+
margin-right: -15px;
|
70
|
+
margin-left: -251px;
|
71
|
+
padding-top: 1px;
|
72
|
+
font-weight: 1000;
|
73
|
+
margin-top:2px;
|
74
|
+
z-index:8;
|
75
|
+
}
|
76
|
+
.content .page-header h1 {
|
77
|
+
font-size: 2.1428em;
|
78
|
+
line-height: 1em;
|
79
|
+
margin: 0.7em 0 .2333em;
|
80
|
+
font-weight: bold;
|
81
|
+
color: #333;
|
82
|
+
}
|
83
|
+
|
84
|
+
.content {
|
85
|
+
font-size:15px;
|
86
|
+
}
|
87
|
+
/* container after nav */
|
88
|
+
.container-fluid > .row {
|
89
|
+
background-image: image-url("rails_admin/themes/standard_theme/feature_tile.gif"); background-repeat: repeat-x;
|
90
|
+
background-position-y:0px;
|
91
|
+
}
|
92
|
+
|
93
|
+
/* dropdown header (left nav) */
|
94
|
+
body.rails_admin .sidebar-nav { background-color: transparent !important;margin-top:2px;z-index:9}
|
95
|
+
body.rails_admin .sidebar-nav ul { background: #fff !important; margin:10px;argin-left:0px;margin-right:0px;
|
96
|
+
text-align:left;}
|
97
|
+
li.dropdown-header {font-size:23px;color:#333 !important;text-transform:unset !important;}
|
98
|
+
.sidebar-nav a, .sidebar-nav a:visited { background: none; color: #980905; }
|
99
|
+
.sidebar-nav li.active a, .sidebar-nav li.active a:hover, .sidebar-nav li.active a:active,
|
100
|
+
.sidebar-nav li.active a:focus { background: none;
|
101
|
+
color: #980905; text-decoration:underline; font-weight:bold; }
|
102
|
+
.sidebar-nav li a:hover, .sidebar-nav li a:focus, .sidebar-nav li a:active { background: none;
|
103
|
+
color: #980905; font-weight:bold; text-decoration: underline }
|
@@ -0,0 +1,161 @@
|
|
1
|
+
/*
|
2
|
+
Customize Sass variables from Twitter-Bootstrap/RailsAdmin theme or add new ones for your own use.
|
3
|
+
|
4
|
+
Available variables to use/override:
|
5
|
+
|
6
|
+
https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_variables.scss
|
7
|
+
https://github.com/sferik/rails_admin/blob/master/app/assets/stylesheets/rails_admin/base/variables.scss
|
8
|
+
|
9
|
+
Test me: pink links
|
10
|
+
|
11
|
+
$link-color: #F0F;
|
12
|
+
*/
|
13
|
+
|
14
|
+
$navbar-height: 80px;
|
15
|
+
|
16
|
+
$brand-primary: #980905;
|
17
|
+
$brand-success: #c5e6bf ;
|
18
|
+
$brand-info: #bbccd7;
|
19
|
+
$brand-warning: #fff9da ;
|
20
|
+
$brand-danger: #ffaeae ;
|
21
|
+
|
22
|
+
//** Global textual link color.
|
23
|
+
$link-color: $brand-primary;
|
24
|
+
//** Link hover color set via `darken()` function.
|
25
|
+
$link-hover-color: darken($link-color, 15%);
|
26
|
+
//** Link hover decoration.
|
27
|
+
$link-hover-decoration: underline;
|
28
|
+
|
29
|
+
$state-success-text: #333;
|
30
|
+
$state-success-bg: #d0f3ca;
|
31
|
+
$state-success-border: $state-success-bg;
|
32
|
+
|
33
|
+
$state-info-text: #333;
|
34
|
+
$state-info-bg: #d6e9f5;
|
35
|
+
$state-info-border: $state-info-bg;
|
36
|
+
|
37
|
+
$state-warning-text: #333;
|
38
|
+
$state-warning-bg: #fff9da;
|
39
|
+
$state-warning-border: $state-warning-bg;
|
40
|
+
|
41
|
+
$state-danger-text: #333;
|
42
|
+
$state-danger-bg: #ffaeae;
|
43
|
+
$state-danger-border: $state-danger-bg;
|
44
|
+
|
45
|
+
$alert-padding: 15px;
|
46
|
+
$alert-border-radius: $border-radius-base;
|
47
|
+
$alert-link-font-weight: bold;
|
48
|
+
|
49
|
+
$alert-success-bg: $state-success-bg;
|
50
|
+
$alert-success-text: $state-success-text;
|
51
|
+
$alert-success-border: $state-success-border;
|
52
|
+
|
53
|
+
$alert-info-bg: $state-info-bg;
|
54
|
+
$alert-info-text: $state-info-text;
|
55
|
+
$alert-info-border: $state-info-border;
|
56
|
+
|
57
|
+
$alert-warning-bg: $state-warning-bg;
|
58
|
+
$alert-warning-text: $state-warning-text;
|
59
|
+
$alert-warning-border: $state-warning-border;
|
60
|
+
|
61
|
+
$alert-danger-bg: $state-danger-bg;
|
62
|
+
$alert-danger-text: $state-danger-text;
|
63
|
+
$alert-danger-border: $state-danger-border;
|
64
|
+
|
65
|
+
$border-radius-base: 0px;
|
66
|
+
$border-radius-large: 0px;
|
67
|
+
$border-radius-small: 0px;
|
68
|
+
|
69
|
+
$alert-border-radius: $border-radius-base;
|
70
|
+
$alert-success-border: $state-success-border;
|
71
|
+
$alert-info-border: $state-info-border;
|
72
|
+
$alert-warning-border: $state-warning-border;
|
73
|
+
$alert-danger-border: $state-danger-border;
|
74
|
+
|
75
|
+
$lighter-gray: #f2f2f2;
|
76
|
+
$table-bg-hover: $lighter-gray;
|
77
|
+
$dropdown-link-hover-bg: $lighter-gray;
|
78
|
+
$progress-bg: $lighter-gray;
|
79
|
+
$list-group-hover-bg: $lighter-gray;
|
80
|
+
$panel-footer-bg: $lighter-gray;
|
81
|
+
$panel-default-heading-bg: $lighter-gray;
|
82
|
+
$well-bg: $lighter-gray;
|
83
|
+
$breadcrumb-bg: $lighter-gray;
|
84
|
+
$pre-bg: $lighter-gray;
|
85
|
+
|
86
|
+
$btn-font-weight: normal ;
|
87
|
+
|
88
|
+
$btn-default-color: #333 ;
|
89
|
+
$btn-default-bg: #fff ;
|
90
|
+
$btn-default-border: #ccc ;
|
91
|
+
|
92
|
+
$btn-primary-color: #fff ;
|
93
|
+
$btn-primary-bg: $brand-primary ;
|
94
|
+
$btn-primary-border: darken($btn-primary-bg, 5%) ;
|
95
|
+
|
96
|
+
$btn-success-color: #fff ;
|
97
|
+
$btn-success-bg: $brand-success ;
|
98
|
+
$btn-success-border: darken($btn-success-bg, 5%) ;
|
99
|
+
|
100
|
+
$btn-info-color: #fff ;
|
101
|
+
$btn-info-bg: $brand-info ;
|
102
|
+
$btn-info-border: darken($btn-info-bg, 5%) ;
|
103
|
+
|
104
|
+
$btn-warning-color: #fff ;
|
105
|
+
$btn-warning-bg: $brand-warning ;
|
106
|
+
$btn-warning-border: darken($btn-warning-bg, 5%) ;
|
107
|
+
|
108
|
+
$btn-danger-color: #fff ;
|
109
|
+
$btn-danger-bg: $brand-danger ;
|
110
|
+
$btn-danger-border: darken($btn-danger-bg, 5%) ;
|
111
|
+
|
112
|
+
$btn-link-disabled-color: $gray-light ;
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
//** Background color of the whole progress component
|
117
|
+
$progress-bg: #f5f5f5;
|
118
|
+
//** Progress bar text color
|
119
|
+
$progress-bar-color: #fff;
|
120
|
+
//** Variable for setting rounded corners on progress bar.
|
121
|
+
$progress-border-radius: $border-radius-base;
|
122
|
+
|
123
|
+
//** Default progress bar color
|
124
|
+
$progress-bar-bg: $brand-primary;
|
125
|
+
//** Success progress bar color
|
126
|
+
$progress-bar-success-bg: $brand-success;
|
127
|
+
//** Warning progress bar color
|
128
|
+
$progress-bar-warning-bg: $brand-warning;
|
129
|
+
//** Danger progress bar color
|
130
|
+
$progress-bar-danger-bg: $brand-danger;
|
131
|
+
//** Info progress bar color
|
132
|
+
$progress-bar-info-bg: $brand-info;
|
133
|
+
|
134
|
+
|
135
|
+
$label-default-bg: $gray-light;
|
136
|
+
//** Primary label background color
|
137
|
+
$label-primary-bg: $brand-primary;
|
138
|
+
//** Success label background color
|
139
|
+
$label-success-bg: $brand-success;
|
140
|
+
//** Info label background color
|
141
|
+
$label-info-bg: $brand-info;
|
142
|
+
//** Warning label background color
|
143
|
+
$label-warning-bg: $brand-warning;
|
144
|
+
//** Danger label background color
|
145
|
+
$label-danger-bg: $brand-danger;
|
146
|
+
|
147
|
+
$pagination-color: $link-color;
|
148
|
+
$pagination-bg: #fff;
|
149
|
+
$pagination-border: #ddd;
|
150
|
+
|
151
|
+
$pagination-hover-color: $link-hover-color;
|
152
|
+
$pagination-hover-bg: $gray-lighter;
|
153
|
+
$pagination-hover-border: #ddd;
|
154
|
+
|
155
|
+
$pagination-active-color: #fff;
|
156
|
+
$pagination-active-bg: $brand-primary;
|
157
|
+
$pagination-active-border: $brand-primary;
|
158
|
+
|
159
|
+
$pagination-disabled-color: $gray-light;
|
160
|
+
$pagination-disabled-bg: #fff;
|
161
|
+
$pagination-disabled-border: #ddd;
|
metadata
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_admin_standard_theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dachi Natsvlishvili
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.2.0
|
27
|
+
description: RailsAdmin theme that resembles standard Ruby on Rails style
|
28
|
+
email:
|
29
|
+
- dachinat@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- MIT-LICENSE
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- lib/rails_admin_standard_theme.rb
|
38
|
+
- lib/rails_admin_standard_theme/engine.rb
|
39
|
+
- lib/rails_admin_standard_theme/version.rb
|
40
|
+
- vendor/assets/images/rails_admin/themes/standard_theme/feature_tile.gif
|
41
|
+
- vendor/assets/images/rails_admin/themes/standard_theme/header_tile.gif
|
42
|
+
- vendor/assets/stylesheets/rails_admin/themes/standard_theme/mixins.scss
|
43
|
+
- vendor/assets/stylesheets/rails_admin/themes/standard_theme/theming.scss
|
44
|
+
- vendor/assets/stylesheets/rails_admin/themes/standard_theme/variables.scss
|
45
|
+
homepage:
|
46
|
+
licenses:
|
47
|
+
- MIT
|
48
|
+
metadata: {}
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
requirements: []
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 2.7.6
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: Standard theme for RailsAdmin
|
69
|
+
test_files: []
|