Просмотр исходного кода

replaced border hack carot with fontawesome carot fixes #11677

Patrick O'Carroll 7 лет назад
Родитель
Сommit
99aa9a46bc
1 измененных файлов с 9 добавлено и 11 удалено
  1. 9 11
      public/sass/components/_dropdown.scss

+ 9 - 11
public/sass/components/_dropdown.scss

@@ -256,17 +256,15 @@
 
 
 // Caret to indicate there is a submenu
 // Caret to indicate there is a submenu
 .dropdown-submenu > a::after {
 .dropdown-submenu > a::after {
-  display: block;
-  content: ' ';
-  float: right;
-  width: 0;
-  height: 0;
-  border-color: transparent;
-  border-style: solid;
-  border-width: 5px 0 5px 5px;
-  border-left-color: $text-color-weak;
-  margin-top: 5px;
-  margin-right: -4px;
+  position: absolute;
+  top: 35%;
+  right: $input-padding-x;
+  background-color: transparent;
+  color: $text-color-weak;
+  font: normal normal normal $font-size-sm/1 FontAwesome;
+  content: '\f0da';
+  pointer-events: none;
+  font-size: 11px;
 }
 }
 .dropdown-submenu:hover > a::after {
 .dropdown-submenu:hover > a::after {
   border-left-color: $dropdownLinkColorHover;
   border-left-color: $dropdownLinkColorHover;