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.
This commit is contained in:
Nathan Sobo
2013-03-07 16:52:03 -08:00
committed by Corey Johnson & Nathan Sobo
parent 7e33bd17e0
commit 22d1336aa0
3 changed files with 7 additions and 7 deletions

View File

@@ -3,9 +3,8 @@
font-size: 14px;
line-height: 1.6;
background-color: #fff;
overflow: auto;
overflow: scroll;
padding: 20px;
-webkit-flex: 1;
}
.markdown-preview pre,
@@ -40,10 +39,7 @@
/* this code below was copied from https://github.com/assets/stylesheets/primer/components/markdown.css */
/* we really need to get primer in here somehow. */
.markdown-preview {
font-size: 14px;
line-height: 1.6;
overflow: hidden; }
.markdown-preview {}
.markdown-preview > *:first-child {
margin-top: 0 !important; }
.markdown-preview > *:last-child {

View File

@@ -61,6 +61,11 @@ html, body {
-webkit-flex-flow: column;
}
#panes .pane .item-views > * {
-webkit-flex: 1;
min-height: 0;
}
@font-face {
font-family: 'Octicons Regular';
src: url("octicons-regular-webfont.woff") format("woff");

View File

@@ -6,7 +6,6 @@
z-index: 0;
font-family: Inconsolata, Monaco, Courier;
line-height: 1.3;
-webkit-flex: 1;
}
.editor.mini {