Menus wip

This commit is contained in:
Mo Bitar
2018-01-05 19:35:02 -06:00
parent a01067220c
commit aabdb73c77
11 changed files with 278 additions and 430 deletions

View File

@@ -6,27 +6,35 @@ $selection-color: $bg-color;
$selected-text-color: black;
$blue-color: #086dd6;
@mixin MQ-Small() {
@media (max-width: $screen-xs-max) {
@content;
}
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
@content;
}
html,
body {
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
color: $main-text-color;
-webkit-font-smoothing: antialiased;
min-height: 100%;
height: 100%;
font-size: 14px;
margin: 0;
background-color: $bg-color;
}
@mixin MQ-Medium() {
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
@content;
}
* {
box-sizing: border-box;
}
*:focus {outline:0;}
@mixin MQ-Large() {
@media (min-width: $screen-lg-min) {
@content;
}
button:focus {
outline:0;
}
input, button, select, textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
.tinted {
@@ -56,21 +64,6 @@ $blue-color: #086dd6;
}
}
html,
body {
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
color: $main-text-color;
-webkit-font-smoothing: antialiased;
min-height: 100%;
height: 100%;
font-size: 14px;
margin: 0;
background-color: $bg-color;
}
.dark-button {
background-color: #2e2e2e;
border: 0;
@@ -92,8 +85,17 @@ body {
a {
color: $blue-color;
text-decoration: none;
&.no-decoration {
color: inherit;
}
&:hover {
text-decoration: underline;;
text-decoration: underline;
&.no-decoration {
text-decoration: none;
}
}
}

View File

@@ -39,7 +39,6 @@ ul.section-menu-bar {
&.item-with-subtitle {
label {
// float: left;
margin-right: 8px;
}
@@ -48,15 +47,6 @@ ul.section-menu-bar {
opacity: 0.5;
font-weight: normal;
font-size: 12px;
// overflow: hidden;
// text-overflow: ellipsis;
// display: -webkit-box;
// -webkit-box-orient: vertical;
// -webkit-line-clamp: 1; /* number of lines to show */
// $line-height: 18px;
// line-height: $line-height; /* fallback */
// max-height: calc(#{$line-height} * 1); /* fallback */
}
}
@@ -85,176 +75,8 @@ ul.section-menu-bar {
border: none;
width: 280px;
&.full-width {
width: 100%;
}
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 50px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
max-height: calc(85vh - 90px);
background-color: white;
color: $selected-text-color;
li:hover {
background-color: $blue-color;
color: white;
}
> li {
width: 100%;
height: 40px;
padding-top: 3px;
overflow: hidden;
cursor: pointer;
border-bottom: 1px solid rgba(black, 0.1);
color: $selected-text-color;
float: left;
label {
padding: 10px;
padding-top: 8px;
width: 100%;
height: 100%;
display: block;
cursor: pointer;
}
.shortcut {
float: right;
font-size: 12px;
font-weight: normal;
opacity: 0.5;
margin-top: 10px;
padding-right: 10px;
}
}
.sublabel {
font-size: 12px;
font-weight: normal;
margin-top: 5px;
}
}
.dropdown-menu.sectioned-menu {
overflow-y: scroll;
max-height: calc(85vh - 90px);
ul {
margin-top: 0px;
margin-bottom: 0px;
padding-left:0;
position: relative;
li {
cursor: pointer;
height: auto;
padding: 10px;
border-bottom: 1px solid rgba(black, 0.1);
background-color: rgba(white, 0.9);
height: auto;
.left-side {
left: 0;
width: 60%;
display: inline-block;
vertical-align: top;
user-select: text;
}
.right-side {
right: 12px;
width: 30%;
display: inline-block;
vertical-align: top;
text-align: right;
position: absolute;
}
&:hover {
background-color: $blue-color;
.tinted {
color: white;
}
&.nested-hover {
color: black;
background-color: $light-bg-color;
}
}
&.nested-hover {
color: black;
background-color: white;
}
.menu-item-title {
font-weight: bold;
font-size: 14px;
margin-bottom: 3px;
}
.menu-item-subtitle {
font-weight: normal;
opacity: 0.5;
margin-top: 1px;
font-size: 12px;
}
}
}
.header {
background-color: #ededed;
border-bottom: 1px solid #d3d3d3;
position: relative;
padding-top: 12px;
padding-left: 10px;
padding-bottom: 10px;
cursor: pointer;
user-select: none;
> .title {
font-size: 14px;
font-weight: bold;
}
> .subtitle {
font-size: 12px;
opacity: 0.5;
font-weight: normal;
margin-top: 2px;
}
> .loading {
position: absolute;
height: 15px;
width: 15px;
right: 10px;
top: 20px;
}
}
.footer {
background-color: #ededed;
border-top: 1px solid #d3d3d3;
position: relative;
padding: 10px;
}
}

View File

@@ -56,105 +56,3 @@ $screen-md-max: ($screen-lg-min - 1) !default;
@content;
}
}
* {
box-sizing: border-box;
}
*:focus {outline:0;}
.float-group {
height: 15px;
&.h10 {
height: 10px;
}
&.h20 {
height: 20px;
}
&.h30 {
height: 30px;
}
clear: both;
}
button:focus {outline:0;}
//
// .button-group {
// clear: both;
// height: 36px;
// }
//
// .ui-button {
// background-color: $blue-color;
// border: 0;
// color: white;
// font-weight: bold;
// min-height: 36px;
// font-size: 14px;
//
// &.block {
// width: 100%;
// }
// }
.panel {
position: absolute;
right: 0px;
min-width: 300px;
z-index: 1000;
// margin-top: 10px;
// box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
// border: none;
// background-color: white;
}
.panel-right {
left: 0px;
}
.panel-body {
padding: 15px;
}
.form-control {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #555555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0;
}
input, button, select, textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.checkbox {
font-size: 14px;
font-weight: bold;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
input {
margin-left: 0px;
}
}