slash_admin 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: 6f76edc96c5cccb62cb921bf3b4d935ffb84106349c052b6427811ac546f8594
4
- data.tar.gz: 1eef93bc838f43d509a0afc56731f0efd8cf03d997546287b9e000655391b2e4
3
+ metadata.gz: 3076a02b7ac9bdec780ff285197d489ee05a27f81343e5b47f09d327929f2287
4
+ data.tar.gz: 94e9fdabd365ad4e0d3366dcdcd9794bcc73bd1b7562f805987b6d9ebdf35575
5
5
  SHA512:
6
- metadata.gz: e5c9033f6ca29cc9c28df3a0e2d75ae5a24cdc1307c4cfcd3cbaea735f41c3d243ce50df48ebdb61e53b265dd29a6cafa6debb197c8b528e848b9d5a57f6fcaa
7
- data.tar.gz: e551a5c45333957db4b323fb451b1143b298a859c5e71a31a15a0ff016819accb206255f6829fb70c11a3ffee57a4bf2d65b8b75488de6c07d99bc843fb3bb8a
6
+ metadata.gz: 6aff6a578fdfabc8a06ba9ddf6e2eb3133d9c6e5706b7dd2cb5633e804d3ab0c40acd30bd9cf95be8020a784ce77fce21ae51dde700fa82aad5766cf022f2c32
7
+ data.tar.gz: 89b7b2435b230a9ed1076fc71d9acef3999ca8f149c4aa8b4fb37ab8b57fa02ca45bea41e0fb7c72b9f0c6dc2a91c07863984763f2b7aef41e0deaf47ca3b7eb
Binary file
@@ -29,13 +29,19 @@
29
29
  *= require_tree .
30
30
  */
31
31
 
32
- @import "slash_admin/colors";
33
- @import "slash_admin/alert";
32
+ @import "./colors";
33
+ @import "./alert";
34
34
 
35
35
  $pagination-padding-y: 0.4rem !default;
36
36
  $pagination-border-width: 0 !default;
37
37
  $border-radius: 0.15rem !default;
38
38
 
39
+ @mixin main-shadow {
40
+ -webkit-box-shadow: 0 10px 20px 0 rgba(46, 91, 255, 0.07);
41
+ -moz-box-shadow: 0 10px 20px 0 rgba(46, 91, 255, 0.07);
42
+ box-shadow: 0 10px 20px 0 rgba(46, 91, 255, 0.07);
43
+ }
44
+
39
45
  @import "bootstrap";
40
46
 
41
47
  @import url("https://use.fontawesome.com/releases/v5.12.1/css/all.css");
@@ -61,23 +67,19 @@ h6 {
61
67
  }
62
68
 
63
69
  .turbolinks-progress-bar {
64
- background-color: $pink;
70
+ background-color: $primary;
65
71
  height: 3px;
66
72
  }
67
73
 
68
74
  a {
69
75
  transition: all ease 0.6s;
70
- color: $pink;
71
76
 
72
77
  &:hover {
73
- color: darken($primary, 5%);
78
+ text-decoration: none;
79
+ color: $secondary;
74
80
  }
75
81
  }
76
82
 
77
- i {
78
- transition: all ease 0.6s;
79
- }
80
-
81
83
  .btn {
82
84
  cursor: pointer;
83
85
  }
@@ -100,8 +102,7 @@ p[data-f-id="pbf"] {
100
102
  }
101
103
 
102
104
  #admin-dashboard {
103
- background: $tertiary;
104
- padding-top: 68px;
105
+ background: $background;
105
106
  margin: 0;
106
107
 
107
108
  label.form-control-label {
@@ -118,7 +119,7 @@ p[data-f-id="pbf"] {
118
119
  background: transparent;
119
120
 
120
121
  &:hover {
121
- background: $lightgrey;
122
+ background: $textColorHover;
122
123
  }
123
124
  }
124
125
 
@@ -148,7 +149,11 @@ p[data-f-id="pbf"] {
148
149
  }
149
150
 
150
151
  .select2-results__option[aria-disabled="true"] {
151
- background: $lightgrey !important;
152
+ background: $textColorHover !important;
153
+ }
154
+
155
+ .select2-container {
156
+ width: 100% !important;
152
157
  }
153
158
 
154
159
  .select2-container .select2-results__option--highlighted,
@@ -159,12 +164,12 @@ p[data-f-id="pbf"] {
159
164
 
160
165
  .select2-container--default.select2-container--focus .select2-selection--multiple,
161
166
  .select2-container--default.select2-container--focus .select2-selection--single {
162
- border: 1px solid #c2cad8;
167
+ border: 1px solid $border;
163
168
  }
164
169
 
165
170
  .select2-container--default .select2-selection--multiple,
166
171
  .select2-container--default .select2-selection--single {
167
- border: 1px solid #c2cad8;
172
+ border: 1px solid $border;
168
173
  border-radius: 0;
169
174
  height: calc(1.5em + 0.75rem + 2px);
170
175
  padding: 0.375rem 0.75rem;
@@ -173,11 +178,11 @@ p[data-f-id="pbf"] {
173
178
  .select2-container--default .select2-selection--single .select2-selection__rendered,
174
179
  .select2-container--default .select2-selection--multiple .select2-selection__rendered, {
175
180
  padding: 0;
176
- line-height: 24px;
181
+ line-height: 21px;
177
182
  }
178
183
 
179
184
  .select2-container--default .select2-selection--single .select2-selection__arrow,
180
- .select2-container--default .select2-selection--single .select2-selection__arrow{
185
+ .select2-container--default .select2-selection--single .select2-selection__arrow {
181
186
  height: 32px;
182
187
  }
183
188
 
@@ -298,7 +303,7 @@ p[data-f-id="pbf"] {
298
303
  }
299
304
  }
300
305
 
301
- ul.sub-menu {
306
+ .sub-menu {
302
307
  margin-left: 58px;
303
308
  }
304
309
  }
@@ -309,10 +314,10 @@ p[data-f-id="pbf"] {
309
314
 
310
315
  .form-control {
311
316
  transition: all ease 0.6s;
312
- border: 1px solid #c2cad8;
317
+ border: 1px solid $border;
313
318
 
314
319
  &:focus {
315
- border-color: #93a1bb;
320
+ border-color: $primary;
316
321
  }
317
322
  }
318
323
 
@@ -384,6 +389,7 @@ p[data-f-id="pbf"] {
384
389
 
385
390
  &:hover {
386
391
  background: rgba($primary, .4);
392
+
387
393
  .icon-zoom-image {
388
394
  opacity: 1;
389
395
  }
@@ -435,7 +441,7 @@ p[data-f-id="pbf"] {
435
441
  }
436
442
 
437
443
  h1.page-title {
438
- color: $grey;
444
+ color: $textColorHover;
439
445
  font-size: 1.8em;
440
446
  font-weight: 300;
441
447
 
@@ -443,7 +449,6 @@ p[data-f-id="pbf"] {
443
449
  font-size: 13px;
444
450
  letter-spacing: 0;
445
451
  font-weight: 300;
446
- color: #888;
447
452
  }
448
453
  }
449
454
 
@@ -465,13 +470,9 @@ p[data-f-id="pbf"] {
465
470
  vertical-align: middle;
466
471
  }
467
472
 
468
- .navbar-light {
469
- background: #fff;
470
- }
471
-
472
473
  a.menu-toggler {
473
- color: $pink !important;
474
- transition: all 0.6s;
474
+ color: $primary !important;
475
+ transition: all 0.6s ease;
475
476
  float: right;
476
477
  margin: 23px 0 0;
477
478
 
@@ -523,7 +524,7 @@ p[data-f-id="pbf"] {
523
524
  right: 10px;
524
525
  display: inline-block;
525
526
  border-right: 6px solid transparent;
526
- border-bottom: 6px solid #fff;
527
+ border-bottom: 6px solid $border;
527
528
  border-left: 6px solid transparent;
528
529
  content: "";
529
530
  }
@@ -533,7 +534,6 @@ p[data-f-id="pbf"] {
533
534
  .navbar {
534
535
  padding: 0;
535
536
  margin: 0;
536
- background: #fff;
537
537
  transition: all 0.6s ease;
538
538
 
539
539
  .right-nav-fix {
@@ -564,7 +564,7 @@ p[data-f-id="pbf"] {
564
564
  }
565
565
 
566
566
  &.active {
567
- color: #fff;
567
+ color: $textColorHover;
568
568
  }
569
569
  }
570
570
  }
@@ -616,25 +616,20 @@ p[data-f-id="pbf"] {
616
616
  }
617
617
 
618
618
  .navbar-collapse {
619
- background: #fff;
620
619
  width: auto;
621
620
  flex: 1;
622
621
  padding: 0 15px;
623
622
  }
624
623
 
625
624
  .navbar-brand {
626
- color: #fff;
625
+ color: $primary;
627
626
  position: absolute;
628
627
  transform: translateY(-50%);
629
628
  top: 50%;
630
629
  font-weight: 200;
631
630
 
632
- .icon-menu {
633
- color: $pink;
634
- }
635
-
636
631
  &:hover {
637
- color: #fff;
632
+ color: $secondary;
638
633
  }
639
634
  }
640
635
 
@@ -647,14 +642,15 @@ p[data-f-id="pbf"] {
647
642
  height: 68px;
648
643
  padding-left: 20px;
649
644
  padding-right: 20px;
645
+ border-right: 1px solid $border;
650
646
  }
651
647
  }
652
648
 
653
649
  .dashboard-panel {
654
650
  background: #fff;
655
651
  border-radius: 10px;
656
- padding: 15px 15px 30px;
657
- box-shadow: 0px 1px 15px 1px rgba(69,65,78,0.08);
652
+ padding: 15px;
653
+ @include main-shadow;
658
654
  }
659
655
 
660
656
  .line-show {
@@ -662,6 +658,8 @@ p[data-f-id="pbf"] {
662
658
  }
663
659
 
664
660
  .dashboard-stat {
661
+ margin-bottom: 25px;
662
+
665
663
  .display {
666
664
  margin-bottom: 20px;
667
665
  display: block;
@@ -672,10 +670,10 @@ p[data-f-id="pbf"] {
672
670
  padding: 0;
673
671
  font-size: 30px;
674
672
  font-weight: 400;
675
- color: #666d71;
673
+ color: $textColorHover;
676
674
 
677
675
  small {
678
- color: #666d71;
676
+ color: $textColorHover;
679
677
  }
680
678
  }
681
679
  }
@@ -683,7 +681,7 @@ p[data-f-id="pbf"] {
683
681
  .status {
684
682
  margin-top: 5px;
685
683
  font-size: 11px;
686
- color: #aab5bc;
684
+ color: $textColor;
687
685
  font-weight: 600;
688
686
  text-transform: uppercase;
689
687
  }
@@ -700,7 +698,7 @@ p[data-f-id="pbf"] {
700
698
  float: left;
701
699
 
702
700
  small {
703
- color: #aab5bc;
701
+ color: $textColor;
704
702
  font-weight: 600;
705
703
  text-transform: uppercase;
706
704
  }
@@ -711,7 +709,7 @@ p[data-f-id="pbf"] {
711
709
  padding: 7px 0 0;
712
710
 
713
711
  i {
714
- color: #cbd4e0;
712
+ color: $primary;
715
713
  font-size: 26px;
716
714
  }
717
715
  }
@@ -732,6 +730,7 @@ p[data-f-id="pbf"] {
732
730
  .page-sidebar {
733
731
  width: 195px;
734
732
  background: $sidebar;
733
+ border-right: 1px solid $border;
735
734
  position: relative;
736
735
  display: flex;
737
736
 
@@ -744,14 +743,9 @@ p[data-f-id="pbf"] {
744
743
  position: relative;
745
744
 
746
745
  &.active {
747
- background: darken($sidebar, 8%);
748
-
749
746
  > a.nav-link {
750
- color: #fff;
751
-
752
- i {
753
- color: $pink !important;
754
- }
747
+ color: $textColorHover;
748
+ font-weight: bold;
755
749
  }
756
750
 
757
751
  &::after {
@@ -767,29 +761,21 @@ p[data-f-id="pbf"] {
767
761
  border-top: 12px double transparent;
768
762
  border-bottom: 12px double transparent;
769
763
  border-left: 0;
770
- border-right: 8px solid $tertiary;
764
+ border-right: 8px solid $border;
771
765
  }
772
766
  }
773
767
 
774
768
  &:hover {
775
769
  a.nav-link {
776
- color: #fff;
777
-
778
- i {
779
- color: $pink;
780
- }
770
+ color: $textColorHover;
781
771
  }
782
772
 
783
- > ul.sub-menu {
773
+ > .sub-menu {
784
774
  display: inline-block;
785
775
 
786
776
  a.nav-link {
787
777
  &:hover {
788
- color: #fff;
789
-
790
- i {
791
- color: $pink;
792
- }
778
+ color: $textColorHover;
793
779
  }
794
780
  }
795
781
  }
@@ -807,7 +793,7 @@ p[data-f-id="pbf"] {
807
793
  border-top: 12px double transparent;
808
794
  border-bottom: 12px double transparent;
809
795
  border-left: 0;
810
- border-right: 8px solid $pink;
796
+ border-right: 8px solid $border;
811
797
  }
812
798
  }
813
799
 
@@ -837,75 +823,51 @@ p[data-f-id="pbf"] {
837
823
  font-size: 24px;
838
824
  text-shadow: none;
839
825
  text-align: center;
840
- color: $blueIcon;
826
+ color: $primary;
841
827
  }
842
828
  }
843
829
 
844
- ul.sub-menu {
830
+ .sub-menu {
831
+ @include main-shadow;
845
832
  width: 195px;
846
833
  margin-left: 195px;
847
- background: darken($sidebar, 8%);
834
+ background: $sidebar;
848
835
  top: 0;
849
836
  z-index: 9999;
850
837
  position: absolute;
851
- padding: 0;
852
838
  list-style: none;
853
839
  display: none;
840
+ padding: 9px 15px;
854
841
 
855
- li.nav-item {
856
- background: none;
842
+ tr {
857
843
  color: $textColor;
844
+ transition: all .6s ease;
845
+ cursor: pointer;
858
846
 
859
- &::after {
860
- border: 0;
861
- }
862
-
863
- a.nav-link.active {
864
- background: darken($sidebar, 8%);
865
-
866
- i {
867
- color: $pink !important;
868
- }
847
+ &.active {
848
+ color: $textColorHover;
849
+ font-weight: bold;
869
850
  }
870
851
 
871
852
  &:hover {
872
- a.nav-link {
873
- background: darken($sidebar, 8%);
874
- }
853
+ cursor: pointer;
854
+ color: $textColorHover;
875
855
  }
876
856
 
877
- a.nav-link {
878
- min-height: inherit;
879
- padding: 9px 15px;
880
- border: 0;
881
- color: $textColor;
882
-
883
- &.active {
884
- color: #fff;
885
- }
886
-
887
- i {
888
- margin-right: 8px;
889
- font-size: 16px;
890
- line-height: 16px;
891
- text-shadow: none;
892
- text-align: center;
893
- color: $blueIcon;
894
- float: left;
895
- }
857
+ i {
858
+ color: $primary;
859
+ }
896
860
 
897
- .badge {
898
- float: right;
899
- margin-top: 1px;
900
- margin-right: 0;
901
- }
861
+ .badge {
862
+ float: right;
863
+ margin-top: 1px;
864
+ margin-right: 0;
865
+ }
902
866
 
903
- .title {
904
- margin-top: 0;
905
- font-size: 13px;
906
- float: left;
907
- display: block;
908
- }
867
+ .title {
868
+ font-size: 13px;
869
+ float: left;
870
+ display: block;
909
871
  }
910
872
  }
911
873
  }
@@ -917,15 +879,15 @@ p[data-f-id="pbf"] {
917
879
  flex: 1;
918
880
  margin-top: 0;
919
881
  min-height: 100vh;
920
- padding: 25px 20px 10px;
882
+ padding: 0 35px;
921
883
  overflow: auto;
922
884
  }
923
885
  }
924
886
 
925
887
  .breadcrumb {
926
888
  padding: 10px 15px;
927
- border: 1px solid rgba(121,133,166,0.1);
928
- box-shadow: 0px 1px 15px 1px rgba(69,65,78,0.08);
889
+ border: 1px solid rgba(121, 133, 166, 0.1);
890
+ @include main-shadow;
929
891
  background-color: #fff;
930
892
  margin: 20px 0;
931
893
  border-radius: 0;
@@ -946,8 +908,8 @@ p[data-f-id="pbf"] {
946
908
  .portlet {
947
909
  background: #fff;
948
910
  margin-bottom: 25px;
949
- border: 1px solid rgba(121,133,166,0.1);
950
- box-shadow: 0px 1px 15px 1px rgba(69,65,78,0.08);
911
+ border: 1px solid rgba(121, 133, 166, 0.1);
912
+ @include main-shadow;
951
913
  }
952
914
 
953
915
  .btn-circle {
@@ -969,7 +931,7 @@ p[data-f-id="pbf"] {
969
931
  }
970
932
 
971
933
  .portlet-title {
972
- border-bottom: 1px solid rgba(121,133,166,0.1);
934
+ border-bottom: 1px solid rgba(121, 133, 166, 0.1);
973
935
  padding: 10px 20px;
974
936
  margin-bottom: 10px;
975
937
  display: flex;
@@ -977,7 +939,6 @@ p[data-f-id="pbf"] {
977
939
  justify-content: space-between;
978
940
 
979
941
  .caption {
980
- color: $pink;
981
942
  text-transform: uppercase;
982
943
  font-weight: bold;
983
944
  padding: 10px 0;
@@ -1020,7 +981,7 @@ p[data-f-id="pbf"] {
1020
981
 
1021
982
  .datepicker {
1022
983
  border-radius: 0;
1023
- box-shadow: 5px 5px rgba(102, 102, 102, 0.1);
984
+ @include main-shadow;
1024
985
  border: 1px solid #efefef;
1025
986
 
1026
987
  table {
@@ -1057,7 +1018,7 @@ p[data-f-id="pbf"] {
1057
1018
  }
1058
1019
 
1059
1020
  .table-data-list {
1060
- border-color: rgba(121,133,166,0.1) !important;
1021
+ border-color: rgba(121, 133, 166, 0.1) !important;
1061
1022
  margin-top: 1rem;
1062
1023
  background: #fff;
1063
1024
  font-size: .9em;
@@ -1099,13 +1060,14 @@ p[data-f-id="pbf"] {
1099
1060
  height: initial;
1100
1061
  padding: 0 4px;
1101
1062
  }
1063
+
1102
1064
  .select2-container--default .select2-selection--single .select2-selection__arrow,
1103
- .select2-container--default .select2-selection--single .select2-selection__arrow{
1065
+ .select2-container--default .select2-selection--single .select2-selection__arrow {
1104
1066
  height: initial;
1105
1067
  }
1106
1068
 
1107
1069
  .select2-container--default .select2-selection--single .select2-selection__arrow,
1108
- .select2-container--default .select2-selection--single .select2-selection__arrow{
1070
+ .select2-container--default .select2-selection--single .select2-selection__arrow {
1109
1071
  height: initial;
1110
1072
  }
1111
1073
 
@@ -1137,11 +1099,9 @@ p[data-f-id="pbf"] {
1137
1099
  .input-group-prepend {
1138
1100
  height: 30px;
1139
1101
  border-radius: 0;
1140
- background: #ececec;
1141
1102
  padding: 5px;
1142
- border: 1px solid #c2cad9;
1103
+ border: 1px solid $border;
1143
1104
  border-left: 0;
1144
- color: #656971;
1145
1105
  }
1146
1106
  }
1147
1107
 
@@ -1180,7 +1140,7 @@ p[data-f-id="pbf"] {
1180
1140
  &::after {
1181
1141
  content: "\f0dc";
1182
1142
  font-family: "Font Awesome 5 Free";
1183
- color: $lightgrey;
1143
+ color: $textColorHover;
1184
1144
  float: right;
1185
1145
  }
1186
1146
  }
@@ -1204,68 +1164,6 @@ p[data-f-id="pbf"] {
1204
1164
  }
1205
1165
  }
1206
1166
 
1207
- .pagination-panel {
1208
- font-size: 0.9em;
1209
- display: flex;
1210
- align-items: center;
1211
-
1212
- *:not(i) {
1213
- margin-right: 0 !important;
1214
- }
1215
-
1216
- .btn,
1217
- .input-group,
1218
- .input-group-btn {
1219
- display: inline-block;
1220
- width: inherit;
1221
- }
1222
-
1223
- .btn-prev,
1224
- .btn-next {
1225
- color: #666;
1226
- background-color: #e1e5ec;
1227
- border-color: #e1e5ec;
1228
- padding: 5px 10px;
1229
- border-radius: 0;
1230
- cursor: pointer;
1231
- height: 30px;
1232
- line-height: 18px;
1233
-
1234
- &.disabled {
1235
- background-color: #f7f8fa;
1236
- border-color: #eceef3;
1237
- }
1238
-
1239
- &:hover,
1240
- &:active,
1241
- &:focus {
1242
- background-color: #c2cad8;
1243
- border-color: #bcc5d4;
1244
- }
1245
- }
1246
-
1247
- input[type="text"] {
1248
- border: 1px solid #c2cad8;
1249
- text-align: center;
1250
- width: 45px;
1251
- outline: 0 !important;
1252
- height: 30px;
1253
- padding: 5px 10px;
1254
- font-size: 12px;
1255
- line-height: 1.5;
1256
- }
1257
-
1258
- .form-control {
1259
- display: inline-block;
1260
- width: auto;
1261
- height: 30px !important;
1262
- }
1263
-
1264
- select {
1265
- padding: 0;
1266
- }
1267
- }
1268
-
1269
1167
  .pagination-panel-total,
1270
1168
  .pagination-panel-total-count {
1271
1169
  font-weight: bold;
@@ -1403,181 +1301,183 @@ p[data-f-id="pbf"] {
1403
1301
  }
1404
1302
  }
1405
1303
 
1406
- #admin-user {
1304
+ .devise {
1305
+ min-height: 100vh;
1306
+ background: white;
1307
+
1308
+ /* Change Autocomplete styles in Chrome*/
1407
1309
  input:-webkit-autofill,
1408
- input:-webkit-autofill:active,
1310
+ input:-webkit-autofill:hover,
1409
1311
  input:-webkit-autofill:focus,
1410
- input:-webkit-autofill:hover {
1411
- transition: background-color 9999999s ease-in-out 0s;
1412
- -webkit-text-fill-color: #fff !important;
1312
+ textarea:-webkit-autofill,
1313
+ textarea:-webkit-autofill:hover,
1314
+ textarea:-webkit-autofill:focus,
1315
+ select:-webkit-autofill,
1316
+ select:-webkit-autofill:hover,
1317
+ select:-webkit-autofill:focus {
1318
+ border: 1px solid $border;
1319
+ -webkit-box-shadow: 0 0 0 1000px white inset;
1320
+ transition: background-color 5000s ease-in-out 0s;
1321
+ }
1322
+
1323
+ .separator,
1324
+ .section-separator {
1325
+ width: 100%;
1326
+ clear: both;
1413
1327
  }
1414
1328
 
1415
- .failed-login {
1416
- color: $red;
1417
- text-align: center;
1418
- display: block;
1419
- font-size: 0.9em;
1329
+ .separator {
1330
+ height: 15px;
1420
1331
  }
1421
1332
 
1422
- .container-fluid-admin {
1423
- min-height: 100vh;
1333
+ .section-midle-separator {
1334
+ height: 30px;
1424
1335
  }
1425
1336
 
1426
- .bckg-dark {
1427
- background: url("https://source.unsplash.com/1920x1080/?landscape") center
1428
- fixed;
1429
- background-size: cover;
1337
+ .section-separator {
1338
+ height: 45px;
1430
1339
  }
1431
1340
 
1432
- .centered {
1433
- left: 50%;
1434
- position: fixed;
1435
- top: 50%;
1436
- transform: translate(-50%, -50%);
1341
+ .cookies-eu, .cookies-eu-button-holder, .cookies-eu-content-holder {
1342
+ display: flex;
1343
+ line-height: normal;
1437
1344
  }
1438
1345
 
1439
- .title-login {
1440
- font-weight: 200;
1346
+ .btn-submit {
1347
+ padding: 0.375rem 3rem;
1441
1348
  }
1442
1349
 
1443
- .login-form {
1444
- background: $sidebar;
1445
- color: #fff;
1446
- width: 25%;
1447
- margin: 0 auto 25px;
1448
- position: absolute;
1449
- top: 50%;
1450
- left: 50%;
1451
- transform: translate(-50%, -50%);
1350
+ .form-control {
1351
+ border: 1px solid $border;
1352
+ background: white;
1353
+ border-color: $border;
1354
+ border-radius: 3px;
1355
+ }
1452
1356
 
1453
- h2 {
1454
- color: #fff;
1455
- }
1357
+ .row-center {
1358
+ justify-content: center;
1359
+ align-items: center;
1360
+ min-height: 100vh;
1361
+ }
1456
1362
 
1457
- .links-form {
1458
- a {
1459
- color: $blueIcon;
1460
- text-decoration: none;
1363
+ .fix-col {
1364
+ display: flex;
1365
+ align-items: center;
1366
+ justify-content: center;
1367
+ }
1461
1368
 
1462
- &:hover {
1463
- color: darken($blueIcon, 5%);
1464
- }
1465
- }
1466
- }
1369
+ .cookies-eu .cookies-eu-button-holder .cookies-eu-ok {
1370
+ padding: 6px;
1371
+ min-width: auto;
1372
+ background: rgba($primary, 0.83);
1373
+ line-height: normal;
1374
+ margin-right: 10px;
1375
+ }
1467
1376
 
1468
- i {
1469
- font-size: 1.5em;
1470
- color: $blueIcon;
1471
- }
1377
+ .cookies-eu {
1378
+ justify-content: center;
1379
+ align-items: center;
1380
+ background: rgba($primary, 0.83);
1381
+ border: 0;
1382
+ color: white;
1383
+ line-height: normal;
1384
+ padding: 8px;
1385
+ }
1472
1386
 
1473
- .form-control {
1474
- box-shadow: none;
1475
- }
1387
+ label {
1388
+ font-size: .85em;
1389
+ color: $textColor;
1390
+ text-transform: uppercase;
1391
+ margin-bottom: 0.25rem;
1392
+ font-weight: bold;
1393
+ }
1476
1394
 
1477
- .input-group {
1478
- margin-bottom: 40px;
1479
- }
1395
+ .legals-session {
1396
+ padding-top: 10px;
1397
+ }
1480
1398
 
1481
- .content {
1482
- padding: 35px;
1483
- }
1399
+ a {
1400
+ color: $textColor;
1484
1401
 
1485
- .content-login {
1486
- padding: inherit;
1402
+ &:hover, &:focus, &:active {
1403
+ color: $primary;
1487
1404
  }
1405
+ }
1488
1406
 
1489
- .input-group-prepend {
1490
- border-radius: 0;
1491
- padding-bottom: 15px;
1492
- }
1407
+ .cookies-eu-button-holder {
1408
+ align-items: center;
1493
1409
 
1494
- input[type="submit"] {
1495
- cursor: pointer;
1496
- background: $pink;
1410
+ a {
1497
1411
  color: #fff;
1498
- border-radius: 3px;
1499
- border: 0;
1500
- display: block;
1501
- width: 100%;
1502
- padding: 12px;
1503
- margin-top: 35px;
1504
-
1505
1412
  &:hover {
1506
- background: darken($pink, 5%);
1413
+ color: #fff;
1507
1414
  }
1508
1415
  }
1416
+ }
1509
1417
 
1510
- input[type="text"],
1511
- input[type="email"],
1512
- input[type="password"] {
1513
- background-color: transparent;
1514
- border: 0;
1515
- border-radius: 0;
1516
- border-bottom: 1px solid #47566c;
1517
- color: #fff;
1518
- padding: 8px 12px 8px 35px;
1519
- width: 100%;
1520
- float: left;
1521
- margin-left: -20px;
1522
- caret-color: $primary;
1523
- }
1418
+ .container-fluid-devise {
1419
+ min-height: 100vh;
1420
+ overflow: auto;
1421
+ }
1524
1422
 
1525
- .input-group-prepend {
1526
- background-color: transparent;
1527
- border: 0;
1528
- color: #fff;
1529
- padding-top: 5px;
1530
- }
1423
+ .main-title {
1424
+ font-weight: 200;
1425
+ margin: 0;
1426
+ word-break: break-word;
1531
1427
  }
1532
- }
1533
1428
 
1534
- /* Small devices (tablets, 768px and up) */
1535
- @media (max-width: 768px) {
1536
- #admin-user {
1537
- .login-form {
1538
- width: 80%;
1539
- }
1429
+ .sub-title {
1430
+ font-size: .9em;
1431
+ color: $textColor;
1540
1432
  }
1541
- }
1542
1433
 
1543
- /* Medium devices (desktops, 992px and up) */
1544
- @media (min-width: 992px) {
1545
- #admin-user {
1546
- .login-form {
1547
- width: 45%;
1548
- }
1434
+ .login-form-user {
1435
+ width: 80%;
1436
+ margin: 0 auto;
1549
1437
  }
1550
- }
1551
1438
 
1552
- /* Large devices (large desktops, 1200px and up) */
1553
- @media (min-width: 1200px) {
1554
- #admin-user {
1555
- .login-form {
1556
- width: 26%;
1439
+ @media (max-width: 576px) {
1440
+ .login-form-user {
1441
+ width: 100%;
1442
+ transform: initial;
1443
+ position: relative;
1444
+ padding: 25px;
1445
+ }
1446
+ }
1557
1447
 
1558
- input[type="submit"] {
1559
- width: 100%;
1560
- }
1448
+ /* Small devices (tablets, 768px and up) */
1449
+ @media (max-width: 825px) {
1450
+ .login-form-user {
1451
+ width: 80%;
1452
+ transform: initial;
1453
+ position: relative;
1454
+ padding: 25px;
1561
1455
  }
1562
1456
 
1563
- .app-logo {
1564
- margin: 0 0 25px;
1457
+ .row-center {
1458
+ justify-items: initial;
1459
+ align-items: initial;
1565
1460
  }
1566
1461
  }
1567
- }
1568
1462
 
1569
- @media (min-width: 1600px) {
1570
- #admin-user {
1571
- .login-form {
1572
- width: 20%;
1463
+ /* Medium devices (desktops, 992px and up) */
1464
+ @media (min-width: 992px) {
1465
+ .login-form-user {
1466
+ width: 80%;
1467
+ padding: 25px;
1468
+ }
1469
+ }
1573
1470
 
1574
- input[type="submit"] {
1575
- width: 100%;
1576
- }
1471
+ /* Large devices (large desktops, 1200px and up) */
1472
+ @media (min-width: 1200px) {
1473
+ .login-form-user {
1474
+ width: 65%;
1577
1475
  }
1476
+ }
1578
1477
 
1579
- .app-logo {
1580
- margin: 0 0 25px;
1478
+ @media (min-width: 1600px) {
1479
+ .login-form-user {
1480
+ width: 45%;
1581
1481
  }
1582
1482
  }
1583
1483
  }
@@ -1,20 +1,20 @@
1
1
  // Bootstrap override
2
- $blue: #6798ff !default;
2
+ $blue: #6280ec !default;
3
3
  $yellow: #fad961 !default;
4
4
  $green: #57ca85 !default;
5
- $red: #F36265 !default;
6
- $pink: #ff3466 !default;
5
+ $red: #ff808b !default;
7
6
 
8
- $info: #6798ff;
9
- $notice: #fad961;
10
- $success: #57ca85;
11
- $error: #F36265;
7
+ $info: $blue;
8
+ $notice: $yellow;
9
+ $success: $green;
10
+ $error: $red;
12
11
 
13
- $primary: #2e5bff;
14
- $blueIcon: #9ddbff;
15
- $secondary: #120731;
16
- $sidebar: #33375b;
17
- $textColor: #c5a6ee;
18
- $tertiary: #f8f8fd;
19
- $grey: #7985A6;
20
- $lightgrey: #e1e5ec;
12
+ $primary: #6280ec;
13
+ $secondary: #4e4cac;
14
+ $background: #f6f3fc;
15
+
16
+ $sidebar: #fefefe;
17
+ $textColor: #afaec3;
18
+ $textColorHover: #15152d;
19
+
20
+ $border: rgba($textColor, .4);
@@ -5,7 +5,6 @@
5
5
  <a class="nav-item nav-link <%= I18n.available_locales.first == locale ? 'active' : '' %>" id="nav-language-<%= locale %>" data-toggle="tab" href="#language-<%= locale %>" role="tab" aria-controls="language-<%= locale %>">
6
6
  <img src='<%= image_path("slash_admin/#{locale.to_s}.png") %>' style="margin-right: 5px; max-width: 25px;">
7
7
  </a>
8
- </li>
9
8
  <% end %>
10
9
  </nav>
11
10
  <div class="tab-content">
@@ -15,7 +14,7 @@
15
14
  <% translatable_params.each do |a| %>
16
15
  <%= render 'slash_admin/fields/form_group', f: g, a: a %>
17
16
  <% end %>
18
- <% end %>
17
+ <% end %>
19
18
  </div>
20
19
  <% end %>
21
20
  </div>
@@ -1,32 +1,33 @@
1
- <div class="container-fluid container-fluid-admin bckg-dark">
2
- <div class="login-form">
3
- <div class="row">
4
- <div class="col-sm-12 content bckg-dark-light">
5
- <h2 class="text-center title-login"><%= t('slash_admin.view.administration') %></h2>
6
- <div align="center">
1
+ <div class="devise">
2
+ <div class="row no-gutters row-center">
3
+ <div class="col-lg-6 col-md-8 col-sm-12 col-xs-12 fix-col">
4
+ <div class="login-form-user">
5
+ <div class="app-logo" align="center">
7
6
  <img src="<%= asset_path('slash_admin/logo.png') %>" class="img-fluid" style="max-width: 250px;"/>
8
7
  </div>
9
- <%= form_for(:admin, url: '') do |f| %>
10
- <span class="failed-login">
11
- <%= @error_messages %>
12
- </span>
13
- <div class="input-group">
14
- <span class="input-group-prepend">
15
- <i class="fa fa-user"></i>
16
- </span>
17
- <%= f.text_field :login, required: false, autofocus: true, label: false, placeholder: t('slash_admin.view.username'), class: 'form-control' %>
18
- </div>
19
- <div class="input-group">
20
- <span class="input-group-prepend">
21
- <i class="fa fa-lock"></i>
22
- </span>
23
- <%= f.password_field :password, required: false, label: false, placeholder: t('slash_admin.view.password'), class: 'form-control' %>
24
- </div>
25
- <div class="form-actions">
26
- <%= hidden_field_tag :authenticity_token, form_authenticity_token %>
27
- <%= f.submit t('slash_admin.view.login') %>
28
- </div>
8
+ <div class="section-separator"></div>
9
+ <div class="section-separator"></div>
10
+ <h1 class="main-title">Administration</h1>
11
+ <span class="sub-title"><%= I18n.t('dol.fill_login_and_password') %></span>
12
+ <div class="section-separator"></div>
13
+ <div class="content-width content-login">
14
+ <%= form_for(:admin, url: '') do |f| %>
15
+ <div class="form-group">
16
+ <%= f.text_field :login, required: false, autofocus: true, label: false, placeholder: t('slash_admin.view.username'), class: 'form-control' %>
17
+ </div>
18
+
19
+ <div class="form-group">
20
+ <%= f.password_field :password, required: false, label: false, placeholder: t('slash_admin.view.password'), class: 'form-control' %>
21
+ </div>
22
+
23
+ <%= f.submit t('slash_admin.view.login'), class: 'btn btn-block btn-primary btn-submit' %>
29
24
  <% end %>
25
+ </div>
26
+ <div class="section-separator"></div>
27
+ </div>
28
+ </div>
29
+ <div class="col-lg-6 col-md-4 d-none d-sm-none d-md-flex ">
30
+ <div class="container-fluid container-fluid-devise bckg-login" align="center" style="background: url(https://source.unsplash.com/1920x1080/?nature) no-repeat; background-size: cover;">
30
31
  </div>
31
32
  </div>
32
33
  </div>
@@ -1,4 +1,4 @@
1
- <nav class="navbar navbar-expand-md fixed-top navbar-light bg-light">
1
+ <nav class="navbar navbar-expand-md">
2
2
  <div class="page-logo">
3
3
  <a href="<%= slash_admin.dashboard_path %>" class="navbar-brand">ADMIN</a>
4
4
  <a href="<%= slash_admin.toggle_dashboard_path %>" class="menu-toggler sidebar-toggler">
@@ -19,42 +19,62 @@
19
19
  <span class="title"><%= s[:title] %></span>
20
20
  </a>
21
21
  <% if s[:sub_menu] %>
22
- <ul class="sub-menu">
23
- <% s[:sub_menu].each do |sub| %>
24
- <% if sub[:path].present? %>
25
- <li class="nav-item">
26
- <a class="nav-link <%= request.fullpath == sub[:path] ? 'active' : '' %>"
27
- <%= sub.key?(:turbolinks) ? "data-turbolinks=" + boolean_to_string(sub[:turbolinks]) + "" : '' %>
28
- <% s[:blank].present? ? 'target="_blank"' : '' %>
29
- href="<%= sub[:path] %>">
30
- <% if sub[:icon] %>
31
- <i class="<%= sub[:icon] %>"></i>
32
- <% end %>
33
- <span class="title"><%= sub[:title] %></span>
34
- </a>
35
- </li>
36
- <% else %>
37
- <% if access_model?(sub) %>
38
- <li class="nav-item">
39
- <a class="nav-link
40
- <%= controller.controller_name == sub[:model].name.split('::').last.tableize ? 'active' : '' %>"
41
- <%= sub.key?(:turbolinks) ? "data-turbolinks=" + boolean_to_string(sub[:turbolinks]) + "" : '' %>
42
- <% s[:blank].present? ? 'target="_blank"' : '' %>
43
- href="<%= polymorphic_url([:slash_admin, sub[:model]]) %>">
22
+ <div class="sub-menu">
23
+ <table class="table-sm">
24
+ <tbody>
25
+ <% s[:sub_menu].each do |sub| %>
26
+ <% if sub[:path].present? %>
27
+ <tr class="clickable-row <%= request.fullpath == sub[:path] ? 'active' : '' %>"
28
+ data-href="<%= sub[:path] %>"
29
+ data-blank="<%= s[:blank].present? ? 'true' : 'false' %>">
30
+ <td>
44
31
  <% if sub[:icon] %>
45
32
  <i class="<%= sub[:icon] %>"></i>
46
33
  <% end %>
47
- <span class="title"><%= sub[:model].model_name.human(count: 2) %></span>
48
- <%# <span class="badge badge-pill badge-success">1</span> %>
49
- </a>
50
- </li>
34
+ </td>
35
+ <td>
36
+ <span class="title"><%= sub[:title] %></span>
37
+ </td>
38
+ </tr>
39
+ <% else %>
40
+ <% if access_model?(sub) %>
41
+ <tr class="clickable-row <%= controller.controller_name == sub[:model].name.split('::').last.tableize ? 'active' : '' %>"
42
+ data-href="<%= polymorphic_url([:slash_admin, sub[:model]]) %>"
43
+ data-blank="<%= s[:blank].present? ? 'true' : 'false' %>">
44
+ <td>
45
+ <% if sub[:icon] %>
46
+ <i class="<%= sub[:icon] %>"></i>
47
+ <% end %>
48
+ </td>
49
+ <td>
50
+ <span class="title"><%= sub[:model].model_name.human(count: 2) %></span>
51
+ </td>
52
+ </tr>
53
+ <% end %>
51
54
  <% end %>
52
55
  <% end %>
53
- <% end %>
54
- </ul>
56
+ </tbody>
57
+ </table>
58
+ </div>
55
59
  <% end %>
56
60
  </li>
57
61
  <% end %>
58
62
  <% end %>
59
63
  </ul>
60
64
  </div>
65
+
66
+ <script type="text/javascript">
67
+ $(function() {
68
+ $(".clickable-row").click(function() {
69
+ let href = $(this).data("href");
70
+ let blank = $(this).data("blank");
71
+
72
+ if (blank === true) {
73
+ window.open = href;
74
+ }
75
+ else {
76
+ Turbolinks.visit(href);
77
+ }
78
+ });
79
+ });
80
+ </script>
@@ -1,3 +1,3 @@
1
1
  module SlashAdmin
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slash_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOVACS Nicolas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails