Skip to content

Commit

Permalink
Fix design for RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 29, 2015
1 parent eb821bc commit 3910ace
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 27 additions & 1 deletion styles/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $easing-width: 120px + 4px
position: relative

.about
padding: 20px ($easing-width + 40px) 5px 0
padding: 20px ($easing-width + 50px) 5px 0
line-height: 1.3
p
margin-bottom: 5px
Expand Down Expand Up @@ -483,6 +483,32 @@ footer
position: relative
top: 9px

// RTL
.rtl
direction: rtl

pre
direction: ltr

.easing.linear
right: auto
left: 25px

.easings
direction: ltr
left: 15px
.part-title
right: auto
left: -20px

.about
padding-right: 0
padding-left: $easing-width + 50px

.easing-description .back
float: left

// Big screens
@media (min-width: 1150px)
Expand Down
2 changes: 1 addition & 1 deletion views/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ html lang=r18n.locale.code

- if production?
= include_statistics
body
body class=('rtl' unless r18n.locale.ltr?)
.centered
.about
= t.about
Expand Down

0 comments on commit 3910ace

Please sign in to comment.