react-ui-components
Version:
A collection of UI components for React
104 lines (85 loc) • 1.86 kB
CSS
.hide {
display: none; }
.d-menu-wrap {
display: inline-block;
text-align: center;
vertical-align: top;
margin: 10px; }
.unactive .menu-wrap {
height: 0;
overflow: hidden; }
.d-menu-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0; }
.d-menu-wrap .menu-wrap {
position: relative;
z-index: 1;
margin-top: 11px; }
.d-menu-wrap .menu-wrap:before, .d-menu-wrap .menu-wrap:after {
display: block;
content: " ";
position: absolute;
left: 50%;
width: 0;
height: 0;
border-style: solid;
border-color: transparent;
border-top: 0;
margin-left: -10px; }
.d-menu-wrap .menu-wrap:before {
top: -10px;
border-width: 10px;
border-bottom-color: rgba(0, 0, 0, 0.239216); }
.d-menu-wrap .menu-wrap:after {
top: -9px;
border-width: 10px;
border-bottom-color: #fff; }
.menu-wrap {
display: inline-block;
box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.239216) 0px 1px 4px;
border-radius: 2px; }
.menu-item {
padding: 2px 12px; }
.menu-item-selected {
background: #ccc; }
body {
margin: 0; }
header {
text-align: center;
font-size: 24px;
line-height: 32px;
margin-bottom: 24px; }
#main {
text-align: center; }
.d-menu-wrap {
margin: 26px; }
.color-menu-selected {
position: relative; }
.color-underline {
position: absolute;
bottom: -3px;
left: -1px;
display: inline-block;
width: 16px;
height: 3px; }
.dropdown-menu-color .menu-wrap {
width: 114px;
margin-top: 16px;
margin-left: -16px; }
.dropdown-menu-color .menu-item {
float: left;
width: 15px;
height: 15px;
padding: 2px; }
.dropdown-menu-color .menu-item-selected {
background: #fff; }
.color-menu-item {
width: 100%;
height: 100%; }
.menu-item-selected-icon {
padding-left: 8px;
color: #888; }