Skip to content

Instantly share code, notes, and snippets.

@brycepj
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brycepj/4e4e0aad945364e4e0c1 to your computer and use it in GitHub Desktop.
Save brycepj/4e4e0aad945364e4e0c1 to your computer and use it in GitHub Desktop.
Any issues with this?
I'm working on making #sidebar and .main-content-wrap (Forms) play
nice on smaller screens, using some Bootstrap-3-like conventions in
ehr.less, with minimal adjustments to current markup (see below).
The only thing I would need to adjust in the markup is switching
the position of #sidebar and .main-content-wrap (making #sidebar first).
I've tested in Chrome Dev Tools, and it seems to work flawlessly.
But I didn't want to mess with templates/clientforms/display.html
without talking to you first. Thoughts?
```
#sidebar {
float: left;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
@media (min-width: @screen-sm) {
left: 66.66666667%;
width: 33.33333333%;
position: relative;
}
@media (min-width: @screen-md) {
left: 75%;
width: 25%;
}
}
.main-content-wrap {
float: left;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
@media (min-width: @screen-sm) {
right: 33.33333333%;
width: 66.66666667%;
}
@media (min-width: @screen-md) {
right: 25%;
width: 75%;
}
}
```
@dplepage
Copy link

dplepage commented Oct 1, 2014

This looks good to me. Thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment