solidus_backend 2.8.2 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_backend might be problematic. Click here for more details.

Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend/components/sortable_table.js +1 -0
  3. data/app/assets/javascripts/spree/backend/components/tabs.js +1 -0
  4. data/app/assets/javascripts/spree/backend/shipments.js +1 -0
  5. data/app/assets/javascripts/spree/backend/stock_management.js +9 -0
  6. data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +1 -1
  7. data/app/assets/javascripts/spree/backend/views/stock/edit_stock_item_row.js +18 -2
  8. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +24 -16
  9. data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +12 -0
  10. data/app/assets/stylesheets/spree/backend/components/_buttons.scss +18 -0
  11. data/app/assets/stylesheets/spree/backend/components/_image_placeholder.scss +2 -2
  12. data/app/assets/stylesheets/spree/backend/components/_list_group.scss +2 -2
  13. data/app/assets/stylesheets/spree/backend/components/_messages.scss +20 -12
  14. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +45 -11
  15. data/app/assets/stylesheets/spree/backend/components/_progress.scss +3 -3
  16. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +1 -2
  17. data/app/assets/stylesheets/spree/backend/components/_tabs.scss +14 -13
  18. data/app/assets/stylesheets/spree/backend/globals/_deprecated_variables.scss +24 -0
  19. data/app/assets/stylesheets/spree/backend/globals/_deprecation.scss +10 -1
  20. data/app/assets/stylesheets/spree/backend/globals/_functions.scss +4 -1
  21. data/app/assets/stylesheets/spree/backend/globals/_variables.scss +88 -57
  22. data/app/assets/stylesheets/spree/backend/globals/_variables_override.scss +1 -0
  23. data/app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss +1 -1
  24. data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +1 -1
  25. data/app/assets/stylesheets/spree/backend/sections/_log_entries.scss +8 -2
  26. data/app/assets/stylesheets/spree/backend/sections/_orders.scss +17 -6
  27. data/app/assets/stylesheets/spree/backend/sections/_products.scss +3 -1
  28. data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +5 -5
  29. data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +4 -4
  30. data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +1 -1
  31. data/app/assets/stylesheets/spree/backend/shared/_fonts.scss +15 -0
  32. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +27 -7
  33. data/app/assets/stylesheets/spree/backend/shared/_header.scss +2 -2
  34. data/app/assets/stylesheets/spree/backend/shared/_icons.scss +5 -1
  35. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +5 -4
  36. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +11 -6
  37. data/app/assets/stylesheets/spree/backend/shared/_typography.scss +10 -6
  38. data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -0
  39. data/app/controllers/spree/admin/customer_returns_controller.rb +8 -1
  40. data/app/controllers/spree/admin/log_entries_controller.rb +3 -0
  41. data/app/controllers/spree/admin/orders_controller.rb +0 -1
  42. data/app/controllers/spree/admin/users_controller.rb +4 -2
  43. data/app/helpers/spree/admin/base_helper.rb +9 -3
  44. data/app/helpers/spree/admin/promotions_helper.rb +15 -0
  45. data/app/views/spree/admin/images/index.html.erb +1 -1
  46. data/app/views/spree/admin/log_entries/index.html.erb +1 -19
  47. data/app/views/spree/admin/option_types/edit.html.erb +1 -1
  48. data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -1
  49. data/app/views/spree/admin/payments/_capture_events.html.erb +15 -18
  50. data/app/views/spree/admin/payments/_list.html.erb +1 -1
  51. data/app/views/spree/admin/payments/_log_entries.html.erb +29 -0
  52. data/app/views/spree/admin/payments/show.html.erb +13 -6
  53. data/app/views/spree/admin/payments/source_forms/{_storecredit.html.erb → _store_credit.html.erb} +0 -0
  54. data/app/views/spree/admin/payments/source_views/{_storecredit.html.erb → _store_credit.html.erb} +0 -0
  55. data/app/views/spree/admin/prices/_form.html.erb +1 -1
  56. data/app/views/spree/admin/product_properties/index.html.erb +1 -1
  57. data/app/views/spree/admin/products/_form.html.erb +16 -5
  58. data/app/views/spree/admin/products/edit.html.erb +1 -1
  59. data/app/views/spree/admin/promotions/_form.html.erb +2 -2
  60. data/app/views/spree/admin/promotions/index.html.erb +4 -4
  61. data/app/views/spree/admin/reimbursements/edit.html.erb +2 -2
  62. data/app/views/spree/admin/shared/_head.html.erb +0 -3
  63. data/app/views/spree/admin/shared/_modal.html.erb +1 -1
  64. data/app/views/spree/admin/shipping_methods/_form.html.erb +10 -10
  65. data/app/views/spree/admin/stock_items/_stock_management.html.erb +1 -1
  66. data/app/views/spree/admin/store_credits/edit_validity.html.erb +1 -1
  67. data/app/views/spree/admin/store_credits/index.html.erb +1 -1
  68. data/app/views/spree/admin/store_credits/show.html.erb +1 -1
  69. data/app/views/spree/admin/stores/_form.html.erb +1 -0
  70. data/app/views/spree/admin/style_guide/topics/typography/_colors.html.erb +30 -20
  71. data/app/views/spree/admin/style_guide/topics/typography/_fonts.html.erb +1 -1
  72. data/app/views/spree/admin/taxonomies/edit.html.erb +1 -1
  73. data/app/views/spree/admin/taxons/_form.html.erb +1 -1
  74. data/app/views/spree/admin/taxons/edit.html.erb +2 -2
  75. data/app/views/spree/admin/users/edit.html.erb +2 -2
  76. data/app/views/spree/admin/users/index.html.erb +2 -2
  77. data/app/views/spree/admin/variants/_form.html.erb +1 -1
  78. data/app/views/spree/admin/variants/index.html.erb +1 -1
  79. data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
  80. data/spec/controllers/spree/admin/locale_controller_spec.rb +45 -0
  81. data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +3 -3
  82. data/spec/controllers/spree/admin/orders_controller_spec.rb +2 -2
  83. data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +1 -1
  84. data/spec/features/admin/locale_spec.rb +1 -2
  85. data/spec/features/admin/orders/adjustments_spec.rb +1 -1
  86. data/spec/features/admin/orders/customer_details_spec.rb +5 -7
  87. data/spec/features/admin/orders/customer_returns_spec.rb +28 -0
  88. data/spec/features/admin/orders/listing_spec.rb +1 -6
  89. data/spec/features/admin/orders/log_entries_spec.rb +2 -2
  90. data/spec/features/admin/orders/new_order_spec.rb +3 -3
  91. data/spec/features/admin/orders/order_details_spec.rb +8 -3
  92. data/spec/features/admin/orders/payments_spec.rb +80 -39
  93. data/spec/features/admin/products/edit/products_spec.rb +25 -0
  94. data/spec/features/admin/products/edit/taxons_spec.rb +4 -0
  95. data/spec/features/admin/products/pricing_spec.rb +24 -6
  96. data/spec/features/admin/products/products_spec.rb +4 -4
  97. data/spec/features/admin/products/stock_management_spec.rb +17 -0
  98. data/spec/features/admin/products/variant_spec.rb +1 -1
  99. data/spec/features/admin/promotions/promotion_spec.rb +52 -0
  100. data/spec/features/admin/store_credits_spec.rb +3 -3
  101. data/spec/features/admin/users_spec.rb +22 -0
  102. data/spec/spec_helper.rb +1 -2
  103. data/spec/support/appear_before_matcher.rb +1 -1
  104. data/vendor/assets/fonts/inter/Inter-Regular.woff +0 -0
  105. data/vendor/assets/fonts/inter/Inter-Regular.woff2 +0 -0
  106. data/vendor/assets/fonts/inter/Inter-SemiBold.woff +0 -0
  107. data/vendor/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
  108. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +4 -0
  109. metadata +21 -11
  110. data/.eslintrc +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c93aa1f07a7b4f7f149247da80bbefd1aa8958ae69a858e52c8f73b318202479
4
- data.tar.gz: 37ffc2de4b05c75fe687f58ed25866fab345ed6787b3da9f5b1da6e75d91c46a
3
+ metadata.gz: 6163ba6d77d3221cc770c66492bbfcd1558af588dbabf65ea1f16be1e226cad3
4
+ data.tar.gz: 2733f79263f19a150f18541efad616ca24f5500027982df8c5160b7cf26a7674
5
5
  SHA512:
6
- metadata.gz: 16bf1f77c552ba76abb465b12da72f01f274ebb6abd4a18935148f00fcd78bdf797d2a1a72faf63357653e754c6906b54fb4930f3b317371c2ab764dc66b8de8
7
- data.tar.gz: dcbf0c2727430cab241022fc139b0656d96f7a651fcc9d838429d6015a4d4a71862f47372de95f2d7f3c40216f25c3cedb2441716d3b11b3c050c267c3bacb5a
6
+ metadata.gz: d10ea54cc2aae32b27840529e8ef5b0ec7617542e1de479b977ab99383e6c673f2e4f779b7bcfe93962e1ecb45452c4de577ae9da4360793b6a64ce40ba33820
7
+ data.tar.gz: b827d361e91b68319dbef13ece7ded929114488efd412b0bcfafabe9d42d599a62266d2ac7fb858e4e85035470d493216b864ee561556f19aadb698dce05ce7d
@@ -1,4 +1,5 @@
1
1
  //= require solidus_admin/Sortable
2
+ /* eslint no-unused-vars: "off" */
2
3
 
3
4
  Spree.ready(function() {
4
5
  var sortable_tables = document.querySelectorAll('table.sortable');
@@ -1,4 +1,5 @@
1
1
  /* global Tabs */
2
+ /* eslint no-redeclare: "off" */
2
3
 
3
4
  Tabs = (function() {
4
5
  function Tabs(el) {
@@ -1,4 +1,5 @@
1
1
  // Shipments AJAX API
2
+ /* eslint no-extra-semi: "off", no-unused-vars: "off" */
2
3
 
3
4
  var ShipmentAddVariantView = Backbone.View.extend({
4
5
  events: {
@@ -3,6 +3,7 @@ Spree.ready(function() {
3
3
  var $el = $(this);
4
4
  var model = new Spree.Models.StockItem($el.data('stock-item'));
5
5
  var trackInventory = $el.data('track-inventory');
6
+ var canEdit = $el.data('can-edit')
6
7
  new Spree.Views.Stock.EditStockItemRow({
7
8
  el: $el,
8
9
  stockLocationName: $el.data('stock-location-name'),
@@ -16,6 +17,14 @@ Spree.ready(function() {
16
17
  title: '"Track inventory" option disabled for this variant'
17
18
  });
18
19
  }
20
+
21
+ if (canEdit == false) {
22
+ $('.js-edit-stock-item input').attr({
23
+ disabled: true,
24
+ class: 'with-tip',
25
+ title: 'You do not have permission to manage stock'
26
+ });
27
+ }
19
28
  });
20
29
 
21
30
  $('.js-add-stock-item').each(function() {
@@ -20,7 +20,7 @@
20
20
  {{#if editing}}
21
21
  <td class="line-item-qty-edit">
22
22
  <form>
23
- <input type="number" name="quantity" value="{{ line_item.quantity }}" min="0" class="line_item_quantity" size="5">
23
+ <input type="number" name="quantity" value="{{ line_item.quantity }}" min="1" class="line_item_quantity" size="5">
24
24
  </form>
25
25
  </td>
26
26
  {{else}}
@@ -13,7 +13,8 @@ Spree.Views.Stock.EditStockItemRow = Backbone.View.extend({
13
13
  "click .submit": "onSubmit",
14
14
  "submit form": "onSubmit",
15
15
  "click .cancel": "onCancel",
16
- 'input [name="count_on_hand"]': "countOnHandChanged"
16
+ 'input [name="count_on_hand"]': "countOnHandChanged",
17
+ 'input [name="backorderable"]': "backorderableChanged"
17
18
  },
18
19
 
19
20
  template: HandlebarsTemplates['stock_items/stock_location_stock_item'],
@@ -43,6 +44,20 @@ Spree.Views.Stock.EditStockItemRow = Backbone.View.extend({
43
44
  this.render();
44
45
  },
45
46
 
47
+ onChange: function() {
48
+ var count_on_hand_changed = this.previousAttributes.count_on_hand != this.model.attributes.count_on_hand;
49
+ var backorderable_changed = this.previousAttributes.backorderable != this.model.attributes.backorderable;
50
+ var changed = count_on_hand_changed || backorderable_changed;
51
+
52
+ this.$el.toggleClass('changed', changed);
53
+ },
54
+
55
+ backorderableChanged: function(ev) {
56
+ this.model.set("backorderable", ev.target.checked);
57
+
58
+ this.onChange();
59
+ },
60
+
46
61
  countOnHandChanged: function(ev) {
47
62
  var diff = parseInt(ev.currentTarget.value), newCount;
48
63
  if (isNaN(diff)) diff = 0;
@@ -56,7 +71,8 @@ Spree.Views.Stock.EditStockItemRow = Backbone.View.extend({
56
71
  this.model.set("count_on_hand", newCount);
57
72
  this.$count_on_hand_display.text(newCount);
58
73
  }
59
- this.$el.toggleClass('changed', diff !== 0);
74
+
75
+ this.onChange();
60
76
  },
61
77
 
62
78
  onSuccess: function() {
@@ -7,24 +7,27 @@
7
7
  //
8
8
  // Grayscale and brand colors for use across Bootstrap.
9
9
 
10
- $blue: $color-3 !default;
11
- $red: $color-5 !default;
12
- $orange: $color-6 !default;
13
- $green: $color-2 !default;
10
+ $primary: $color-primary !default;
11
+ $secondary: $color-dark-accent !default;
12
+
13
+ $blue: $color-primary !default;
14
+ $red: $color-red !default;
15
+ $orange: $color-yellow !default;
16
+ $green: $color-success !default;
14
17
 
15
18
  // Body
16
19
  //
17
20
  // Settings for the `<body>` element.
18
21
 
19
- $body-bg: $color-1 !default;
20
- $body-color: $color-4 !default;
22
+ $body-bg: $color-white !default;
23
+ $body-color: $color-dark !default;
21
24
 
22
25
  // Links
23
26
  //
24
27
  // Style anchor elements.
25
28
 
26
29
  $link-decoration: none !default;
27
- $link-hover-color: $color-2 !default;
30
+ $link-hover-color: $color-primary !default;
28
31
  $link-hover-decoration: none !default;
29
32
 
30
33
  // Grid columns
@@ -37,9 +40,9 @@ $grid-gutter-width-base: 1.875rem !default;
37
40
  //
38
41
  // Font, line-height, and color for body text, headings, and more.
39
42
 
40
- $font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
43
+ $font-family-sans-serif: "Inter", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
41
44
  $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
42
- $font-family-base: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
45
+ $font-family-base: "Inter", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
43
46
 
44
47
  $font-size-root: 13px !default;
45
48
 
@@ -54,7 +57,7 @@ $h5-font-size: $font-size-root + 4 !default;
54
57
  $h6-font-size: $font-size-root + 2 !default;
55
58
 
56
59
  $headings-font-weight: $font-weight-bold !default;
57
- $headings-color: $color-4 !default;
60
+ $headings-color: $color-dark !default;
58
61
 
59
62
  // Components
60
63
  //
@@ -64,9 +67,10 @@ $border-radius: 3px !default;
64
67
 
65
68
  // Forms
66
69
 
67
- $input-color: $color-3 !default;
68
- $input-border-color: $color-border !default;
69
- $input-focus-border-color: $color-2 !default;
70
+ $input-color: $color-dark !default;
71
+ $input-placeholder-color: $color-dark-light !default;
72
+ $input-border-color: $color-light-accent !default;
73
+ $input-focus-border-color: $color-primary !default;
70
74
 
71
75
  $custom-select-focus-border-color: $input-focus-border-color !default;
72
76
 
@@ -74,10 +78,14 @@ $custom-select-focus-border-color: $input-focus-border-color !default;
74
78
  //
75
79
  // Dropdown menu container and contents.
76
80
 
77
- $dropdown-link-hover-color: #fff !default;
78
- $dropdown-link-hover-bg: $color-3 !default;
81
+ $dropdown-link-hover-color: $color-white !default;
82
+ $dropdown-link-hover-bg: $color-primary !default;
79
83
 
80
84
  // Breadcrumbs
81
85
 
82
86
  $breadcrumb-bg: transparent !default;
83
- $breadcrumb-active-color: $color-4 !default;
87
+ $breadcrumb-active-color: $color-primary !default;
88
+
89
+ // Popover
90
+
91
+ $popover-header-bg: $color-primary-light !default;
@@ -1,4 +1,16 @@
1
1
  .breadcrumb {
2
2
  font-size: 16px;
3
3
  margin-bottom: 0;
4
+
5
+ a {
6
+ color: $breadcrumb-color;
7
+
8
+ &:hover {
9
+ color: $breadcrumb-active-color;
10
+ }
11
+ }
12
+
13
+ .active {
14
+ font-weight: $font-weight-bold;
15
+ }
4
16
  }
@@ -0,0 +1,18 @@
1
+ .btn-default {
2
+ background: linear-gradient($color-white, lighten($color-light-dark, 2%));
3
+ color: $color-dark;
4
+ border-color: $color-dark-accent;
5
+
6
+ &:hover {
7
+ background: linear-gradient($color-white, $color-light-dark);
8
+ }
9
+
10
+ &.disabled,
11
+ &:disabled {
12
+ color: $color-disabled;
13
+ }
14
+ }
15
+
16
+ .btn-primary {
17
+ border-color: darken($color-primary, 6%);
18
+ }
@@ -14,8 +14,8 @@
14
14
  display: inline-block;
15
15
  margin: auto;
16
16
  text-align: center;
17
- border: 1px solid #ddd;
18
- color: #aaa;
17
+ border: 1px solid $color-light-dark;
18
+ color: $color-light-accent;
19
19
 
20
20
  &:before {
21
21
  font: normal normal normal 14px/1 FontAwesome;
@@ -8,7 +8,7 @@
8
8
  padding: 10px 15px;
9
9
  // Place the border on the list items and negative margin up for better styling
10
10
  margin-bottom: -1px;
11
- border: 1px solid #cee1f4;
11
+ border: 1px solid $color-border;
12
12
 
13
13
  // Round the first and last items
14
14
  &:first-child {
@@ -22,5 +22,5 @@
22
22
 
23
23
  a.list-group-item:focus {
24
24
  text-decoration: none;
25
- background-color: #eff5fc;
25
+ background-color: $color-light;
26
26
  }
@@ -1,14 +1,13 @@
1
1
  .errorExplanation {
2
- padding: 5px;
3
- border: 1px solid very-light(theme-color("danger"), 12);
4
- background-color: very-light(theme-color("danger"), 6);
5
- border-radius: 3px;
6
- color: very-light(theme-color("danger"), 30);
2
+ padding: 10px 15px;
3
+ border-top: 3px solid theme-color("danger");
4
+ background-color: lighten(theme-color("danger"), 40);
5
+ border-radius: 0 0 $border-radius $border-radius;
6
+ color: $body-color;
7
7
  margin-bottom: 15px;
8
8
 
9
9
  h2 {
10
10
  font-size: 140%;
11
- color: very-light(theme-color("danger"), 30);
12
11
  margin-bottom: 5px;
13
12
  }
14
13
 
@@ -34,15 +33,24 @@
34
33
  }
35
34
 
36
35
  .flash {
36
+ border-top: 3px solid;
37
37
  padding: 16px;
38
38
  text-align: center;
39
39
  font-size: 120%;
40
- color: $color-1;
41
- font-weight: $font-weight-bold;
40
+ color: $body-color;
42
41
 
43
- &.notice { background-color: rgba(theme-color("warning"), 0.8) }
44
- &.success { background-color: rgba(theme-color("success"), 0.8) }
45
- &.error { background-color: rgba(theme-color("danger"), 0.8) }
42
+ &.notice {
43
+ background-color: rgba(lighten($color-notice, 15), .95);
44
+ border-top-color: $color-notice;
45
+ }
46
+ &.success {
47
+ background-color: rgba(lighten($color-success, 30), .95);
48
+ border-top-color: $color-success;
49
+ }
50
+ &.error {
51
+ background-color: rgba(lighten($color-error, 30), .95);
52
+ border-top-color: $color-error;
53
+ }
46
54
  }
47
55
 
48
56
  .alert {
@@ -53,5 +61,5 @@
53
61
  text-decoration: underline;
54
62
  }
55
63
 
56
- &.error a { color: very-light(theme-color("danger"), 10) }
64
+ &.error a { color: lighten(theme-color("danger"), 8); }
57
65
  }
@@ -17,9 +17,9 @@ nav.menu {
17
17
  }
18
18
 
19
19
  &.active a {
20
- color: $color-2;
20
+ color: $color-primary;
21
21
  border-left-width: 0;
22
- border-bottom-color: $color-2;
22
+ border-bottom-color: $color-primary;
23
23
  }
24
24
  }
25
25
  }
@@ -32,9 +32,10 @@ nav.menu {
32
32
  }
33
33
 
34
34
  .admin-nav-header {
35
- background-color: $color-1;
35
+ background-color: $color-white;
36
36
  border-bottom: 1px solid $color-border;
37
37
  text-align: center;
38
+ padding: 0 1.25em;
38
39
  // Using line height for proper vertical centering.
39
40
  // As line height does not take the border width into account we need to subtract it.
40
41
  line-height: $main-header-height - 1px;
@@ -42,7 +43,6 @@ nav.menu {
42
43
 
43
44
  .admin-nav-menu {
44
45
  ul {
45
- margin: 0;
46
46
  padding: 0;
47
47
  list-style: none;
48
48
  }
@@ -53,7 +53,8 @@ nav.menu {
53
53
  &:hover {
54
54
  background: $color-navbar-active-bg;
55
55
 
56
- > a {
56
+ > a,
57
+ > a:before {
57
58
  color: $color-navbar-active;
58
59
  }
59
60
  }
@@ -61,7 +62,8 @@ nav.menu {
61
62
  &.selected {
62
63
  background: $color-navbar-active-bg;
63
64
 
64
- > a {
65
+ > a,
66
+ > a:before {
65
67
  color: $color-navbar-active;
66
68
  }
67
69
  }
@@ -84,15 +86,37 @@ nav.menu {
84
86
  left: 100%;
85
87
  width: $width-sidebar-flyout;
86
88
  margin-left: 0;
87
- border: $border-sidebar;
88
- background: $color-navbar-submenu-bg;
89
- box-shadow: $box-shadow;
90
- @include caret($direction: left, $color-caret: $color-navbar-submenu-bg);
89
+ background: $color-white;
90
+ box-shadow: 1px 0 4px 0 rgba(0, 0, 0, 0.1);
91
+ border-radius: 0 4px 4px 4px;
92
+ border: 1px solid $color-border;
93
+ @include caret($direction: left, $color-caret: $color-white);
91
94
 
92
95
  &:before {
93
96
  z-index: 1;
94
97
  top: 1.5em;
95
98
  }
99
+
100
+ &:after {
101
+ content: '';
102
+ display: block;
103
+ position: absolute;
104
+ border-width: 1em 1em;
105
+ border-style: solid;
106
+ border-color: transparent;
107
+ border-right-color: $color-border;
108
+ left: -2.1em;
109
+ top: 1.5em;
110
+ margin-top: -1em;
111
+ }
112
+
113
+ > li {
114
+ background: $color-white;
115
+
116
+ a {
117
+ font-weight: $font-weight-bold;
118
+ }
119
+ }
96
120
  }
97
121
  }
98
122
  }
@@ -101,13 +125,15 @@ nav.menu {
101
125
  display: block;
102
126
  padding: $padding-y-navbar $padding-x-navbar;
103
127
  color: $color-navbar;
104
- font-weight: normal;
128
+ font-weight: $font-weight-bold;
105
129
  }
106
130
 
107
131
  .icon_link {
108
132
  text-indent: 2em;
109
133
 
110
134
  &:before {
135
+ color: $color-icon-navbar;
136
+ font-weight: $font-weight-normal;
111
137
  position: absolute;
112
138
  left: 1em;
113
139
  transform: translateX(-50%);
@@ -123,6 +149,7 @@ nav.menu {
123
149
 
124
150
  .admin-subnav {
125
151
  background: $color-navbar-submenu-bg;
152
+ margin: 0;
126
153
  padding-top: $padding-y-navbar - $padding-y-navbar-submenu;
127
154
  padding-bottom: $padding-y-navbar - $padding-y-navbar-submenu;
128
155
 
@@ -132,6 +159,7 @@ nav.menu {
132
159
 
133
160
  a {
134
161
  color: $color-navbar-submenu;
162
+ font-weight: $font-weight-normal;
135
163
  padding-top: $padding-y-navbar-submenu;
136
164
  padding-bottom: $padding-y-navbar-submenu;
137
165
 
@@ -143,6 +171,7 @@ nav.menu {
143
171
  .selected {
144
172
  a {
145
173
  color: $color-navbar-submenu-active;
174
+ font-weight: $font-weight-bold;
146
175
  }
147
176
  }
148
177
  }
@@ -183,6 +212,7 @@ nav.menu {
183
212
 
184
213
  a {
185
214
  display: inline-block;
215
+ font-weight: $font-weight-bold;
186
216
  max-width: 100%;
187
217
  overflow: hidden;
188
218
  text-overflow: ellipsis;
@@ -193,3 +223,7 @@ nav.menu {
193
223
  margin-right: 0.5rem;
194
224
  }
195
225
  }
226
+
227
+ .brand-link {
228
+ display: block;
229
+ }