the_role 1.6.7 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -1
- data/app/assets/stylesheets/admin_the_role.css +1 -2
- data/app/assets/stylesheets/{custom.scss → custom.css} +0 -0
- data/app/assets/stylesheets/{headers.scss → headers.css} +0 -3
- data/app/assets/stylesheets/role_base.css +1739 -0
- data/app/controllers/admin/role_sections_controller.rb +2 -0
- data/app/controllers/admin/roles_controller.rb +1 -0
- data/config/locales/es.yml +26 -26
- data/lib/the_role/version.rb +1 -1
- data/lib/the_role.rb +0 -2
- data/the_role.gemspec +0 -6
- metadata +8 -71
- data/app/assets/stylesheets/alerts.less +0 -58
- data/app/assets/stylesheets/button-groups.less +0 -191
- data/app/assets/stylesheets/buttons.less +0 -191
- data/app/assets/stylesheets/close.less +0 -29
- data/app/assets/stylesheets/dropdowns.less +0 -143
- data/app/assets/stylesheets/forms.less +0 -583
- data/app/assets/stylesheets/grid.less +0 -5
- data/app/assets/stylesheets/layouts.less +0 -17
- data/app/assets/stylesheets/mix.scss +0 -41
- data/app/assets/stylesheets/mixins.less +0 -646
- data/app/assets/stylesheets/role_set.less +0 -138
- data/app/assets/stylesheets/scaffolding.less +0 -29
- data/app/assets/stylesheets/variables.less +0 -206
- data/app/assets/stylesheets/wells.less +0 -27
@@ -1,138 +0,0 @@
|
|
1
|
-
@import 'mixins';
|
2
|
-
@import 'variables';
|
3
|
-
|
4
|
-
@import 'buttons';
|
5
|
-
@import 'button-groups';
|
6
|
-
@import 'dropdowns';
|
7
|
-
|
8
|
-
@import "scaffolding.less";
|
9
|
-
@import "grid.less";
|
10
|
-
@import "layouts.less";
|
11
|
-
|
12
|
-
@import "forms.less";
|
13
|
-
@import "wells.less";
|
14
|
-
@import "alerts.less";
|
15
|
-
@import "close.less";
|
16
|
-
|
17
|
-
.well{
|
18
|
-
input{
|
19
|
-
margin-top: -4px;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
.the_role{
|
24
|
-
width: 910px;
|
25
|
-
margin: auto;
|
26
|
-
margin-top: 10px;
|
27
|
-
h3{
|
28
|
-
margin-botoom: 0;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
.sidebar, .content{
|
32
|
-
padding: 15px;
|
33
|
-
}
|
34
|
-
|
35
|
-
.sidebar{
|
36
|
-
p{
|
37
|
-
font-size: 1.5em;
|
38
|
-
margin-bottom: 10px;
|
39
|
-
.delete{
|
40
|
-
color: red;
|
41
|
-
margin-left: 10px;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
p.new{
|
45
|
-
padding-top: 10px;
|
46
|
-
}
|
47
|
-
p.new a{
|
48
|
-
border-radius: 3px;
|
49
|
-
color: black;
|
50
|
-
padding: 3px 10px;
|
51
|
-
background: LightGreen;
|
52
|
-
}
|
53
|
-
p.new a:hover{
|
54
|
-
color: white;
|
55
|
-
padding: 3px 10px;
|
56
|
-
background: Green;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
.content{
|
61
|
-
.well{
|
62
|
-
padding: 15px;
|
63
|
-
padding-bottom: 5px;
|
64
|
-
margin-bottom: 10px;
|
65
|
-
}
|
66
|
-
.description{
|
67
|
-
font-size: 1.5em;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
.btn-group{
|
72
|
-
ul.dropdown-menu{
|
73
|
-
li.alert-success{
|
74
|
-
margin-bottom: 3px;
|
75
|
-
}
|
76
|
-
li.error a{
|
77
|
-
color: @errorText;
|
78
|
-
}
|
79
|
-
li.error a:hover{
|
80
|
-
color: @white;
|
81
|
-
background: @btnDangerBackgroundHighlight;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
.crusty{
|
87
|
-
border: 1px solid LightBlue;
|
88
|
-
margin-top: 15px;
|
89
|
-
margin-bottom: 30px;
|
90
|
-
padding: 10px;
|
91
|
-
|
92
|
-
.row [class*="span"]{
|
93
|
-
background: @white;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
|
97
|
-
.dropdown-menu a{
|
98
|
-
font-size: 1.3em;
|
99
|
-
}
|
100
|
-
|
101
|
-
.section{
|
102
|
-
position: relative;
|
103
|
-
margin-bottom: 15px;
|
104
|
-
padding-bottom: 15px;
|
105
|
-
border-bottom: 1px solid Gray;
|
106
|
-
|
107
|
-
h3{
|
108
|
-
color: @grayDarker;
|
109
|
-
padding: 10px;
|
110
|
-
border-radius: 3px;
|
111
|
-
background: lighten(@btnInfoBackground, 18%);
|
112
|
-
}
|
113
|
-
.delete{
|
114
|
-
position: absolute;
|
115
|
-
top: 8px; right: 5px;
|
116
|
-
}
|
117
|
-
.rule{
|
118
|
-
background: red;
|
119
|
-
position: relative;
|
120
|
-
padding: 7px;
|
121
|
-
border-radius: 3px;
|
122
|
-
margin-bottom: 10px;
|
123
|
-
background: @tableBackgroundAccent;
|
124
|
-
|
125
|
-
h4{
|
126
|
-
margin-bottom: 0;
|
127
|
-
padding-left: 20px;
|
128
|
-
}
|
129
|
-
.controls{
|
130
|
-
position: absolute;
|
131
|
-
top: 2px; right: 0;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
.rule:hover{
|
135
|
-
cursor: pointer;
|
136
|
-
background: darken(@tableBackgroundAccent, 15%);
|
137
|
-
}
|
138
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
// Scaffolding
|
2
|
-
// Basic and global styles for generating a grid system, structural layout, and page templates
|
3
|
-
// -------------------------------------------------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Body reset
|
7
|
-
// ----------
|
8
|
-
|
9
|
-
body {
|
10
|
-
margin: 0;
|
11
|
-
font-family: @baseFontFamily;
|
12
|
-
font-size: @baseFontSize;
|
13
|
-
line-height: @baseLineHeight;
|
14
|
-
color: @textColor;
|
15
|
-
background-color: @bodyBackground;
|
16
|
-
}
|
17
|
-
|
18
|
-
|
19
|
-
// Links
|
20
|
-
// -----
|
21
|
-
|
22
|
-
a {
|
23
|
-
color: @linkColor;
|
24
|
-
text-decoration: none;
|
25
|
-
}
|
26
|
-
a:hover {
|
27
|
-
color: @linkColorHover;
|
28
|
-
text-decoration: underline;
|
29
|
-
}
|
@@ -1,206 +0,0 @@
|
|
1
|
-
// Variables.less
|
2
|
-
// Variables to customize the look and feel of Bootstrap
|
3
|
-
// -----------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
// GLOBAL VALUES
|
8
|
-
// --------------------------------------------------
|
9
|
-
|
10
|
-
|
11
|
-
// Grays
|
12
|
-
// -------------------------
|
13
|
-
@black: #000;
|
14
|
-
@grayDarker: #222;
|
15
|
-
@grayDark: #333;
|
16
|
-
@gray: #555;
|
17
|
-
@grayLight: #999;
|
18
|
-
@grayLighter: #eee;
|
19
|
-
@white: #fff;
|
20
|
-
|
21
|
-
|
22
|
-
// Accent colors
|
23
|
-
// -------------------------
|
24
|
-
@blue: #049cdb;
|
25
|
-
@blueDark: #0064cd;
|
26
|
-
@green: #46a546;
|
27
|
-
@red: #9d261d;
|
28
|
-
@yellow: #ffc40d;
|
29
|
-
@orange: #f89406;
|
30
|
-
@pink: #c3325f;
|
31
|
-
@purple: #7a43b6;
|
32
|
-
|
33
|
-
|
34
|
-
// Scaffolding
|
35
|
-
// -------------------------
|
36
|
-
@bodyBackground: @white;
|
37
|
-
@textColor: @grayDark;
|
38
|
-
|
39
|
-
|
40
|
-
// Links
|
41
|
-
// -------------------------
|
42
|
-
@linkColor: #08c;
|
43
|
-
@linkColorHover: darken(@linkColor, 15%);
|
44
|
-
|
45
|
-
|
46
|
-
// Typography
|
47
|
-
// -------------------------
|
48
|
-
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
49
|
-
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
|
50
|
-
@monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
|
51
|
-
|
52
|
-
@baseFontSize: 13px;
|
53
|
-
@baseFontFamily: @sansFontFamily;
|
54
|
-
@baseLineHeight: 18px;
|
55
|
-
@altFontFamily: @serifFontFamily;
|
56
|
-
|
57
|
-
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
|
58
|
-
@headingsFontWeight: bold; // instead of browser default, bold
|
59
|
-
@headingsColor: inherit; // empty to use BS default, @textColor
|
60
|
-
|
61
|
-
|
62
|
-
// Tables
|
63
|
-
// -------------------------
|
64
|
-
@tableBackground: transparent; // overall background-color
|
65
|
-
@tableBackgroundAccent: #f9f9f9; // for striping
|
66
|
-
@tableBackgroundHover: #f5f5f5; // for hover
|
67
|
-
@tableBorder: #ddd; // table and cell border
|
68
|
-
|
69
|
-
|
70
|
-
// Buttons
|
71
|
-
// -------------------------
|
72
|
-
@btnBackground: @white;
|
73
|
-
@btnBackgroundHighlight: darken(@white, 10%);
|
74
|
-
@btnBorder: #ccc;
|
75
|
-
|
76
|
-
@btnPrimaryBackground: @linkColor;
|
77
|
-
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
|
78
|
-
|
79
|
-
@btnInfoBackground: #5bc0de;
|
80
|
-
@btnInfoBackgroundHighlight: #2f96b4;
|
81
|
-
|
82
|
-
@btnSuccessBackground: #62c462;
|
83
|
-
@btnSuccessBackgroundHighlight: #51a351;
|
84
|
-
|
85
|
-
@btnWarningBackground: lighten(@orange, 15%);
|
86
|
-
@btnWarningBackgroundHighlight: @orange;
|
87
|
-
|
88
|
-
@btnDangerBackground: #ee5f5b;
|
89
|
-
@btnDangerBackgroundHighlight: #bd362f;
|
90
|
-
|
91
|
-
@btnInverseBackground: @gray;
|
92
|
-
@btnInverseBackgroundHighlight: @grayDarker;
|
93
|
-
|
94
|
-
|
95
|
-
// Forms
|
96
|
-
// -------------------------
|
97
|
-
@inputBackground: @white;
|
98
|
-
@inputBorder: #ccc;
|
99
|
-
@inputBorderRadius: 3px;
|
100
|
-
@inputDisabledBackground: @grayLighter;
|
101
|
-
@formActionsBackground: #f5f5f5;
|
102
|
-
|
103
|
-
// Dropdowns
|
104
|
-
// -------------------------
|
105
|
-
@dropdownBackground: @white;
|
106
|
-
@dropdownBorder: rgba(0,0,0,.2);
|
107
|
-
@dropdownLinkColor: @grayDark;
|
108
|
-
@dropdownLinkColorHover: @white;
|
109
|
-
@dropdownLinkBackgroundHover: @linkColor;
|
110
|
-
@dropdownDividerTop: #e5e5e5;
|
111
|
-
@dropdownDividerBottom: @white;
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
// COMPONENT VARIABLES
|
116
|
-
// --------------------------------------------------
|
117
|
-
|
118
|
-
// Z-index master list
|
119
|
-
// -------------------------
|
120
|
-
// Used for a bird's eye view of components dependent on the z-axis
|
121
|
-
// Try to avoid customizing these :)
|
122
|
-
@zindexDropdown: 1000;
|
123
|
-
@zindexPopover: 1010;
|
124
|
-
@zindexTooltip: 1020;
|
125
|
-
@zindexFixedNavbar: 1030;
|
126
|
-
@zindexModalBackdrop: 1040;
|
127
|
-
@zindexModal: 1050;
|
128
|
-
|
129
|
-
|
130
|
-
// Sprite icons path
|
131
|
-
// -------------------------
|
132
|
-
@iconSpritePath: "../img/glyphicons-halflings.png";
|
133
|
-
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
134
|
-
|
135
|
-
|
136
|
-
// Input placeholder text color
|
137
|
-
// -------------------------
|
138
|
-
@placeholderText: @grayLight;
|
139
|
-
|
140
|
-
|
141
|
-
// Hr border color
|
142
|
-
// -------------------------
|
143
|
-
@hrBorder: @grayLighter;
|
144
|
-
|
145
|
-
|
146
|
-
// Navbar
|
147
|
-
// -------------------------
|
148
|
-
@navbarHeight: 40px;
|
149
|
-
@navbarBackground: @grayDarker;
|
150
|
-
@navbarBackgroundHighlight: @grayDark;
|
151
|
-
|
152
|
-
@navbarText: @grayLight;
|
153
|
-
@navbarLinkColor: @grayLight;
|
154
|
-
@navbarLinkColorHover: @white;
|
155
|
-
@navbarLinkColorActive: @navbarLinkColorHover;
|
156
|
-
@navbarLinkBackgroundHover: transparent;
|
157
|
-
@navbarLinkBackgroundActive: @navbarBackground;
|
158
|
-
|
159
|
-
@navbarSearchBackground: lighten(@navbarBackground, 25%);
|
160
|
-
@navbarSearchBackgroundFocus: @white;
|
161
|
-
@navbarSearchBorder: darken(@navbarSearchBackground, 30%);
|
162
|
-
@navbarSearchPlaceholderColor: #ccc;
|
163
|
-
@navbarBrandColor: @navbarLinkColor;
|
164
|
-
|
165
|
-
|
166
|
-
// Hero unit
|
167
|
-
// -------------------------
|
168
|
-
@heroUnitBackground: @grayLighter;
|
169
|
-
@heroUnitHeadingColor: inherit;
|
170
|
-
@heroUnitLeadColor: inherit;
|
171
|
-
|
172
|
-
|
173
|
-
// Form states and alerts
|
174
|
-
// -------------------------
|
175
|
-
@warningText: #c09853;
|
176
|
-
@warningBackground: #fcf8e3;
|
177
|
-
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
178
|
-
|
179
|
-
@errorText: #b94a48;
|
180
|
-
@errorBackground: #f2dede;
|
181
|
-
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
182
|
-
|
183
|
-
@successText: #468847;
|
184
|
-
@successBackground: #dff0d8;
|
185
|
-
@successBorder: darken(spin(@successBackground, -10), 5%);
|
186
|
-
|
187
|
-
@infoText: #3a87ad;
|
188
|
-
@infoBackground: #d9edf7;
|
189
|
-
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
// GRID
|
194
|
-
// --------------------------------------------------
|
195
|
-
|
196
|
-
// Default 940px grid
|
197
|
-
// -------------------------
|
198
|
-
@gridColumns: 12;
|
199
|
-
@gridColumnWidth: 60px;
|
200
|
-
@gridGutterWidth: 20px;
|
201
|
-
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
202
|
-
|
203
|
-
// Fluid grid
|
204
|
-
// -------------------------
|
205
|
-
@fluidGridColumnWidth: 6.382978723%;
|
206
|
-
@fluidGridGutterWidth: 2.127659574%;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
// WELLS
|
2
|
-
// -----
|
3
|
-
|
4
|
-
.well {
|
5
|
-
min-height: 20px;
|
6
|
-
padding: 19px;
|
7
|
-
margin-bottom: 20px;
|
8
|
-
background-color: #f5f5f5;
|
9
|
-
border: 1px solid #eee;
|
10
|
-
border: 1px solid rgba(0,0,0,.05);
|
11
|
-
.border-radius(4px);
|
12
|
-
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
13
|
-
blockquote {
|
14
|
-
border-color: #ddd;
|
15
|
-
border-color: rgba(0,0,0,.15);
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
// Sizes
|
20
|
-
.well-large {
|
21
|
-
padding: 24px;
|
22
|
-
.border-radius(6px);
|
23
|
-
}
|
24
|
-
.well-small {
|
25
|
-
padding: 9px;
|
26
|
-
.border-radius(3px);
|
27
|
-
}
|