diff --git a/app/assets/stylesheets/base.sass b/app/assets/stylesheets/base.sass index e72b5ed..0c92756 100644 --- a/app/assets/stylesheets/base.sass +++ b/app/assets/stylesheets/base.sass @@ -1,6 +1,10 @@ +$background-color: #f7f7f7 +$link-color: #06989a + body font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif font-size: 15px + background-color: $background-color .btn font-size: 15px @@ -8,8 +12,11 @@ body .form-control, .btn, pre border-radius: 3px + pre + background-color: #fff + .main - background-color: white + background-color: $background-color min-height: 500px > div:first-child @@ -44,13 +51,11 @@ section.odd, section.even border-bottom: 1px solid #ddd section.odd - background-color: #f7f7f7 + background-color: #fff section.even:last-child, section.odd:last-child border-bottom: 0 -$link-color: #06989a - a color: $link-color diff --git a/app/assets/stylesheets/footer.sass b/app/assets/stylesheets/footer.sass index c77c11c..3a72fd2 100644 --- a/app/assets/stylesheets/footer.sass +++ b/app/assets/stylesheets/footer.sass @@ -1,5 +1,5 @@ footer - background-color: #f7f7f7 + background-color: #fff padding: 20px 0 margin-top: 20px border-top: 1px solid rgba(230,230,230,0.75) diff --git a/app/assets/stylesheets/preview.sass b/app/assets/stylesheets/preview.sass index aadd871..76753d4 100644 --- a/app/assets/stylesheets/preview.sass +++ b/app/assets/stylesheets/preview.sass @@ -29,7 +29,7 @@ border-bottom-right-radius: 0 .info - background-color: #f7f7f7 + background-color: #fff padding: 10px border-bottom-left-radius: 3px border-bottom-right-radius: 3px diff --git a/app/views/asciicasts/show.html.slim b/app/views/asciicasts/show.html.slim index d06b308..afa6632 100644 --- a/app/views/asciicasts/show.html.slim +++ b/app/views/asciicasts/show.html.slim @@ -5,7 +5,7 @@ .container = player page.asciicast, page.playback_options - section.odd.info + section.even.info .container .row .col-md-8.col-xs-8 @@ -16,7 +16,7 @@ .col-md-4.col-xs-4.text-right = render 'shared/add_this', title: page.asciicast_title, url: asciicast_url(page.asciicast) - section.even.meta + section.odd.meta .container .row .col-md-8.col-xs-8 @@ -60,12 +60,12 @@ | See the #{link_to 'embedding docs', docs_path(:embedding)} for more options. - if page.show_description? - section.even.description + section.odd.description .container .content = page.description - if page.show_other_asciicasts_by_author? - section.odd + section.even .container .other-asciicasts h2 More by #{page.author_link}