-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First pass at sub-bar redesign. #1245
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ | |
:root { | ||
--color-low-contrast-gray: #eee; | ||
--color-chrome: #e2e2e2; | ||
--color-border: #bbb; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we really need another gray tone? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd say yes. I tried the existing ones but they looked ugly and too pronounced. |
||
--color-light-gray: #aaa; | ||
--color-gray: #666; | ||
--color-dark-gray: #444; | ||
|
@@ -82,6 +83,7 @@ | |
--color-blue: #00b8ff; | ||
--size-rounded-corners: 0.2em; | ||
--size-top-bar: 4em; | ||
--size-sub-bar: 2em; | ||
--size-top-bar-menu-button: 2.8em; | ||
--box-shadow: 0 0 0.1em 0 rgba(0, 0, 0, 0.5); | ||
--font-size-menu: 1.7vh; | ||
|
@@ -168,6 +170,7 @@ body { | |
|
||
.top-bar__wordmark-container > svg { | ||
width: 6.5em; | ||
height: var(--size-top-bar); | ||
} | ||
|
||
.top-bar__snapshot_in-progress { | ||
|
@@ -292,6 +295,57 @@ body { | |
flex: 1 0 0; | ||
} | ||
|
||
/** @define sub-bars */ | ||
|
||
.sub-bar { | ||
box-shadow: var(--box-shadow); | ||
font-size: var(--font-size-menu); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need a new name for this font size variable! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps. It's becoming a general goto "base" font-size. |
||
font-family: "Roboto"; | ||
padding-left: 0.5em; | ||
height: 2em; | ||
display: flex; | ||
align-items: center; | ||
text-align: left; | ||
background-color: var(--color-chrome); | ||
z-index: 2; | ||
} | ||
|
||
.sub-bar__left, | ||
.sub-bar__right { | ||
white-space: nowrap; | ||
} | ||
|
||
.sub-bar__left { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding-right: 0.5em; | ||
flex: 1; | ||
} | ||
|
||
.sub-bar__right { | ||
text-align: right; | ||
} | ||
|
||
.sub-bar__button { | ||
border-left: 0.1em solid var(--color-border); | ||
padding: 0 1em; | ||
height: var(--size-sub-bar); | ||
line-height: var(--size-sub-bar); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we not use percentages here? |
||
display: inline-block; | ||
color: var(--color-gray); | ||
font-weight: bold; | ||
cursor: pointer; | ||
user-select: none; | ||
} | ||
|
||
.sub-bar__button:hover { | ||
background-color: var(--color-low-contrast-gray); | ||
} | ||
|
||
.sub-bar__button:active { | ||
box-shadow: inset 0 0.1em 0.2em 0 rgba(0, 0, 0, 0.3); | ||
} | ||
|
||
/** @define instructions */ | ||
|
||
.instructions { | ||
|
@@ -390,23 +444,11 @@ body { | |
} | ||
|
||
.editors__label { | ||
background-color: var(--color-chrome); | ||
color: var(--color-dark-gray); | ||
cursor: pointer; | ||
font-family: 'Roboto'; | ||
font-size: var(--font-size-menu); | ||
padding: 0.5em 1em; | ||
text-align: right; | ||
user-select: none; | ||
} | ||
|
||
.editors__label_expanded { | ||
background-color: rgba(226, 226, 226, 0.9); | ||
box-shadow: var(--box-shadow); | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
z-index: 1; | ||
.editors__chevron { | ||
margin-right: 0.5em; | ||
} | ||
|
||
.editors__column-divider { | ||
|
@@ -473,7 +515,7 @@ body { | |
left: 0; | ||
position: absolute; | ||
right: 0; | ||
top: 4.4vh; | ||
top: 3.4vh; | ||
z-index: 0; | ||
} | ||
|
||
|
@@ -490,35 +532,10 @@ body { | |
} | ||
|
||
.preview__title-bar { | ||
box-shadow: var(--box-shadow); | ||
font-size: 2.2vh; | ||
height: 2.4vh; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
padding: 1vh; | ||
position: absolute; | ||
text-align: center; | ||
font-weight: bold; | ||
vertical-align: middle; | ||
background-color: var(--color-chrome); | ||
z-index: 2; | ||
} | ||
|
||
.preview__title { | ||
text-align: center; | ||
} | ||
|
||
.preview__button { | ||
padding: 0 0.5em; | ||
} | ||
|
||
.preview__button_pop-out { | ||
float: left; | ||
} | ||
|
||
.preview__button_reset { | ||
float: right; | ||
} | ||
|
||
/** @define error-list */ | ||
|
@@ -566,11 +583,16 @@ body { | |
/** @define notification-list */ | ||
|
||
.notification-list__notification { | ||
margin: 0.2rem 0; | ||
font-size: var(--font-size-menu); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems unrelated to the other stuff in here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Somewhat. Kinda rolling it into general "chrome/menu/etc." design tweaks to reign in the sizing and spacing of everything and make things look more standard. Would you be totally averse to keeping it in here? |
||
margin-bottom: 0.1em; | ||
padding: 1rem 0; | ||
text-align: center; | ||
} | ||
|
||
.notification-list__notification:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
/* postcss-bem-linter: ignore */ | ||
.notification-list__notification a { | ||
color: inherit; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the icons more usable here (the eye finds what it’s looking for more quickly if it doesn’t have to read the words). And I have never noticed students finding them unintuitive. Have you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just looking for ways to increase overall clarity and discoverability. Anecdotally I see a lot of students don't know that those icons are even actions at all, let alone what they do. Would you be averse to icon + text?