-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Implement statusbar UI and indentation controls #1766
Changes from all commits
691ed98
f7581c2
9480d70
75e4e90
c5f005e
6a9046b
31b2d38
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 |
---|---|---|
|
@@ -98,45 +98,72 @@ a, img { | |
cursor: wait !important; | ||
} | ||
|
||
.statusbar { | ||
height: 19px; | ||
#status-bar { | ||
background-color: @background-color-3; | ||
border-top: 1px solid darken(@background-color-3, @bc-color-step-size / 2); | ||
box-sizing: border-box; | ||
color: @bc-grey; | ||
font-family: @fontstack-sans-serif; | ||
font-size: 0.9em; | ||
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. What do you think about making text a px or 2 smaller? Seems a bit too big to me. 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 like it at the current size. It's the same size that Sublime uses except they have an text shadow 1px top. 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. Is Sublime's statusbar the same height as ours? Text just seems a little tight. 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. Yep, same height. |
||
line-height: 1; | ||
|
||
height: 20px; | ||
overflow: hidden; | ||
background-color: lighten(@bc-grey, @bc-color-step-size*4); | ||
padding: 3px 20px 3px 10px; | ||
} | ||
|
||
.info { | ||
float: left; | ||
margin-left: 8px; | ||
margin-top: 3px; | ||
|
||
span { | ||
color: @bc-grey; | ||
padding-right: 15px; | ||
vertical-align: middle; | ||
} | ||
#status-info { | ||
float: left; | ||
|
||
div { | ||
display: inline; | ||
padding-right: 20px; | ||
} | ||
} | ||
|
||
.indicators { | ||
overflow: hidden; | ||
display: block; | ||
float:right; | ||
position: absolute; | ||
right: 24px; | ||
margin: 1px 0px 1px 0px; | ||
|
||
.indicator { | ||
margin-right: 2px; | ||
margin-left: 2px; | ||
color: @bc-grey; | ||
} | ||
#status-indicators { | ||
float: right; | ||
|
||
&>div { | ||
display: inline; | ||
padding-left: 20px; | ||
} | ||
} | ||
|
||
#busy-indicator { | ||
color: @bc-grey; | ||
font-size: 1.4em; | ||
} | ||
|
||
#status-indent div { | ||
display: inline-block; | ||
float: right; | ||
margin: 0px 8px 0px 0px; | ||
} | ||
|
||
#indent-type, #indent-width, #indent-decrement { | ||
margin-right: 2px; | ||
} | ||
|
||
#indent-type, #indent-decrement, #indent-increment { | ||
cursor: pointer; | ||
} | ||
|
||
#indent-type:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
#indent-decrement, #indent-increment { | ||
width: 4px; | ||
height: 8px; | ||
cursor: pointer; | ||
padding-left: 1px; | ||
} | ||
|
||
#indent-decrement { | ||
background: url("images/stepper-arrow-sprites.svg") no-repeat top left; | ||
} | ||
|
||
#indent-increment { | ||
background: url("images/stepper-arrow-sprites.svg") no-repeat top right; | ||
margin-right: 0px; | ||
} | ||
|
||
#editor-holder { | ||
|
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.
It bugs me that all of the info in the status bar is flowed into a line of text because every time and data changes, all info to the right (or left depending on which side) of whatever changed shifts a few pixels left or right. I would like to see the text layout using fixed width blocks so nothing ever ever shifts.
We could also try using Source Code Pro (monospace) font, but we'd have to pad leading spaces (i.e. so "1", "10", "100" all use same horizontal space).
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.
Filed #1772