Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/components/_select.scss

Issue 29559620: Issue 5692 - Create Browser Selector with Browser Detection Component for help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Added missing translations Created Sept. 29, 2017, 12:46 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « static/scss/components/_browser-select.scss ('k') | static/scss/main.scss » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/components/_select.scss
===================================================================
--- a/static/scss/components/_select.scss
+++ b/static/scss/components/_select.scss
@@ -47,16 +47,17 @@
margin-bottom: 0.5em;
padding: 0.7em;
border: 1px solid $gray-medium;
border-radius: 4px;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
color: $black;
background: $white;
list-style: none;
+ z-index: 2;
a
{
color: $black;
}
}
.custom-select-options[aria-hidden="true"]
@@ -97,8 +98,71 @@
content: none;
}
a
{
color: inherit;
}
}
+
+// Custom Dropdown (extends the custom select element)
+
+.custom-select-dropdown img
+{
+ @extend .heading-icon;
+}
+
+.custom-select-dropdown .custom-select-selected,
+.custom-select-dropdown .custom-select-options
+{
+ width: 100%;
+}
+
+.custom-select-dropdown .custom-select-selected
+{
+ height: 40px;
+ color: $primary;
+ padding-right: 2.5em;
+ position: relative;
+ text-align: left;
+}
+
+[dir="rtl"] .custom-select-dropdown .custom-select-selected
+{
+ text-align: right;
+ padding-left: 2.5em;
+ padding-right: 0.7em;
+}
+
+.custom-select-dropdown .custom-select-selected:after
+{
+ content: "";
+ height: 100%;
+ width: 2em;
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-left: 2px solid $gray-medium;
+ background-image: url(/img/png/arrow-down-icon-secondary.png);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 0.7em;
+}
+
+[dir="rtl"] .custom-select-dropdown .custom-select-selected:after
+{
+ right: auto;
+ left: 0;
+ border-left: 0;
+ border-right: 2px solid $gray-medium;
+}
+
+.custom-select-dropdown .custom-select-options
+{
+ bottom: auto;
+ top: 100%;
+}
+
+.custom-select-dropdown .custom-select-options li
+{
+ line-height: 40px;
+}
« no previous file with comments | « static/scss/components/_browser-select.scss ('k') | static/scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld