Files
scratch-gui/src/components/menu-bar/menu-bar.css
T
2018-04-12 14:21:30 -04:00

163 lines
3.2 KiB
CSS

@import "../../css/colors.css";
@import "../../css/units.css";
.menu-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
/*
For most things, we shouldn't explicitly set height, and let the
content push the element to whatever fits. Using a fixed height
instead, will help us subtract the value we assign from the body,
adding up to a perfect 100%. This means we don't need to set
overflow: hidden, which makes it hard to debug. border-box
simplifies by all of this by removing padding from the equation.
*/
box-sizing: border-box;
height: $menu-bar-height;
/*
@todo: This adds ~20px in Chrome, when scrolling to the right,
but fixes [FFx + Safari] [resize window down + scroll to the right] bug.
width: 100%;
*/
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: .75rem;
font-weight: bold;
background-color: $motion-primary;
color: $ui-white;
}
.main-menu {
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: nowrap;
align-items: center;
}
.scratch-logo {
height: 1.4rem;
vertical-align: middle;
}
.scratch-logo:hover {
transform: scale(1.1, 1.1);
background-size: 100%;
transition: all .075s ease-in;
}
.menu {
/* blocklyToolboxDiv is 40 */
z-index: 50;
top: $menu-bar-height;
}
.menu-bar-item {
display: flex;
padding: 0 0.25rem;
cursor: pointer;
text-decoration: none;
color: $ui-white;
user-select: none;
align-self: center;
position: relative;
align-items: center;
height: $menu-bar-height;
}
.menu-bar-item.active,
.menu-bar-item:hover {
background-color: $ui-black-transparent;
}
.file-group {
display: flex;
flex-direction: row;
align-items: center;
}
.file-group .menu-bar-item {
padding: 0 0.75rem;
}
.feedback-button {
background-color: $ui-white;
color: $motion-primary;
height: 34px;
}
.divider {
border-right: 1px dashed $ui-black-transparent;
margin: 0 .5rem;
height: 34px;
}
.title-field {
border: 1px dashed $ui-black-transparent;
border-radius: .25rem;
width: 12rem;
height: 34px;
background-color: transparent;
padding: .5rem;
}
.title-field,
.title-field::placeholder {
color: $ui-white;
font-weight: bold;
font-size: .8rem;
}
.share-button {
background: $data-primary;
height: 32px;
box-shadow: 0 0 0 1px $ui-black-transparent;
}
.community-button {
height: 32px;
box-shadow: 0 0 0 1px $ui-black-transparent;
}
.community-button-icon {
height: 1.25rem;
}
.coming-soon >:not(.coming-soon-tooltip) {
opacity: 0.5;
}
.account-info-wrapper {
display: flex;
flex-direction: row;
padding: 0 .5rem;
align-items: center;
}
.mystuff-icon {
margin-right: .5rem;
height: 1rem;
}
.account-nav-menu, .mystuff-button {
padding: 0 .25rem;
display: flex;
flex-direction: row;
align-items: center;
}
.profile-icon {
margin-right: .5rem;
width: 2rem;
border-radius: 0.25rem;
}
.dropdown-caret-icon {
margin-left: .5rem;
width: 0.5rem;
height: 0.5rem;
}