DEV: removes dead code of dropdown-menu (#9942)

This commit is contained in:
Joffrey JAFFEUX 2020-06-01 11:22:35 +02:00 committed by GitHub
parent 6ed3dbef03
commit 57e587f39f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1 additions and 154 deletions

View File

@ -76,7 +76,6 @@ export default Component.extend(PanEvents, {
if ( if (
!$target.is(".widget-button") && !$target.is(".widget-button") &&
!$parents.is(".widget-button") && !$parents.is(".widget-button") &&
!$parents.is(".dropdown-menu") &&
!$parents.is("#discourse-modal") && !$parents.is("#discourse-modal") &&
!$target.is("#discourse-modal") && !$target.is("#discourse-modal") &&
!$parents.is(".modal-footer") && !$parents.is(".modal-footer") &&

View File

@ -687,14 +687,6 @@ table {
} }
} }
} }
.dropdown-menu {
width: 120px;
& .icon {
margin-top: auto;
}
}
} }
.topic-statuses { .topic-statuses {

View File

@ -29,9 +29,6 @@
} }
.modal-open { .modal-open {
.dropdown-menu {
z-index: z("modal", "dropdown");
}
.popover { .popover {
z-index: z("modal", "popover"); z-index: z("modal", "popover");
} }

View File

@ -218,15 +218,6 @@ button.dismiss-read {
margin-left: 10px; margin-left: 10px;
} }
.tags-admin-menu {
.dropdown-menu {
right: 0;
top: 30px;
bottom: auto;
left: auto;
}
}
.category-heading { .category-heading {
p { p {
line-height: $line-height-large; line-height: $line-height-large;

View File

@ -503,10 +503,6 @@ video {
} }
} }
.open > .dropdown-menu {
display: block;
}
.btn-group { .btn-group {
position: relative; position: relative;
} }
@ -641,72 +637,6 @@ blockquote {
margin-left: 5px; margin-left: 5px;
} }
.dropdown-menu {
position: absolute;
bottom: 115%;
left: 0;
z-index: z("dropdown");
display: none;
float: left;
width: 550px;
margin: 1px 0 0;
list-style: none;
background-color: $secondary;
border: 1px solid $primary-low;
box-shadow: shadow("dropdown");
background-clip: padding-box;
span {
font-size: $font-down-1;
color: dark-light-choose($primary-medium, $secondary-medium);
}
span.title {
font-weight: bold;
display: block;
font-size: $font-0;
color: $primary;
}
}
.dropdown-menu a {
display: block;
padding: 9px;
clear: both;
font-weight: normal;
line-height: $line-height-medium;
color: $primary;
transition: all linear 0.15s;
& > div {
margin-left: 26px;
}
}
.dropdown-menu li > a:hover,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: $primary;
text-decoration: none;
background-color: $highlight-medium;
}
.dropdown-menu .disabled > a,
.dropdown-menu .disabled > a:hover {
text-decoration: none;
color: $primary;
background-color: $tertiary-low;
cursor: default;
}
.dropdown-menu .icon {
margin-top: 3px;
float: left;
font-size: $font-up-2;
}
.open > .dropdown-menu {
display: block;
clear: both;
}
.selected-posts { .selected-posts {
width: 200px; width: 200px;
position: fixed; position: fixed;

View File

@ -424,50 +424,7 @@ tr.category-topic-link {
content: ""; content: "";
margin-left: 5px; margin-left: 5px;
} }
.dropdown-menu {
position: relative;
top: 100%;
left: 0;
z-index: z("dropdown");
display: none;
float: left;
width: 280px;
padding: 4px 0;
list-style: none;
background-color: $secondary;
border: 1px solid dark-light-choose(rgba(0, 0, 0, 0.2), $primary);
border-radius: 5px;
box-shadow: shadow("dropdown");
background-clip: padding-box;
margin: 1px 0 20px;
.title {
font-weight: bold;
display: block;
}
}
.dropdown-menu a {
display: block;
padding: 3px 15px;
clear: both;
font-weight: normal;
line-height: $line-height-medium;
color: $primary;
}
.dropdown-menu li > a:hover,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: $tertiary;
text-decoration: none;
background-color: $tertiary-low;
}
.open > .dropdown-menu {
display: block;
clear: both;
}
.fade {
opacity: 0;
transition: opacity linear 0.15s;
}
.fade.in { .fade.in {
opacity: 1; opacity: 1;
} }

View File

@ -287,25 +287,6 @@ iframe {
max-width: 100%; max-width: 100%;
} }
.open > .dropdown-menu {
display: block;
}
.dropdown-menu li {
margin: 5px 0;
.fa {
float: left;
margin-right: 5px;
padding-top: 1px;
}
span {
color: dark-light-choose($primary-medium, $secondary-medium);
}
span.title {
color: $primary;
}
}
.btn-group { .btn-group {
margin-top: 25px; margin-top: 25px;
position: relative; position: relative;