Fix dropdown menus

pull/1/head
yflory 8 years ago
parent 73e9effd32
commit 6c1981c776

@ -333,17 +333,17 @@
height: 100px; height: 100px;
} }
/* The container <div> - needed to position the dropdown content */ /* The container <div> - needed to position the dropdown content */
.cp .dropdown-bar { .dropdown-bar {
position: relative; position: relative;
display: inline-block; display: inline-block;
} }
.cp .dropdown-bar .fa { .dropdown-bar .fa {
font-family: FontAwesome; font-family: FontAwesome;
} }
.cp .dropdown-bar button .fa-caret-down { .dropdown-bar button .fa-caret-down {
margin-left: 5px; margin-left: 5px;
} }
.cp .dropdown-bar .dropdown-bar-content { .dropdown-bar .dropdown-bar-content {
display: none; display: none;
position: absolute; position: absolute;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -353,13 +353,13 @@
max-height: 300px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
} }
.cp .dropdown-bar .dropdown-bar-content.left { .dropdown-bar .dropdown-bar-content.left {
right: 0; right: 0;
} }
.cp .dropdown-bar .dropdown-bar-content:hover { .dropdown-bar .dropdown-bar-content:hover {
display: block; display: block;
} }
.cp .dropdown-bar .dropdown-bar-content a { .dropdown-bar .dropdown-bar-content a {
color: black !important; color: black !important;
padding: 5px 16px; padding: 5px 16px;
text-decoration: none; text-decoration: none;
@ -372,31 +372,31 @@
float: none; float: none;
text-align: left; text-align: left;
} }
.cp .dropdown-bar .dropdown-bar-content a:hover { .dropdown-bar .dropdown-bar-content a:hover {
background-color: #f1f1f1; background-color: #f1f1f1;
color: black !important; color: black !important;
} }
.cp .dropdown-bar .dropdown-bar-content hr { .dropdown-bar .dropdown-bar-content hr {
margin: 5px 0px; margin: 5px 0px;
height: 1px; height: 1px;
background: #bbb; background: #bbb;
} }
.cp .dropdown-bar .dropdown-bar-content p { .dropdown-bar .dropdown-bar-content p {
min-width: 160px; min-width: 160px;
padding: 5px; padding: 5px;
margin: 0; margin: 0;
white-space: normal; white-space: normal;
text-align: left; text-align: left;
} }
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users { .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users {
text-align: baseline; text-align: baseline;
} }
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .yourself, .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .yourself,
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .anonymous, .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .anonymous,
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .viewer { .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .viewer {
font-style: italic; font-style: italic;
} }
.cp .dropdown-bar .dropdown-bar-content p h2 { .dropdown-bar .dropdown-bar-content p h2 {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
background-color: #EEEEEE; background-color: #EEEEEE;

@ -1,6 +1,6 @@
/* The container <div> - needed to position the dropdown content */ /* The container <div> - needed to position the dropdown content */
.cp .dropdown-bar { .dropdown-bar {
position: relative; position: relative;
display: inline-block; display: inline-block;

@ -1,15 +1,15 @@
/* The container <div> - needed to position the dropdown content */ /* The container <div> - needed to position the dropdown content */
.cp .dropdown-bar { .dropdown-bar {
position: relative; position: relative;
display: inline-block; display: inline-block;
} }
.cp .dropdown-bar .fa { .dropdown-bar .fa {
font-family: FontAwesome; font-family: FontAwesome;
} }
.cp .dropdown-bar button .fa-caret-down { .dropdown-bar button .fa-caret-down {
margin-left: 5px; margin-left: 5px;
} }
.cp .dropdown-bar .dropdown-bar-content { .dropdown-bar .dropdown-bar-content {
display: none; display: none;
position: absolute; position: absolute;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -19,13 +19,13 @@
max-height: 300px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
} }
.cp .dropdown-bar .dropdown-bar-content.left { .dropdown-bar .dropdown-bar-content.left {
right: 0; right: 0;
} }
.cp .dropdown-bar .dropdown-bar-content:hover { .dropdown-bar .dropdown-bar-content:hover {
display: block; display: block;
} }
.cp .dropdown-bar .dropdown-bar-content a { .dropdown-bar .dropdown-bar-content a {
color: black !important; color: black !important;
padding: 5px 16px; padding: 5px 16px;
text-decoration: none; text-decoration: none;
@ -38,31 +38,31 @@
float: none; float: none;
text-align: left; text-align: left;
} }
.cp .dropdown-bar .dropdown-bar-content a:hover { .dropdown-bar .dropdown-bar-content a:hover {
background-color: #f1f1f1; background-color: #f1f1f1;
color: black !important; color: black !important;
} }
.cp .dropdown-bar .dropdown-bar-content hr { .dropdown-bar .dropdown-bar-content hr {
margin: 5px 0px; margin: 5px 0px;
height: 1px; height: 1px;
background: #bbb; background: #bbb;
} }
.cp .dropdown-bar .dropdown-bar-content p { .dropdown-bar .dropdown-bar-content p {
min-width: 160px; min-width: 160px;
padding: 5px; padding: 5px;
margin: 0; margin: 0;
white-space: normal; white-space: normal;
text-align: left; text-align: left;
} }
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users { .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users {
text-align: baseline; text-align: baseline;
} }
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .yourself, .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .yourself,
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .anonymous, .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .anonymous,
.cp .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .viewer { .dropdown-bar .dropdown-bar-content p.cryptpad-dropdown-users .viewer {
font-style: italic; font-style: italic;
} }
.cp .dropdown-bar .dropdown-bar-content p h2 { .dropdown-bar .dropdown-bar-content p h2 {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
background-color: #EEEEEE; background-color: #EEEEEE;

Loading…
Cancel
Save