light_admin 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/CHANGELOG.md +5 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +5 -0
  6. data/Gemfile.lock +123 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +122 -0
  9. data/Rakefile +2 -0
  10. data/app/assets/javascripts/light_admin/filters_toggle.js +21 -0
  11. data/app/assets/stylesheets/light_admin/_rules.scss +50 -0
  12. data/app/assets/stylesheets/light_admin/base.scss +34 -0
  13. data/app/assets/stylesheets/light_admin/components/_breadcrumbs.scss +3 -0
  14. data/app/assets/stylesheets/light_admin/components/_buttons.scss +358 -0
  15. data/app/assets/stylesheets/light_admin/components/_comments.scss +66 -0
  16. data/app/assets/stylesheets/light_admin/components/_datepicker_calendar.scss +29 -0
  17. data/app/assets/stylesheets/light_admin/components/_flash_messages.scss +23 -0
  18. data/app/assets/stylesheets/light_admin/components/_footer.scss +3 -0
  19. data/app/assets/stylesheets/light_admin/components/_forms.scss +242 -0
  20. data/app/assets/stylesheets/light_admin/components/_header.scss +149 -0
  21. data/app/assets/stylesheets/light_admin/components/_images.scss +21 -0
  22. data/app/assets/stylesheets/light_admin/components/_list.scss +5 -0
  23. data/app/assets/stylesheets/light_admin/components/_panels.scss +139 -0
  24. data/app/assets/stylesheets/light_admin/components/_sidebars.scss +49 -0
  25. data/app/assets/stylesheets/light_admin/components/_status_tag.scss +12 -0
  26. data/app/assets/stylesheets/light_admin/components/_tables.scss +144 -0
  27. data/app/assets/stylesheets/light_admin/components/_titles.scss +37 -0
  28. data/app/assets/stylesheets/light_admin/components/_toggle_filters.scss +20 -0
  29. data/app/assets/stylesheets/light_admin/variables/_borders.scss +14 -0
  30. data/app/assets/stylesheets/light_admin/variables/_colors.scss +32 -0
  31. data/app/assets/stylesheets/light_admin/variables/_font.scss +4 -0
  32. data/app/assets/stylesheets/light_admin/variables/_shadows.scss +4 -0
  33. data/app/assets/stylesheets/light_admin/views/_login.scss +108 -0
  34. data/app/assets/stylesheets/utilities/_flex.scss +18 -0
  35. data/app/assets/stylesheets/utilities/_sizing.scss +3 -0
  36. data/app/assets/stylesheets/utilities/_spacing.scss +22 -0
  37. data/app/views/active_admin/devise/sessions/new.html.erb +36 -0
  38. data/bin/console +14 -0
  39. data/bin/setup +8 -0
  40. data/doc/index-with-filter.png +0 -0
  41. data/doc/index-with-filter.png:Zone.Identifier +0 -0
  42. data/doc/index.png +0 -0
  43. data/doc/index.png:Zone.Identifier +0 -0
  44. data/doc/panel-with-link.png +0 -0
  45. data/doc/panel-with-link.png:Zone.Identifier +0 -0
  46. data/doc/show.png +0 -0
  47. data/doc/show.png:Zone.Identifier +0 -0
  48. data/lib/light_admin.rb +10 -0
  49. data/lib/light_admin/generators.rb +19 -0
  50. data/lib/light_admin/header.rb +30 -0
  51. data/lib/light_admin/panel_with_link.rb +17 -0
  52. data/lib/light_admin/version.rb +3 -0
  53. data/light_admin.gemspec +19 -0
  54. metadata +117 -0
@@ -0,0 +1,21 @@
1
+ /* GLOBAL IMAGES STYLE */
2
+ img {
3
+ max-width: 100%;
4
+ }
5
+
6
+ /* LOGO HEADER */
7
+ #site_title_image {
8
+ height: 30px;
9
+ }
10
+
11
+ /* CIRCLE THUMBNAIL */
12
+ .image-thumbnail {
13
+ width: 50px;
14
+ height: 50px;
15
+ border-radius: $border-radius-thumbnail;
16
+ }
17
+
18
+ /* IMAGES IN TABLE */
19
+ .image-table {
20
+ max-width: 200px;
21
+ }
@@ -0,0 +1,5 @@
1
+ .list-style-none {
2
+ list-style: none;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
@@ -0,0 +1,139 @@
1
+ /* GLOBAL PANELS */
2
+ .panel > h3 {
3
+ background: none;
4
+ color: $global-text-color;
5
+ border: none;
6
+ border-bottom: $border-style-light;
7
+ border-radius: 0;
8
+ box-shadow: none;
9
+ text-shadow: none;
10
+ font-size: 1.1rem;
11
+ font-family: $font-family;
12
+ padding: 1.25rem 1rem;
13
+ margin: 0;
14
+ }
15
+
16
+ .panel > div {
17
+ padding: 0;
18
+ }
19
+
20
+ .panel {
21
+ background: $bg-white;
22
+ box-shadow: $global-shadow;
23
+ border: none;
24
+ border-radius: $global-border-radius;
25
+ margin: 25px 0;
26
+
27
+ h3 {
28
+ &:empty {
29
+ padding: 0;
30
+ }
31
+ }
32
+ }
33
+
34
+ .panel_contents {
35
+ table {
36
+ margin: 0;
37
+ border-radius: $global-border-radius;
38
+
39
+ tr.even {
40
+ td {
41
+ background: none;
42
+ }
43
+ }
44
+
45
+ tr.odd {
46
+ td {
47
+ background: none;
48
+ }
49
+ }
50
+ }
51
+
52
+ th {
53
+ text-transform: uppercase;
54
+ text-shadow: none !important;
55
+ }
56
+
57
+ th, td {
58
+ padding: 1rem 1.5rem;
59
+ border-bottom: $border-style-light !important;
60
+ }
61
+
62
+ tr + tr th,
63
+ tr + tr td {
64
+ border-top: none;
65
+ border-bottom: $border-style-light;
66
+ }
67
+ }
68
+
69
+ /*PANEL WITH LINK*/
70
+ .panel_with_link {
71
+ margin-top: 25px;
72
+ box-shadow: $global-shadow;
73
+ border-radius: $global-border-radius;
74
+ background: $bg-white;
75
+
76
+ .title-panel-wrap {
77
+ border-bottom: $border-style-light;
78
+
79
+ h3 {
80
+ font-size: 1.1rem;
81
+ font-weight: bold;
82
+ font-family: $font-family;
83
+ padding: 1.25rem 1rem;
84
+ margin: 0px;
85
+ }
86
+
87
+ a {
88
+ padding-right: 1.25rem;
89
+ color: $primary;
90
+ }
91
+
92
+ a:hover {
93
+ color: $text-info;
94
+ }
95
+ }
96
+
97
+ thead th {
98
+ background: none;
99
+ border-bottom: $border-style-light;
100
+ }
101
+
102
+ table {
103
+ border-radius: $global-border-radius;
104
+
105
+ tr th {
106
+ padding: 1.25rem 1rem;
107
+ text-align: left;
108
+ text-transform: uppercase;
109
+ }
110
+
111
+ tbody td {
112
+ a {
113
+ color: $primary;
114
+ }
115
+ }
116
+
117
+ tbody tr {
118
+ transition: .3s ease;
119
+
120
+ &:hover {
121
+ background: $light;
122
+ }
123
+ }
124
+
125
+ tbody tr td {
126
+ padding: 1.25rem 1rem;
127
+ border-bottom: $border-style-light;
128
+ }
129
+
130
+ tbody tr:last-child td {
131
+ border: unset;
132
+ }
133
+ }
134
+ }
135
+
136
+ #filters_sidebar_section {
137
+ margin-top: 30px;
138
+ border-radius: $global-border-radius;
139
+ }
@@ -0,0 +1,49 @@
1
+ .sidebar_section {
2
+ h3 {
3
+ margin: 0 0 24px 0;
4
+ }
5
+
6
+ label {
7
+ margin-bottom: 5px;
8
+ }
9
+ }
10
+
11
+ /* FILTER STATUS LIST STYLE */
12
+ #search_status_sidebar_section {
13
+ margin-top: 30px;
14
+
15
+ div {
16
+ padding: 0 24px 0 24px;
17
+ margin-top: 0 !important;
18
+ }
19
+ }
20
+
21
+ #active_admin_content {
22
+ #sidebar {
23
+ max-width: 264px;
24
+ margin-left: -265px;
25
+
26
+ .panel_contents {
27
+ h4 {
28
+ font-family: $font-family;
29
+ font-size: .9rem;
30
+ font-weight: bold;
31
+ margin: 0 !important;
32
+ padding: 1rem 0;
33
+ }
34
+ ul {
35
+ padding: 0;
36
+ list-style: none;
37
+
38
+ li {
39
+ padding: 1rem 0;
40
+ border-bottom: $border-style-light;
41
+
42
+ &:last-child {
43
+ border-bottom: none;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,12 @@
1
+ $publish_states_colors: (
2
+ yes: $success,
3
+ no: $danger
4
+ );
5
+
6
+ .status_tag {
7
+ @each $state, $color in $publish_states_colors {
8
+ &.#{$state} {
9
+ background: $color;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,144 @@
1
+ /* GLOBAL TABLES */
2
+ .table_tools {
3
+ background: $bg-white;
4
+ margin-bottom: 0;
5
+ padding: 30px;
6
+ display: flex;
7
+ justify-content: space-between;
8
+ border-radius: $global-border-radius-top;
9
+ border-bottom: $border-style-light;
10
+ box-shadow: none;
11
+ }
12
+
13
+ table {
14
+ background: $bg-white;
15
+ margin-bottom: 0;
16
+ }
17
+
18
+ /* INDEX TABLES */
19
+ .index_content {
20
+ table {
21
+ tr {
22
+ background: none;
23
+ transition: .3s ease;
24
+
25
+ &:hover {
26
+ background: $bg-light;
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ table.index_table {
33
+ border: none;
34
+ border-radius: $global-border-radius;
35
+ padding: 30px;
36
+ box-shadow: none;
37
+
38
+ thead {
39
+ th {
40
+ background: none;
41
+ border: none;
42
+ border-bottom: $border-style-light;
43
+ box-shadow: none;
44
+ vertical-align: unset;
45
+ text-transform: uppercase;
46
+
47
+ &:first-child {
48
+ border-radius: unset;
49
+ }
50
+
51
+ &:last-child {
52
+ border-radius: unset;
53
+ }
54
+ }
55
+
56
+ th.sorted-desc {
57
+ background: none;
58
+ }
59
+ }
60
+
61
+ th {
62
+ text-shadow: none;
63
+ height: 3rem;
64
+
65
+ &:last-child {
66
+ border: none;
67
+ border-bottom: $border-style-light;
68
+ }
69
+ }
70
+
71
+ th.sorted-asc, th.sorted-desc {
72
+ background: $bg-white;
73
+ text-transform: uppercase;
74
+ }
75
+
76
+ tr.even {
77
+ td {
78
+ background: unset;
79
+ }
80
+ }
81
+
82
+ td {
83
+ border: none;
84
+ border-bottom: $border-style-light;
85
+ padding: 20px 15px;
86
+ }
87
+
88
+ tbody {
89
+ tr:nth-child(even) {
90
+ td {
91
+ background: none;
92
+ }
93
+ }
94
+
95
+ tr.selected {
96
+ td {
97
+ background: $light-gray;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ .tabs {
104
+ margin: 0;
105
+ }
106
+
107
+ /* ATTRIBUTES TABLES */
108
+ .attributes_table {
109
+ border-radius: $global-border-radius;
110
+ box-shadow: $global-shadow;
111
+ overflow: scroll;
112
+
113
+ table {
114
+ tr {
115
+ transition: .3s;
116
+
117
+ &:hover {
118
+ background: $bg-light;
119
+ }
120
+ }
121
+
122
+ th, td {
123
+ border-bottom: $border-style-light;
124
+ padding: 1.25rem 1rem;
125
+ }
126
+ }
127
+
128
+ th {
129
+ text-transform: uppercase;
130
+ min-width: 250px;
131
+ color: $attributes-table-th-text-color;
132
+ }
133
+
134
+ tr + tr th,
135
+ tr + tr td {
136
+ border-top: none;
137
+ border-bottom: $border-style-light;
138
+ }
139
+
140
+ th, td {
141
+ padding: 1rem 1.5rem;
142
+ border-bottom: $border-style-light;
143
+ }
144
+ }
@@ -0,0 +1,37 @@
1
+ /* TITLE PAGE */
2
+ #title_bar {
3
+ background: $bg-white;
4
+ text-shadow: none;
5
+ border: none;
6
+ border-radius: $global-border-radius;
7
+ margin: 1rem;
8
+ margin-top: -34px;
9
+ margin-bottom: 0;
10
+ width: calc(100% - 2rem);
11
+ box-shadow: $global-shadow;
12
+
13
+ #page_title {
14
+ color: $global-text-color;
15
+ font-family: $font-family;
16
+ font-size: 1.2rem;
17
+ font-weight: bold;
18
+ }
19
+ }
20
+
21
+ #titlebar_left {
22
+ .breadcrumb .breadcrumb_sep {
23
+ color: $global-text-color;
24
+ }
25
+
26
+ a {
27
+ color: $global-text-color;
28
+ }
29
+ }
30
+
31
+ .inputs {
32
+ h3 {
33
+ font-family: $font-family;
34
+ font-size: 1.2rem;
35
+ margin: 0 0 1.5rem 0;
36
+ }
37
+ }
@@ -0,0 +1,20 @@
1
+ a#toggleFilters {
2
+
3
+ &.epon, &.epon:hover {
4
+ font-weight: 800;
5
+ -moz-box-shadow: inset 0.5px 0.25px 1.25px #000000;
6
+ -webkit-box-shadow: inset 0.5px 0.25px 1.25px #000000;
7
+ box-shadow: inset 0.5px 0.25px 1.25px #000000;
8
+ }
9
+ }
10
+
11
+ #toggleFilters {
12
+ display: inline-block;
13
+ margin-left: auto;
14
+ background-color: $bg-buttons;
15
+ color: $text-white;
16
+ border-radius: $border-radius-btn;
17
+ padding: .5rem 1rem;
18
+ text-decoration: none;
19
+ font-weight: 500;
20
+ }
@@ -0,0 +1,14 @@
1
+ /* BORDER RADIUS */
2
+ $global-border-radius: 10px !default;
3
+ $border-radius-btn: .375rem !default;
4
+ $border-radius-left: .375rem 0 0 .375rem !default;
5
+ $border-radius-right: 0 .375rem .375rem 0 !default;
6
+ $global-border-radius-top: 10px 10px 0 0 !default;
7
+ $global-border-radius-bottom: 0 0 10px 10px !default;
8
+ $border-radius-scope: 0.375rem !default;
9
+ $border-radius-thumbnail: 50% !default;
10
+
11
+ /* BORDER STYLE */
12
+ $border-style: .5px solid $light-gray !default;
13
+ $border-style-light: .5px solid $light !default;
14
+ $border-style-buttons: 0.5px solid rgba($charcoal, .3) !default;