rails_modular_admin 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +71 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/config/rails_modular_admin_manifest.js +2 -0
  6. data/app/assets/javascripts/index.js +87 -0
  7. data/app/assets/javascripts/rails_modular_admin.js +3 -0
  8. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/code-helper.js +36 -0
  9. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js +8 -0
  10. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/is-helper.js +98 -0
  11. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/times-helper.js +11 -0
  12. data/app/assets/javascripts/rails_modular_admin/_common/animations/animations.js +14 -0
  13. data/app/assets/javascripts/rails_modular_admin/_common/items-list/items-list.js +19 -0
  14. data/app/assets/javascripts/rails_modular_admin/_common/nprogress/nprogress.js +9 -0
  15. data/app/assets/javascripts/rails_modular_admin/_common/sameheight-items/sameheight-items.js +44 -0
  16. data/app/assets/javascripts/rails_modular_admin/app.js +1429 -0
  17. data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor-helper.js +10 -0
  18. data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor.js +34 -0
  19. data/app/assets/javascripts/rails_modular_admin/app/_common/header/nav/nav.js +14 -0
  20. data/app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js +23 -0
  21. data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/customize/customize.js +155 -0
  22. data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/sidebar.js +38 -0
  23. data/app/assets/javascripts/rails_modular_admin/app/charts/charts-flot/charts-flot.js +329 -0
  24. data/app/assets/javascripts/rails_modular_admin/app/charts/charts-morris/charts-morris.js +125 -0
  25. data/app/assets/javascripts/rails_modular_admin/app/dashboard/history/history.js +145 -0
  26. data/app/assets/javascripts/rails_modular_admin/app/dashboard/items/items.js +41 -0
  27. data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.js +37 -0
  28. data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.js +50 -0
  29. data/app/assets/javascripts/rails_modular_admin/app/dashboard/tasks/tasks.js +13 -0
  30. data/app/assets/javascripts/rails_modular_admin/app/forms/input-groups/input-groups.js +14 -0
  31. data/app/assets/javascripts/rails_modular_admin/app/items/editor/item-editor.js +34 -0
  32. data/app/assets/javascripts/rails_modular_admin/app/items/list/items-list.js +44 -0
  33. data/app/assets/javascripts/rails_modular_admin/app/pages/error.js +18 -0
  34. data/app/assets/javascripts/rails_modular_admin/auth/login/login.js +35 -0
  35. data/app/assets/javascripts/rails_modular_admin/auth/reset/reset.js +31 -0
  36. data/app/assets/javascripts/rails_modular_admin/auth/signup/signup.js +88 -0
  37. data/app/assets/javascripts/rails_modular_admin/config.js +51 -0
  38. data/app/assets/javascripts/rails_modular_admin/main.js +16 -0
  39. data/app/assets/javascripts/rails_modular_admin/vendor.js +60485 -0
  40. data/app/assets/stylesheets/rails_modular_admin.scss +1 -0
  41. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/_mixins.scss +103 -0
  42. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/layout.scss +74 -0
  43. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/misc.scss +115 -0
  44. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/typography.scss +60 -0
  45. data/app/assets/stylesheets/rails_modular_admin/_common/alert/alert.scss +27 -0
  46. data/app/assets/stylesheets/rails_modular_admin/_common/animations/animations.scss +4 -0
  47. data/app/assets/stylesheets/rails_modular_admin/_common/button/button.scss +117 -0
  48. data/app/assets/stylesheets/rails_modular_admin/_common/card/card.scss +200 -0
  49. data/app/assets/stylesheets/rails_modular_admin/_common/chart/chart.scss +9 -0
  50. data/app/assets/stylesheets/rails_modular_admin/_common/dropdown/dropdown.scss +28 -0
  51. data/app/assets/stylesheets/rails_modular_admin/_common/flex/flex.scss +14 -0
  52. data/app/assets/stylesheets/rails_modular_admin/_common/form/form.scss +235 -0
  53. data/app/assets/stylesheets/rails_modular_admin/_common/images-container/images-container.scss +129 -0
  54. data/app/assets/stylesheets/rails_modular_admin/_common/items-list/items-list.scss +388 -0
  55. data/app/assets/stylesheets/rails_modular_admin/_common/logo/logo.scss +46 -0
  56. data/app/assets/stylesheets/rails_modular_admin/_common/modal/modal-tabs.scss +27 -0
  57. data/app/assets/stylesheets/rails_modular_admin/_common/navigation/navigation.scss +114 -0
  58. data/app/assets/stylesheets/rails_modular_admin/_common/nprogress/nprogress.scss +22 -0
  59. data/app/assets/stylesheets/rails_modular_admin/_common/pagination/pagination.scss +20 -0
  60. data/app/assets/stylesheets/rails_modular_admin/_common/sameheight-items/sameheight-items.scss +5 -0
  61. data/app/assets/stylesheets/rails_modular_admin/_common/scrollbar/scrollbar.scss +24 -0
  62. data/app/assets/stylesheets/rails_modular_admin/_common/table/table.scss +12 -0
  63. data/app/assets/stylesheets/rails_modular_admin/_main.scss +41 -0
  64. data/app/assets/stylesheets/rails_modular_admin/_themes/blue-theme.scss +1 -0
  65. data/app/assets/stylesheets/rails_modular_admin/_themes/custom-theme.scss +0 -0
  66. data/app/assets/stylesheets/rails_modular_admin/_themes/green-theme.scss +10 -0
  67. data/app/assets/stylesheets/rails_modular_admin/_themes/orange-theme.scss +12 -0
  68. data/app/assets/stylesheets/rails_modular_admin/_themes/purple-theme.scss +6 -0
  69. data/app/assets/stylesheets/rails_modular_admin/_themes/red-theme.scss +11 -0
  70. data/app/assets/stylesheets/rails_modular_admin/_themes/seagreen-theme.scss +9 -0
  71. data/app/assets/stylesheets/rails_modular_admin/_variables.scss +109 -0
  72. data/app/assets/stylesheets/rails_modular_admin/app/_common/editor/editor.scss +28 -0
  73. data/app/assets/stylesheets/rails_modular_admin/app/_common/footer/footer.scss +68 -0
  74. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/buttons/buttons.scss +30 -0
  75. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/collapse/collapse.scss +23 -0
  76. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/header.scss +33 -0
  77. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/nav.scss +64 -0
  78. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/notifications/notifications.scss +126 -0
  79. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/profile/profile.scss +93 -0
  80. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/search/search.scss +68 -0
  81. data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modal-media/modal-media.scss +56 -0
  82. data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modals.scss +19 -0
  83. data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/customize/customize.scss +157 -0
  84. data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/header/header.scss +14 -0
  85. data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/sidebar.scss +240 -0
  86. data/app/assets/stylesheets/rails_modular_admin/app/app.scss +72 -0
  87. data/app/assets/stylesheets/rails_modular_admin/app/charts/charts-flot/charts-flot.scss +18 -0
  88. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/dashboard.scss +7 -0
  89. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/history/history.scss +6 -0
  90. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-header.scss +81 -0
  91. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-list.scss +102 -0
  92. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.scss +7 -0
  93. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.scss +14 -0
  94. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/stats/stats.scss +70 -0
  95. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/tasks/tasks.scss +47 -0
  96. data/app/assets/stylesheets/rails_modular_admin/app/items/editor/item-editor.scss +3 -0
  97. data/app/assets/stylesheets/rails_modular_admin/app/items/list/items-list.scss +330 -0
  98. data/app/assets/stylesheets/rails_modular_admin/app/pages/error.scss +73 -0
  99. data/app/assets/stylesheets/rails_modular_admin/app/pages/screenful/screenful.scss +101 -0
  100. data/app/assets/stylesheets/rails_modular_admin/app/tables/responsive-tables/responsive-tables.scss +77 -0
  101. data/app/assets/stylesheets/rails_modular_admin/application.scss +26 -0
  102. data/app/assets/stylesheets/rails_modular_admin/auth/auth.scss +72 -0
  103. data/app/controllers/rails_modular_admin/application_controller.rb +5 -0
  104. data/app/helpers/rails_modular_admin/application_helper.rb +4 -0
  105. data/app/jobs/rails_modular_admin/application_job.rb +4 -0
  106. data/app/mailers/rails_modular_admin/application_mailer.rb +6 -0
  107. data/app/models/rails_modular_admin/application_record.rb +5 -0
  108. data/app/views/layouts/rails_modular_admin/application.html.erb +16 -0
  109. data/config/initializers/assets.rb +1 -0
  110. data/config/routes.rb +2 -0
  111. data/lib/generators/rails_modular_admin/USAGE +8 -0
  112. data/lib/generators/rails_modular_admin/install_generator.rb +12 -0
  113. data/lib/generators/rails_modular_admin/templates/custom-theme.scss +14 -0
  114. data/lib/rails_modular_admin.rb +11 -0
  115. data/lib/rails_modular_admin/engine.rb +5 -0
  116. data/lib/rails_modular_admin/version.rb +3 -0
  117. data/lib/tasks/rails_modular_admin_tasks.rake +47 -0
  118. metadata +205 -0
@@ -0,0 +1,72 @@
1
+ .app {
2
+ position: relative;
3
+ width: 100%;
4
+ padding-left: $sidebar-width;
5
+ min-height: 100vh;
6
+ margin: 0 auto;
7
+ left: 0;
8
+ background-color: $color-bg;
9
+ box-shadow: 0 0 3px #ccc;
10
+ transition: left 0.3s ease, padding-left 0.3s ease;
11
+ overflow: hidden;
12
+
13
+ .content {
14
+
15
+ $padding-x: $content-padding-x-md;
16
+ $padding-y: $content-padding-y-md;
17
+
18
+ padding: $header-height + $padding-y $padding-x $footer-height + $padding-y $padding-x;
19
+ min-height: 100vh;
20
+
21
+ @include media-up(xl) {
22
+ $padding-x: $content-padding-x-xl;
23
+ $padding-y: $content-padding-y-xl;
24
+
25
+ padding: $header-height + $padding-y $padding-x $footer-height + $padding-y $padding-x;
26
+ }
27
+
28
+ @include media(lg) {
29
+ $padding-x: $content-padding-x-lg;
30
+ $padding-y: $content-padding-y-lg;
31
+
32
+ padding: $header-height + $padding-y $padding-x $footer-height + $padding-y $padding-x;
33
+ }
34
+
35
+ @include media(md) {
36
+ $padding-x: $content-padding-x-md;
37
+ $padding-y: $content-padding-y-md;
38
+
39
+ padding: $header-height + $padding-y $padding-x $footer-height + $padding-y $padding-x;
40
+ }
41
+
42
+ @include media-down(sm) {
43
+ $padding-x: $content-padding-x-sm;
44
+ $padding-y: $content-padding-y-sm;
45
+
46
+ padding: $header-height-xs + $padding-y $padding-x $footer-height + $padding-y $padding-x;
47
+ }
48
+ }
49
+
50
+
51
+ @include media-down(md) {
52
+ padding-left: 0;
53
+ // background-color: #ccc;
54
+ // left: -$sidebar-width;
55
+ // width: calc(100% + #{$sidebar-width});
56
+ }
57
+
58
+ &.sidebar-open {
59
+ // Disable content scrolling when sidebar is open
60
+ @include media-down(md) {
61
+ left: 0;
62
+ // position: absolute;
63
+ // height: 100%;
64
+ // overflow: hidden;
65
+ }
66
+ }
67
+
68
+ &.blank {
69
+ background-color: #667380;
70
+ }
71
+
72
+ }
@@ -0,0 +1,18 @@
1
+ $flot-chart-height: 225px;
2
+ $flot-chart-width: 225px;
3
+
4
+ .flot-chart {
5
+ display: block;
6
+ height: $flot-chart-height;
7
+
8
+ .flot-chart-content {
9
+ width: 100%;
10
+ height: 100%;
11
+ }
12
+
13
+ .flot-chart-pie-content {
14
+ width: $flot-chart-width;
15
+ height: $flot-chart-height;
16
+ margin: auto;
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ // Dashboard page specific styles here
2
+
3
+ .dashboard-page {
4
+ // .section.map-tasks {
5
+ // margin-bottom: 0;
6
+ // }
7
+ }
@@ -0,0 +1,6 @@
1
+ .dashboard-page {
2
+ #dashboard-downloads-chart,
3
+ #dashboard-visits-chart {
4
+ height: 220px;
5
+ }
6
+ }
@@ -0,0 +1,81 @@
1
+ .dashboard-page .items {
2
+
3
+ .card-header {
4
+
5
+ @include media-down(xs) {
6
+ border: none;
7
+ flex-wrap: wrap;
8
+
9
+ .header-block {
10
+ display: flex;
11
+ align-items: center;
12
+ width: 100%;
13
+ justify-content: space-between;
14
+ border-bottom: 1px solid lighten($color-divider, 6%);
15
+ }
16
+ }
17
+
18
+ .title {
19
+ padding-right: 0px;
20
+ margin-right: 5px;
21
+ }
22
+
23
+ .search {
24
+ margin: 0;
25
+ vertical-align: middle;
26
+ display: inline-flex;
27
+ flex-direction: row;
28
+ align-items: center;
29
+
30
+ $color-inactive: $color-text-muted;
31
+ $color-active: $color-text-light;
32
+
33
+ @include media-down(xs) {
34
+ min-width: 50%;
35
+ }
36
+
37
+ .search-input {
38
+ border: none;
39
+ background-color: inherit;
40
+ color: $color-inactive;
41
+ width: 100px;
42
+ transition: color 0.3s ease;
43
+
44
+ @include placeholder() {
45
+ transition: color 0.3s ease;
46
+ color: $color-inactive;
47
+ }
48
+
49
+ @include media-down(xs) {
50
+ min-width: 130px;
51
+ }
52
+
53
+ &:focus {
54
+ color: $color-active;
55
+
56
+ @include placeholder() {
57
+ color: lighten($color-active, 15%);
58
+ }
59
+
60
+ &+.search-icon {
61
+ color: $color-active;
62
+ }
63
+ }
64
+ }
65
+
66
+ .search-icon {
67
+ color: $color-text-muted;
68
+ transition: color 0.3s ease;
69
+ order: -1;
70
+ padding-right: 6px;
71
+ }
72
+
73
+ }
74
+
75
+
76
+ .pagination {
77
+ display: inline-block;
78
+ margin: 0;
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,102 @@
1
+ .dashboard-page .items {
2
+ .item-list {
3
+
4
+ // Common case styles
5
+
6
+ .item-col-title {
7
+ flex-grow: 3 * $item-list-col-grow;
8
+ }
9
+
10
+ .item-col-date {
11
+ text-align: right;
12
+ }
13
+
14
+ @include media-up(xl) {
15
+ .item-col-date {
16
+ flex-grow: $item-list-col-grow + 1;
17
+ }
18
+ }
19
+
20
+
21
+ // Large mobile view
22
+
23
+ @include media-down(sm) {
24
+
25
+ .item-list-header {
26
+ display: none;
27
+ }
28
+
29
+ .item-row {
30
+ padding: 0;
31
+ }
32
+
33
+ .item-col {
34
+ padding-left: $item-list-padding-x;
35
+ padding-right: $item-list-padding-x;
36
+ }
37
+
38
+ .item-col-img {
39
+ padding-left: $item-list-padding-x;
40
+ flex-basis: 40 + 2 * $item-list-padding-x;
41
+ padding-right: 0;
42
+ }
43
+
44
+ .item-col-stats {
45
+ text-align: center;
46
+ }
47
+ }
48
+
49
+ @include media(sm) {
50
+ .item-col-title {
51
+ flex-basis: 100%;
52
+ border-bottom: 1px solid $item-list-color-border;
53
+ }
54
+
55
+ .item-col:not(.item-col-title):not(.item-col-img) {
56
+ position: relative;
57
+ padding-top: 35px;
58
+ }
59
+
60
+ .item-heading {
61
+ position: absolute;
62
+ height: 30px;
63
+ width: 100%;
64
+ left: 0;
65
+ top: 5px;
66
+ line-height: 30px;
67
+ padding-left: $item-list-padding-x;
68
+ padding-right: $item-list-padding-x;
69
+ }
70
+ }
71
+
72
+ @include media(xs) {
73
+
74
+ .item-col {
75
+ border-bottom: 1px solid $item-list-color-border;
76
+ }
77
+
78
+ .item-col-img {
79
+ flex-basis: 50px;
80
+ order: -5;
81
+ }
82
+
83
+ .item-col-title {
84
+ flex-basis: calc(100% - 50px);
85
+ }
86
+
87
+ .item-col:not(.item-col-title):not(.item-col-img) {
88
+ flex-basis: 100%;
89
+ text-align: left;
90
+
91
+ .item-heading {
92
+ text-align: left;
93
+ }
94
+ }
95
+
96
+
97
+ .item-col-date {
98
+ border: none;
99
+ }
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,7 @@
1
+ .dashboard-page .sales-breakdown {
2
+ .dashboard-sales-breakdown-chart {
3
+ margin: 0 auto;
4
+ max-width: 250px;
5
+ max-height: 250px;
6
+ }
7
+ }
@@ -0,0 +1,14 @@
1
+ .dashboard-page #dashboard-sales-map {
2
+
3
+ .jqvmap-zoomin,
4
+ .jqvmap-zoomout {
5
+ background-color: $color-primary;
6
+ height: 20px;
7
+ width: 20px;
8
+ line-height: 14px;
9
+ }
10
+
11
+ .jqvmap-zoomout {
12
+ top: 32px;
13
+ }
14
+ }
@@ -0,0 +1,70 @@
1
+ // Dashboard stats
2
+
3
+
4
+
5
+ .dashboard-page .stats {
6
+
7
+ .card-block {
8
+ padding-bottom: 0;
9
+ }
10
+
11
+ .stat-col {
12
+ margin-bottom: 20px;
13
+ float: left;
14
+ white-space: nowrap;
15
+ // width: percentage(1/2);
16
+ overflow: hidden;
17
+
18
+ // @include media-down(sm) {
19
+ // width: 100%;
20
+ // }
21
+ }
22
+
23
+ .stat-icon {
24
+ color: $dashboard-stat-icon-color;
25
+ display: inline-block;
26
+ font-size: 26px;
27
+ text-align: center;
28
+ vertical-align: middle;
29
+ width: 50px;
30
+ }
31
+
32
+ .stat-chart {
33
+ margin-right: 5px;
34
+
35
+ @include media-up(xl) {
36
+ margin-right: 0.6vw;
37
+ // margin-right: 10px;
38
+ // width: 3vw;
39
+ // height: 3vw;
40
+ }
41
+
42
+ vertical-align: middle;
43
+ }
44
+
45
+ .stat {
46
+ vertical-align: middle;
47
+ .value {
48
+
49
+ @include media-up(xl) {
50
+ font-size: 1.3vw;
51
+ }
52
+ }
53
+ .name {
54
+ @include media-up(xl) {
55
+ font-size: 0.9vw;
56
+ }
57
+ }
58
+ }
59
+
60
+ .stat-progress {
61
+ height: 2px;
62
+ margin: 5px 0;
63
+ color: $color-primary;
64
+ background-color: #dddddd;
65
+
66
+ .progress-bar {
67
+ background-color: $color-primary;
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,47 @@
1
+ .dashboard-page .tasks {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-content: stretch;
5
+
6
+ .title-block {
7
+ .title {
8
+ align-items: center;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ }
12
+ }
13
+
14
+
15
+
16
+ label {
17
+ width: 100%;
18
+ margin-bottom: 0;
19
+
20
+ .checkbox:checked+span {
21
+ text-decoration: line-through;
22
+ }
23
+
24
+ span {
25
+ display: inline-block;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ white-space: nowrap;
29
+ width: 100%;
30
+ }
31
+ }
32
+
33
+ .tasks-block {
34
+ max-height: 400px;
35
+ overflow-y: scroll;
36
+ overflow-x: hidden;
37
+ margin: 0;
38
+ margin-right: -5px;
39
+ }
40
+
41
+ .item-list {
42
+ .item-col {
43
+ padding-top: 5px;
44
+ padding-bottom: 5px;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,330 @@
1
+ .items-list-page {
2
+
3
+ .title-search-block {
4
+ position: relative;
5
+ }
6
+
7
+ .title-block {
8
+ @include media-down(sm) {
9
+ padding-bottom: 10px;
10
+ margin-bottom: 13px;
11
+ }
12
+
13
+ .action {
14
+ display: inline;
15
+
16
+ a {
17
+ padding: 10px 15px;
18
+
19
+ .icon {
20
+ margin-right: 5px;
21
+ text-align: center;
22
+ width: 16px;
23
+ }
24
+ }
25
+
26
+ @include media-down(sm){
27
+ display: none;
28
+ }
29
+
30
+ }
31
+ }
32
+
33
+
34
+ .items-search {
35
+ position: absolute;
36
+ margin-bottom: 15px;
37
+ right: 0;
38
+ top: 0;
39
+
40
+ @include media-down(sm) {
41
+ position: static;
42
+ }
43
+
44
+ .search-button {
45
+ margin: 0;
46
+ }
47
+ }
48
+
49
+
50
+ // For common item-list class see /src/_common/styles/items.less
51
+
52
+ // Desktop view
53
+
54
+ .item-list {
55
+
56
+ .item-col {
57
+ &.item-col-check {
58
+ text-align: left;
59
+ // width: auto;
60
+ // flex-basis: 30px;
61
+ }
62
+
63
+ &.item-col-img {
64
+ text-align: left;
65
+ width: auto;
66
+ text-align: center;
67
+ flex-basis: 70px;
68
+
69
+ @include media-up(sm) {
70
+ &:not(.item-col-header) {
71
+ height: 80px;
72
+ }
73
+ }
74
+ }
75
+
76
+ &.item-col-title {
77
+ text-align: left;
78
+ margin-left: 0 !important;
79
+ margin-right: auto;
80
+ // flex-basis: calc(40% - 100px);
81
+ flex-basis: 0;
82
+ flex-grow: 3 * $item-list-col-grow;
83
+ }
84
+
85
+ &.item-col-sales {
86
+ text-align: right;
87
+ font-weight: 600;
88
+ }
89
+
90
+ &.item-col-stats {
91
+ text-align: center;
92
+ }
93
+
94
+ &.item-col-category {
95
+ text-align: left;
96
+ font-weight: 600;
97
+ }
98
+
99
+ &.item-col-author {
100
+ text-align: left;
101
+ flex-grow: 1.5 * $item-list-col-grow;
102
+ }
103
+
104
+ &.item-col-date {
105
+ text-align: right;
106
+ }
107
+ }
108
+ }
109
+
110
+
111
+ // All mobile views
112
+ @include media-down(sm) {
113
+ .card.items {
114
+ background: none;
115
+ box-shadow: none;
116
+ }
117
+
118
+ .item-list {
119
+ .item {
120
+ border: none;
121
+ margin-bottom: 10px;
122
+ background-color: #fff;
123
+ box-shadow: 1px 1px 5px fade-out($color-text-light, 0.9);
124
+ }
125
+
126
+ .item-row {
127
+ padding: 0 !important;
128
+ }
129
+
130
+ .item-col {
131
+ &.item-col-author {
132
+ flex-grow: $item-list-col-grow;
133
+ }
134
+ }
135
+
136
+
137
+ }
138
+ }
139
+
140
+
141
+ // Large Mobile view
142
+
143
+ @include media(sm) {
144
+ .item-list {
145
+
146
+ .item-list-header {
147
+ display: none;
148
+ }
149
+
150
+ .item {
151
+ background-color: #fff;
152
+ margin-bottom: 10px;
153
+ box-shadow: 1px 1px 5px fade-out($color-text-light, 0.9);
154
+ }
155
+
156
+ .item-row {
157
+ padding: 0;
158
+ }
159
+
160
+ .item-heading {
161
+ width: 100%;
162
+ display: block;
163
+ position: absolute;
164
+ top: 0;
165
+ width: 100%;
166
+ left: 0;
167
+ line-height: 40px;
168
+ padding-left: 0;
169
+ }
170
+
171
+ .item-col {
172
+ &.item-col-check,
173
+ &.item-col-title,
174
+ &.item-col-actions-dropdown {
175
+ border-bottom: 1px solid $color-divider;
176
+
177
+ .item-heading {
178
+ display: none;
179
+ }
180
+ }
181
+
182
+ &.item-col-sales,
183
+ &.item-col-stats,
184
+ &.item-col-category,
185
+ &.item-col-author,
186
+ &.item-col-date {
187
+ padding-top: 40px;
188
+ position: relative;
189
+ }
190
+
191
+
192
+ &.item-col-check {
193
+ display: none;
194
+ }
195
+
196
+ &.item-col-title {
197
+ padding-left: $item-list-padding-x;
198
+ text-align: left;
199
+ margin-left: 0 !important;
200
+ margin-right: auto;
201
+ flex-basis: calc(100% - 40px);
202
+ }
203
+
204
+
205
+ &.item-col-actions {
206
+
207
+ }
208
+
209
+ &.item-col-img {
210
+ padding-left: $item-list-padding-x;
211
+ flex-basis: 69px + $item-list-padding-x;
212
+ }
213
+
214
+
215
+ &.item-col-sales {
216
+ text-align: left;
217
+ }
218
+
219
+ &.item-col-stats {
220
+ text-align: center;
221
+ }
222
+
223
+ &.item-col-category {
224
+ text-align: center;
225
+ }
226
+
227
+ &.item-col-author {
228
+ text-align: center;
229
+ }
230
+
231
+ &.item-col-date {
232
+ padding-right: $item-list-padding-x;
233
+ text-align: right;
234
+ white-space: nowrap;
235
+ flex-basis: 100px;
236
+ flex-basis: 0;
237
+ flex-grow: $item-list-col-grow;
238
+ }
239
+ }
240
+
241
+ }
242
+ }
243
+
244
+ // Small Mobile view
245
+
246
+ @include media-down(xs) {
247
+
248
+ .item-list-header {
249
+ display: none;
250
+ }
251
+
252
+ .item-list .item {
253
+ border: none;
254
+ font-size: 0.9rem;
255
+ margin-bottom: 10px;
256
+ background-color: #fff;
257
+ box-shadow: 1px 1px 5px fade-out($color-text-light, 0.9);
258
+
259
+
260
+ .item-col {
261
+ text-align: right;
262
+ border-bottom: 1px solid $color-divider;
263
+ padding-left: $item-list-padding-x;
264
+
265
+ &[class^=item-col] {
266
+ flex-basis: 100%;
267
+ }
268
+
269
+
270
+ &.item-col-check {
271
+ display: none;
272
+ }
273
+
274
+ &.item-col-img {
275
+ .item-img {
276
+ padding-bottom: 65%;
277
+ }
278
+ }
279
+
280
+ &.item-col-title {
281
+ text-align: left;
282
+ padding-bottom: 0;
283
+ border: none;
284
+ flex-grow: 1;
285
+ flex-basis: 0;
286
+
287
+ .item-heading {
288
+ display: none;
289
+ }
290
+
291
+ .item-title {
292
+ font-size: 1rem;
293
+ line-height: 1.4rem;
294
+ }
295
+ }
296
+
297
+ &.item-col-actions-dropdown {
298
+ border: none;
299
+ padding-bottom: 0;
300
+ }
301
+
302
+ &.item-col-sales {
303
+ text-align: left;
304
+ }
305
+
306
+ &.item-col-stats {
307
+ text-align: left;
308
+ }
309
+
310
+ &.item-col-category {
311
+ text-align: left;
312
+ }
313
+
314
+ &.item-col-author {
315
+ text-align: left;
316
+ }
317
+
318
+ &.item-col-date {
319
+ text-align: left;
320
+ }
321
+
322
+
323
+ }
324
+
325
+
326
+ }
327
+ }
328
+
329
+
330
+ }