diff options
Diffstat (limited to 'core/css/global.scss')
-rw-r--r-- | core/css/global.scss | 52 |
1 files changed, 42 insertions, 10 deletions
diff --git a/core/css/global.scss b/core/css/global.scss index d0a12dc383d..de83f862786 100644 --- a/core/css/global.scss +++ b/core/css/global.scss @@ -7,20 +7,52 @@ /* Global Components */ -.pull-left { - float: left; -} +/* The following lines are a hacky way to adjust float and clear based on direction. + Samsung Internet doesn't support `inline-start|end` and :dir. + pull-right|left and clear-right|left are also kept for backward compatibility. + */ +body[dir='ltr'] { + .pull-left, + .pull-start { + float: left; + } -.pull-right { - float: right; -} + .pull-right, + .pull-end { + float: right; + } + + .clear-left, + .clear-start { + clear: left; + } -.clear-left { - clear: left; + .clear-right, + .clear-end { + clear: right; + } } -.clear-right { - clear: right; +body[dir='rtl'] { + .pull-left, + .pull-start { + float: right; + } + + .pull-right, + .pull-end { + float: left; + } + + .clear-left, + .clear-start { + clear: right; + } + + .clear-right, + .clear-end { + clear: left; + } } .clear-both { |