zuora_connect_ui 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +39 -0
  4. data/app/assets/javascripts/zuora_connect_ui/input.js +9 -0
  5. data/app/assets/javascripts/zuora_connect_ui.js +30 -0
  6. data/app/assets/stylesheets/_zuora_connect_ui.scss +125 -0
  7. data/app/assets/stylesheets/zuora_connect_ui/base.scss +130 -0
  8. data/app/assets/stylesheets/zuora_connect_ui/box.scss +115 -0
  9. data/app/assets/stylesheets/zuora_connect_ui/breadcrumb_bar.scss +110 -0
  10. data/app/assets/stylesheets/zuora_connect_ui/buttons.scss +185 -0
  11. data/app/assets/stylesheets/zuora_connect_ui/datatables.scss +290 -0
  12. data/app/assets/stylesheets/zuora_connect_ui/grid_view.scss +174 -0
  13. data/app/assets/stylesheets/zuora_connect_ui/input.scss +267 -0
  14. data/app/assets/stylesheets/zuora_connect_ui/modal.scss +40 -0
  15. data/app/assets/stylesheets/zuora_connect_ui/tabs.scss +42 -0
  16. data/app/helpers/input_helper.rb +6 -0
  17. data/app/views/partials/_admin_menu.html.erb +22 -0
  18. data/app/views/partials/_filters.html.erb +34 -0
  19. data/app/views/partials/_table.html.erb +395 -0
  20. data/app/views/peek/views/_connect.html.erb +5 -0
  21. data/lib/peek/views/connect.rb +13 -0
  22. data/lib/zuora_connect_ui/version.rb +3 -0
  23. data/lib/zuora_connect_ui.rb +13 -0
  24. data/vendor/assets/awesome-bootstrap-checkbox/css/awesome-bootstrap-checkbox.scss +256 -0
  25. data/vendor/assets/icons/css/icons.scss +7118 -0
  26. data/vendor/assets/icons/img/FontAwesome.otf +0 -0
  27. data/vendor/assets/icons/img/fontawesome-webfont.eot +0 -0
  28. data/vendor/assets/icons/img/fontawesome-webfont.svg +685 -0
  29. data/vendor/assets/icons/img/fontawesome-webfont.ttf +0 -0
  30. data/vendor/assets/icons/img/fontawesome-webfont.woff +0 -0
  31. data/vendor/assets/icons/img/fontawesome-webfont.woff2 +0 -0
  32. data/vendor/assets/icons/img/glyphicons-filetypes-regular.eot +0 -0
  33. data/vendor/assets/icons/img/glyphicons-filetypes-regular.svg +158 -0
  34. data/vendor/assets/icons/img/glyphicons-filetypes-regular.woff +0 -0
  35. data/vendor/assets/icons/img/glyphicons-halfling-life_preserver.png +0 -0
  36. data/vendor/assets/icons/img/glyphicons-halflings-red.png +0 -0
  37. data/vendor/assets/icons/img/glyphicons-halflings-regular.eot +0 -0
  38. data/vendor/assets/icons/img/glyphicons-halflings-regular.svg +229 -0
  39. data/vendor/assets/icons/img/glyphicons-halflings-regular.ttf +0 -0
  40. data/vendor/assets/icons/img/glyphicons-halflings-regular.woff +0 -0
  41. data/vendor/assets/icons/img/glyphicons-halflings-white.png +0 -0
  42. data/vendor/assets/icons/img/glyphicons-halflings.png +0 -0
  43. data/vendor/assets/icons/img/glyphicons-regular.eot +0 -0
  44. data/vendor/assets/icons/img/glyphicons-regular.otf +0 -0
  45. data/vendor/assets/icons/img/glyphicons-regular.svg +498 -0
  46. data/vendor/assets/icons/img/glyphicons-regular.ttf +0 -0
  47. data/vendor/assets/icons/img/glyphicons-regular.woff +0 -0
  48. data/vendor/assets/icons/img/glyphicons-social-regular.eot +0 -0
  49. data/vendor/assets/icons/img/glyphicons-social-regular.svg +79 -0
  50. data/vendor/assets/icons/img/glyphicons-social-regular.ttf +0 -0
  51. data/vendor/assets/icons/img/glyphicons-social-regular.woff +0 -0
  52. data/vendor/assets/icons/img/glyphicons_search.png +0 -0
  53. data/vendor/assets/icons/img/zuora.eot +0 -0
  54. data/vendor/assets/icons/img/zuora.svg +557 -0
  55. data/vendor/assets/icons/img/zuora.ttf +0 -0
  56. data/vendor/assets/icons/img/zuora.woff +0 -0
  57. metadata +211 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 21571ab34714c28083e54d033233aaa2dadb378d
4
+ data.tar.gz: be9b865ac8f13e0a10300477074b192faffaab73
5
+ SHA512:
6
+ metadata.gz: c8a3e2059a7960cccb7db218da5b501c38cf2b248113d5e72589636ba7b64105a2dbd62aa8f04ed1f987771ace1bdfa04d432a51350f516cefa83671fb715968
7
+ data.tar.gz: bebbf6e08c42bbaea730c946c295e2537afc714cade7dda609dd9c0f7fd22b03c3bf6b498486f40a3be27294ae3d9affe7b23c246d14b957a55c4c1a5c888b51
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 hmcguire
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # ZuoraConnectUI
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/zuora_connect_ui`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'zuora_connect_ui'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install zuora_connect_ui
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/zuora_connect_ui.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,9 @@
1
+ // 'Polyfill' for :placeholder-shown, since it's not standard yet
2
+
3
+ $(document).on('focus focusout', '.zuo-textbox', function(e) {
4
+ $("label[for='" + $(this).attr('id') + "']").toggleClass('floating', $(this).val() !== "");
5
+ });
6
+
7
+ $(document).on('change.select2', 'select', function(e) {
8
+ $("label[for='" + $(this).attr('id') + "']").toggleClass('floating', $(this).val() !== "");
9
+ });
@@ -0,0 +1,30 @@
1
+ // JQuery UI
2
+ //
3
+ //= require jquery-ui
4
+ //
5
+ //
6
+ // Bootstrap
7
+ //
8
+ //= require bootstrap-sprockets
9
+ //
10
+ //
11
+ // Select2
12
+ //
13
+ //= require select2-full
14
+ //= require select2_locale_en
15
+ //= require select2_locale_fr
16
+ //= require select2_locale_zh-CN
17
+ //
18
+ //
19
+ // Datatables
20
+ //
21
+ //= require dataTables/jquery.dataTables
22
+ //= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
23
+ //= require dataTables/extras/dataTables.responsive
24
+ //= require dataTables/extras/dataTables.responsive
25
+ //= require dataTables/extras/dataTables.colReorder
26
+ //= require dataTables/extras/dataTables.select
27
+ //
28
+ //
29
+ //= require zuora_connect_ui/input
30
+ //
@@ -0,0 +1,125 @@
1
+ $primary: #384B5D;
2
+ $neutral-1: #1A232B;
3
+ $neutral-2: #D0D3DA;
4
+ $neutral-3: #F1F2F4;
5
+ $neutral-4: #FFFFFF;
6
+ $support-1: #036ED1;
7
+ $support-2: #31B865;
8
+ $support-3: #FFE952;
9
+ $support-4: #D23F3C;
10
+ $zuora-accent: #6EC5AB; //zuora aqua
11
+ $primary-hover: #025aab;
12
+
13
+ $disabled-btn-bg: #E9EBEE;
14
+ $neutral-shadow: rgba(56, 75, 93, 0.3); // disabled btn text color, dropdown box shadow color
15
+
16
+ $brand-primary: $primary; //New
17
+ $brand-success: $support-2; //show
18
+ $brand-info: #6d95a0; //Edit/Update
19
+ $brand-warning: $support-3; //Other
20
+ $brand-danger: $support-4; //Deleted
21
+
22
+ // $navbar-default-color: #394b5b;
23
+ // $navbar-default-bg: #394b5b;
24
+ // $navbar-default-link-color: #fff;
25
+ // $navbar-default-link-hover-color: #fff;
26
+ // $navbar-default-link-hover-bg: transparent;
27
+ // $navbar-default-link-active-bg: transparent;
28
+ // $navbar-default-link-active-color: #fff;
29
+ // $navbar-margin-bottom: 0px;
30
+ // $navbar-height: 50px;
31
+ // $navbar-border-radius: 0px;
32
+ // $navbar-default-toggle-hover-bg: transparent;
33
+ // $navbar-default-toggle-icon-bar-bg: #afb7be;
34
+ // $navbar-default-toggle-border-color: transparent;
35
+ // $navbar-default-toggle-icon-bar-bg: #6ec5ab;
36
+ // $navbar-padding-vertical: 15px;
37
+ // $navbar-padding-horizontal: 15px;
38
+
39
+ $border-radius-base: 0px;
40
+ $border-radius-large: 0px;
41
+
42
+ $breadcrumb-padding-vertical: 1rem;
43
+ $breadcrumb-padding-horizontal: 1rem;
44
+ $breadcrumb-bg: none;
45
+ $breadcrumb-color: $neutral-1;
46
+ $breadcrumb-active-color: $neutral-1;
47
+ $breadcrumb-separator: "/";
48
+
49
+ $link-color: $support-1;
50
+ $link-hover-color: $primary-hover;
51
+ $link-hover-decoration: underline;
52
+
53
+ $dropdown-link-color: $primary;
54
+ $dropdown-divider-bg: $neutral-3;
55
+ $dropdown-link-hover-bg: $neutral-3;
56
+ $dropdown-link-hover-color: $primary;
57
+ $dropdown-link-active-color: #6ec5ab;
58
+ $dropdown-link-active-bg: $neutral-3;
59
+ $dropdown-bg: $neutral-4;
60
+ $dropdown-border: #d3d7d8;
61
+ $zindex-dropdown: 1000;
62
+
63
+ $font-family-base: Muli, sans-serif;
64
+ $font-size-base: 12px;
65
+ $line-height-base: 1.4;
66
+ $text-color: $neutral-1;
67
+ $body-bg: none;
68
+
69
+ $modal-backdrop-bg: #fff;
70
+ $modal-content-bg: #fff;
71
+ $modal-header-border-color: transparent;
72
+ $modal-title-padding: 15px 20px;
73
+ $modal-inner-padding: 15px 20px;;
74
+ $modal-footer-border-color: transparent;
75
+ $modal-sm: 400px;
76
+ $modal-md: 600px;
77
+ $modal-lg: 800px;
78
+ $modal-backdrop-bg: rgb(57,75,93) ;
79
+ $modal-backdrop-opacity: .6;
80
+ $modal-content-border-color: 2px solid #e9ebee;
81
+ $modal-content-fallback-border-color: 2px solid #e9ebee;
82
+
83
+ // I think this is for bootstrap class we don't use
84
+ $btn-border-radius-small: 3px;
85
+ $btn-border-radius-medium: 3px;
86
+ $btn-border-radius-large: 5px;
87
+
88
+ // Panels are used by summernote, which shouldn't really be here
89
+ $panel-bg: #FFF;
90
+ $panel-default-heading-bg: #FFF;
91
+ $panel-default-border: #FFF;
92
+
93
+ // JQuery UI
94
+ @import "jquery-ui";
95
+
96
+ // Datatables
97
+ @import "dataTables/bootstrap/3/jquery.dataTables.bootstrap";
98
+ @import "dataTables/extras/dataTables.responsive";
99
+
100
+ // Bootstrap
101
+ @import "bootstrap-sprockets";
102
+ @import "bootstrap";
103
+
104
+ // Awesome Bootstrap Checkbox
105
+ $font-family-icon: webicons;
106
+ $check-icon: "\E936";
107
+ @import "css/awesome-bootstrap-checkbox";
108
+
109
+ // Select2
110
+ @import "select2";
111
+ @import "select2-bootstrap";
112
+
113
+ // Glyphicon and FA
114
+ @import "css/icons.scss";
115
+
116
+ // Zuora Connect UI
117
+ @import "zuora_connect_ui/base";
118
+ @import "zuora_connect_ui/box";
119
+ @import "zuora_connect_ui/breadcrumb_bar";
120
+ @import "zuora_connect_ui/buttons";
121
+ @import "zuora_connect_ui/datatables";
122
+ @import "zuora_connect_ui/grid_view";
123
+ @import "zuora_connect_ui/input";
124
+ @import "zuora_connect_ui/modal";
125
+ @import "zuora_connect_ui/tabs";
@@ -0,0 +1,130 @@
1
+ html {
2
+ background-color: $neutral-3;
3
+ font-size: 16px;
4
+ }
5
+
6
+ body {
7
+ font-size: 0.875rem;
8
+ line-height: 1.25rem;
9
+ }
10
+
11
+ p {
12
+ color: $primary;
13
+ font-size: 1rem;
14
+ line-height: 1.5rem;
15
+ }
16
+
17
+ h1 {
18
+ color: $primary;
19
+ font-size: 1.625rem;
20
+ line-height: 2.25rem;
21
+ font-weight: 600;
22
+ letter-spacing: .0125rem;
23
+ }
24
+ h2 {
25
+ color: $primary;
26
+ font-size: 1.25rem;
27
+ line-height: 1.75rem;
28
+ }
29
+ h3 {
30
+ color: $primary;
31
+ font-size: 1rem;
32
+ line-height: 1.5rem;
33
+ font-weight: 600;
34
+ }
35
+ h4 {
36
+ color: $primary;
37
+ font-size: .75rem;
38
+ line-height: 1rem;
39
+ font-weight: 600;
40
+ letter-spacing: -0.0125rem;
41
+ }
42
+
43
+ select {
44
+ background-color: $neutral-4;
45
+ cursor: pointer;
46
+ border: none;
47
+ padding-right: 1rem;
48
+ -webkit-appearance: none;
49
+ -moz-appearance: none;
50
+ }
51
+
52
+ // Potential to remove focus ring from select
53
+ // :-moz-focusring {
54
+ // color: transparent;
55
+ // text-shadow: 0 0 0 #000;
56
+ // }
57
+ // option:not(:checked) {
58
+ // color: black; /* prevent <option>s from becoming transparent as well */
59
+ // }
60
+
61
+ .select_container {
62
+ text-align: center;
63
+ }
64
+
65
+ .center{
66
+ text-align: center
67
+ }
68
+
69
+ #content {
70
+ margin: 0px 15px 15px 15px;
71
+ background-color: $neutral-4;
72
+ min-height: 500px;
73
+
74
+ > * {
75
+ padding-left: 1rem;
76
+ padding-right: 1rem;
77
+ }
78
+ }
79
+
80
+ .dropdown-menu {
81
+ min-width: 164px;
82
+ padding: 6px 0;
83
+ box-shadow: 0 1px 8px -1px $neutral-shadow;
84
+ border-radius: 0;
85
+ font-size: .875rem;
86
+
87
+
88
+ // working on the arrow for dropdowns
89
+ // &:before {
90
+ // content: '';
91
+ // position: absolute;
92
+ // border: 10px solid transparent;
93
+ // border-bottom-color: #00aabb;
94
+ // }
95
+ // &:after {
96
+ // content: '';
97
+ // position: absolute;
98
+ // border: 10px solid transparent;
99
+ // border-bottom-color: black;
100
+ // }
101
+
102
+ > li {
103
+ &.divider {
104
+ margin: .5rem;
105
+ }
106
+ > a {
107
+ padding: .25rem .75rem;
108
+ // If we aren't using Font Awesome or Glyphicons, this next block can all go
109
+ span.fa {
110
+ margin-right: 10px;
111
+ }
112
+ span.glyphicons {
113
+ padding-left: 0px;
114
+ margin-right: 4px;
115
+ &:before {
116
+ font-size: inherit;
117
+ position: inherit;
118
+ color: $dropdown-link-color;
119
+ }
120
+ }
121
+ &:hover{
122
+ span.glyphicons {
123
+ &:before {
124
+ color: $dropdown-link-hover-color;
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
@@ -0,0 +1,115 @@
1
+ .box {
2
+ margin: 0px 0px;
3
+
4
+ .box-header {
5
+ height: 42px;
6
+ border: 1px solid #ddd;
7
+ margin-bottom: -1px;
8
+ padding: 10px;
9
+ background-color: #fafafa;
10
+ background-image: -moz-linear-gradient(top, #fafafa, #efefef);
11
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fafafa), to(#efefef));
12
+ background-image: -webkit-linear-gradient(top, #fafafa, #efefef);
13
+ background-image: -o-linear-gradient(top, #fafafa, #efefef);
14
+ background-image: linear-gradient(to bottom, #fafafa, #efefef);
15
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#fafafa', endColorstr='#efefef', GradientType=0);
16
+ -webkit-box-shadow: none;
17
+ -moz-box-shadow: none;
18
+ box-shadow: none;
19
+ -webkit-border-radius: 2px 2px 0px 0px;
20
+ -moz-border-radius: 2px 2px 0px 0px;
21
+ border-radius: 2px 2px 0px 0px;
22
+ overflow: hidden;
23
+
24
+ h2{
25
+ font-size: 16px;
26
+ line-height: 16px;
27
+ float:left;
28
+ margin-top: 2px;
29
+ color: #646464;
30
+ font-weight: normal;
31
+ text-shadow: 0px 1px 0px #fff;
32
+
33
+ i {
34
+ margin: 1px 3px 0px 5px;
35
+ opacity: .4;
36
+ }
37
+ }
38
+ .break{
39
+ border-left: 1px solid #fcfcfc;
40
+ border-right: 1px solid #ddd;
41
+ margin: -12px 10px -10px 10px;
42
+ padding: 12px 0px 10px 0px;
43
+ }
44
+
45
+ .box-actions {
46
+ display:inline
47
+
48
+ a, button {
49
+ margin-top:-6px;
50
+ margin-right:5px;
51
+ }
52
+ }
53
+
54
+ .box-icon {
55
+ float:right;
56
+ margin-top: 1px;
57
+
58
+ i {
59
+ -webkit-transition: all 0.1s ease-in-out;
60
+ -moz-transition: all 0.1s ease-in-out;
61
+ -o-transition: all 0.1s ease-in-out;
62
+ -ms-transition: all 0.1s ease-in-out;
63
+ transition: all 0.1s ease-in-out;
64
+ opacity: .4;
65
+
66
+ &:hover {
67
+ opacity: .8;
68
+ }
69
+ }
70
+
71
+ a {
72
+ color:#777777;
73
+ margin: 0px 5px;
74
+
75
+ &:hover, &:focus{
76
+ color: #333;
77
+ font-weight: bold;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ .box-content {
83
+ margin-top: -1px;
84
+ padding: 10px;
85
+ border: 1px solid #ddd;
86
+ background: #fcfcfc;
87
+ -webkit-border-radius: 0px 0px 2px 2px;
88
+ -moz-border-radius: 0px 0px 2px 2px;
89
+ border-radius: 0px 0px 2px 2px;
90
+ -webkit-box-shadow: 0 1px 0px rgba(255, 255, 255, .6);
91
+ -moz-box-shadow: 0 1px 0px rgba(255, 255, 255, .6);
92
+ box-shadow: 0 1px 0px rgba(255, 255, 255, .6);
93
+
94
+ >.box-footer {
95
+ margin: 20px -10px -10px -10px;
96
+ border: none;
97
+ border-top: 1px solid #ddd;
98
+ }
99
+ }
100
+ .box-footer {
101
+ min-height: 42px;
102
+ border: 1px solid #ddd;
103
+ margin-bottom: -1px;
104
+ padding: 10px;
105
+ background-color: #fafafa;
106
+ -webkit-box-shadow: none;
107
+ -moz-box-shadow: none;
108
+ box-shadow: none;
109
+ -webkit-border-radius: 0px 0px 2px 2px;
110
+ -moz-border-radius: 2px 2px 2px 2px;
111
+ border-radius: 0px 0px 2px 2px;
112
+ overflow: hidden;
113
+ margin-top: -1px;
114
+ }
115
+ }
@@ -0,0 +1,110 @@
1
+ #breadcrumb-bar {
2
+ #breadcrumbs {
3
+ .breadcrumb {
4
+ font-size: .75rem;
5
+ margin-bottom: 0px; // override bootstrap default
6
+ }
7
+ }
8
+
9
+ #peek {
10
+ font-size: .625rem;
11
+ text-shadow: none;
12
+ background-color: transparent;
13
+ overflow: hidden; // keeps the contents hidden when peek is collapsed
14
+ width: 0;
15
+
16
+ -webkit-transition: width 0.3s ease-in-out;
17
+ -moz-transition: width 0.3s ease-in-out;
18
+ transition: width 0.3s ease-in-out;
19
+
20
+ &.active {
21
+ width: 54rem;
22
+ }
23
+
24
+ &.disabled {
25
+ display: block;
26
+
27
+ &.active {
28
+ width: 7rem;
29
+ }
30
+ }
31
+
32
+ .wrapper {
33
+ padding-left: 1rem;
34
+ width: auto;
35
+ }
36
+
37
+ .bucket {
38
+ white-space: nowrap;
39
+ .hidden {
40
+ display: inline !important;
41
+ }
42
+ }
43
+
44
+ strong {
45
+ color: $neutral-1;
46
+ }
47
+
48
+ #peek-view-connect > strong:not(:first-child) {
49
+ margin-left: 15px;
50
+ }
51
+ }
52
+
53
+ #admin-menu {
54
+ display: flex;
55
+ justify-content: flex-end;
56
+ align-items: center;
57
+ position: absolute;
58
+ top: 0;
59
+ right: 0;
60
+ max-width: 100%;
61
+
62
+ background-color: $neutral-4;
63
+ border-left: 1px solid $neutral-2;
64
+ border-bottom: 1px solid $neutral-2;
65
+ border-radius: 0rem 0rem 0rem .5rem;
66
+ box-shadow: 0 1px 8px -1px $neutral-shadow;
67
+
68
+ #admin-peek-btn {
69
+ z-index: 2;
70
+ border-radius: 0 0 0 .5rem;
71
+ background: white;
72
+ padding: 1rem .5rem;
73
+ line-height: 1.2rem;
74
+
75
+ &:before {
76
+ display: inline-block;
77
+ transform: rotate(90deg);
78
+ font-size: .75rem;
79
+ }
80
+ }
81
+
82
+ .dropdown-toggle {
83
+ cursor: pointer;
84
+ min-width: 120px;
85
+ z-index: 2;
86
+ background: white;
87
+ border-left: 1px solid $neutral-3;
88
+ font-size: .75rem;
89
+ padding: 1rem;
90
+
91
+ > span {
92
+ float: right;
93
+ padding: .25rem 0rem;
94
+ }
95
+
96
+ }
97
+
98
+ .dropdown-menu{
99
+ min-width: 120px;
100
+ left: unset;
101
+ right: 0;
102
+ z-index: 1;
103
+ margin-top: -2px;
104
+ font-size: .75rem;
105
+ border-radius: 0 0 0 .5rem;
106
+ border: 1px solid #D0D3DA;
107
+ border-right: none;
108
+ }
109
+ }
110
+ }