Commit Graph

115 Commits

Author SHA1 Message Date
Nathan Sobo
22d1336aa0 Apply correct flexbox styling to .pane > .item-views > *
Markdown preview was overflowing because the min-height of flexbox
items is automatically set to min-content. Setting it to 0 ensures that
the item doesn't expand beyond its flex size. Moving this styling to
atom.css ensures that people don't have to work too hard to fit
their views into panes.
2013-03-08 10:56:23 -08:00
Kevin Sawicki
a274c313ed Remove top offset for folding marker
Previously this was causing the icon to be down too
low now that a line height of less than 1 em is also
set on the element.
2013-02-25 15:18:32 -08:00
Kevin Sawicki
2f331b4377 Set font-size of fold marker to .8em
This keeps the line height of the gutter the same
as the line height of the editor for folded lines.

Closes #304
2013-02-25 09:49:53 -08:00
Kevin Sawicki
bfaf5b4952 Move folding colors to syntax stylesheets
Switch the light syntax folding color to an orange
instead of the pink which look washed out on a light
background.
2013-02-22 09:10:18 -08:00
Kevin Sawicki
101b1aba12 Add indent guide to editor
The guide displays a continuous vertical line across lines with
the same indent levels.

Closes #50
2013-02-20 12:20:15 -08:00
Jon Rohan
d58f7edefe Gutter doesn't have text cursor. #284 2013-02-17 10:06:43 -08:00
Jon Rohan
2f32c4f745 Changing cursor to text for editor. fixes #284 2013-02-17 10:01:36 -08:00
Nathan Sobo
2806495e5a Nudge fold ellipses down by 2px for better visual alignment w/ line 2013-02-16 15:30:04 -07:00
Nathan Sobo
46c4f6d8e9 Remove increased font size for fold elipses
Making them bigger looks good, but also makes lines with these fold
markers taller than typical lines, which throws off the positioning
of everything below them.
2013-02-16 15:29:29 -07:00
Kevin Sawicki
7f9fb785df Use new ellipsis octicon in fold marker 2013-02-16 09:54:20 -08:00
Kevin Sawicki & Nathan Sobo
c3e595b040 Switch to new flexbox spec to improve redraw performance
With the old flexbox, whenever we updated the status bar, other flex
items in the pane (such as the tabs and the *entire* editor) were
getting repainted, which was taking 10x longer than it needed to. This
newer flexbox spec seems to be implemented in a more performant way.
2013-02-14 17:07:46 -07:00
Jon Rohan
59a8bfd8df Making shure that invisibles always look the same. fixes #279 2013-02-14 14:58:50 -08:00
Justin Palmer
022b5fb88c use is-focused for the editor because it needs it's own state independent of the window state 2013-02-04 16:42:46 -08:00
Justin Palmer
f8855ef2e3 the editor has it's own blurred state independent of the window 2013-02-04 16:20:07 -08:00
Justin Palmer
4350be62c6 💀 is-focused.
targeting blurred state instead so normal state styles don't need a
special prefix
2013-02-04 16:02:09 -08:00
Justin Palmer
c94201db57 move generic editor styles to the main bundle. kill resulting dupe code 2013-02-04 09:58:15 -08:00
Jon Rohan
0d2a328dcc making the editor .focused .is-focused for symmetry 2013-02-01 19:23:52 -05:00
Jon Rohan
23383b72d8 2px cursors are bigger than other apps. 2013-01-31 22:56:42 -05:00
Kevin Sawicki
4f8181969e 💄 2013-01-31 09:24:59 -08:00
Kevin Sawicki
f126f58921 Revert "Set white-space property to nowrap on editor lines"
This reverts commit 9a2db26393.
2013-01-30 19:18:10 -08:00
Kevin Sawicki
9a2db26393 Set white-space property to nowrap on editor lines
Allows inline-block elements adding to the line to no
be wrapped when the window is resized.

Closes #211
2013-01-30 17:54:16 -08:00
Justin Palmer
a83460452e add config option for setting the font family 2013-01-30 09:59:53 -08:00
Jon Rohan
61714dd6ae refactor some of editor.css out of the theme and into /static/ 2013-01-21 16:55:43 -08:00
Jon Rohan
20e5b303a7 refactoring all the stylesheets into /Atom - Dark/
Conflicts:
	.atom/themes/Atom - Dark/vim-mode.css
2013-01-17 22:11:45 -08:00
Jon Rohan
f8414437e9 some tricks to make it more obvious which pane has focus 2012-12-28 15:24:45 -08:00
Jon Rohan
d97651d19a These importants are too harsh. and not necessary 2012-12-27 13:39:02 -08:00
Jon Rohan
d6973dc24f Not overriding font-size 2012-12-25 12:40:13 -08:00
Jon Rohan
f27d84a7f0 Only using the fixed width font inside the editor. 2012-12-24 13:23:15 -08:00
Kevin Sawicki
905002cd58 Highlight foreground of selected line numbers
Previously no gutter highlight was displayed unless
the selection was empty.

Now there is a separate CSS class for no selection
that changes the background color independently
from the foreground color.
2012-12-22 22:06:46 -08:00
Corey Johnson & Nathan Sobo
d4f44f6554 Give selection view '.selection' class and region divs '.region' class 2012-11-30 12:52:38 -07:00
Corey Johnson & Nathan Sobo
f09fefb780 Selection color is set in themes 2012-11-30 12:44:19 -07:00
Corey Johnson & Nathan Sobo
c7363b3347 Highlight selection w/ animation when autoscroll is true 2012-11-30 12:44:12 -07:00
Corey Johnson & Nathan Sobo
1aa8f26e94 Scrolling does not jerk to a stop when scrolling w/ a trackpad
When scrolling with a trackpad, webkit repeatedly triggers multiple mousewheel events on the original event's target element to simulate the velocity effect we're accustomed to with touchscreen UIs. When scrolling quickly, this clashed with our strategy of removing off-screen lines, because the element was removed before the velocity were done firing.

The solution is to make the overlayer accept mouse events. It lays on top of all the lines, so it is never removed and therefore allows the mousewheel events to run to completion. But, this means we need to transfer mousedown events from the overlayer to the underlying lines.
2012-11-28 12:25:14 -07:00
Nathan Sobo
06e281321b Set z-index on vertical scrollbar so scrollbar can be clicked 2012-11-26 15:06:18 -07:00
Nathan Sobo
6a4f2a4478 💩 Forgot to commit the cursor blink stylesheet!
Sorry. It will blink correctly now.
2012-11-16 07:36:35 -07:00
Corey Johnson & Nathan Sobo
3b70df87a7 Remove cursor animation, which slows down screen updates when typing 2012-11-14 11:14:08 -07:00
Corey Johnson & Nathan Sobo
7c16c48e2a Ensure underlayer and overlayer are always the same width as lines
Also… simplify CSS rules for lines element. No display table or padding, instead we just set the min width when typing.
2012-11-09 11:12:33 -07:00
Corey Johnson & Nathan Sobo
d739736997 Add underlayer / overlayer for the selection and cursor
The renderedLines div can now only contain actual lines, nothing else. Thes divs are designed to match the lines div in dimensions and make it easy to put things in front of or behind the text.
2012-11-09 10:43:58 -07:00
Nathan Sobo
cd9e3b774a Always move the hidden input element to the cursor's screen location
This avoids spuriously auto-scrolling to the left when opening an autocomplete in an editor that's scrolled to the right.
2012-11-07 13:04:54 -07:00
Nathan Sobo
045cdda41d Fix cursor line highlight style 2012-11-02 12:16:03 -06:00
Nathan Sobo
4539977800 I'm worried overflow:hidden on lines is screwing rendering up
It's hard to reproduce, so I'm going to disable it and see if I see any more artifacts.
2012-11-02 12:12:02 -06:00
Nathan Sobo
c6075b0fa6 Optimize highlighting of the current line in the gutter 2012-11-01 17:37:50 -06:00
Nathan Sobo
42d0c53a60 Use min-width on rendered lines to replace js logic w/ CSS 2012-11-01 11:49:50 -06:00
Corey Johnson & Nathan Sobo
33b1b66ee4 Merge branch 'invisibles' 2012-10-18 14:44:48 -07:00
Corey Johnson
d3c52ae96d Make invisible coloring less obnoxious 2012-10-18 11:33:19 -07:00
Corey Johnson & Nathan Sobo
d6418b8b94 Set dummy vertical scrollbar width to be as wide as the scrollbar 2012-10-17 17:55:31 -07:00
Corey Johnson
905ab5e736 Only highlight line and gutter row if editor is active 2012-10-01 15:44:58 -07:00
Kevin Sawicki
a4ad5829a5 Disable gutter background highlight on multiline selections 2012-10-01 15:44:57 -07:00
Corey Johnson & Kevin Sawicki
6b835920bf Add padding to gutter numbers instead of entire gutter 2012-10-01 15:44:57 -07:00
Kevin Sawicki
be8120e8c6 Add initial support for line highlighting 2012-10-01 15:44:56 -07:00