about summary refs log tree commit diff
path: root/app/javascript/styles/rtl.scss
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-05-03 02:04:16 +0200
committerGitHub <noreply@github.com>2017-05-03 02:04:16 +0200
commitf5bf5ebb82e3af420dcd23d602b1be6cc86838e1 (patch)
tree92eef08642a038cf44ccbc6d16a884293e7a0814 /app/javascript/styles/rtl.scss
parent26bc5915727e0a0173c03cb49f5193dd612fb888 (diff)
Replace sprockets/browserify with Webpack (#2617)
* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time
Diffstat (limited to 'app/javascript/styles/rtl.scss')
-rw-r--r--app/javascript/styles/rtl.scss136
1 files changed, 136 insertions, 0 deletions
diff --git a/app/javascript/styles/rtl.scss b/app/javascript/styles/rtl.scss
new file mode 100644
index 000000000..6abb2d25c
--- /dev/null
+++ b/app/javascript/styles/rtl.scss
@@ -0,0 +1,136 @@
+body.rtl {
+  direction: rtl;
+
+  .column-link__icon, .column-header__icon {
+    margin-right: 0;
+    margin-left: 5px;
+  }
+
+  .character-counter__wrapper {
+    margin-right: 0;
+    margin-left: 16px;
+  }
+
+  .navigation-bar__profile {
+    margin-left: 0;
+    margin-right: 8px;
+  }
+
+  .search__input {
+    padding-right: 10px;
+    padding-left: 30px;
+  }
+
+  .search__icon .fa {
+    right: auto;
+    left: 10px;
+  }
+
+  .column-icon-clear {
+    right: auto;
+    left: 48px;
+  }
+
+  .column-icon {
+    right: auto;
+    left: 5px;
+  }
+
+  .setting-toggle {
+    margin-left: 0;
+    margin-right: 8px;
+  }
+
+  .status__avatar {
+    left: auto;
+    right: 10px;
+  }
+
+  .status {
+    padding-left: 10px;
+    padding-right: 68px;
+  }
+
+  .status__info .status__display-name {
+    padding-left: 25px;
+    padding-right: 0;
+  }
+
+  .column-back-button--slim-button {
+    right: auto;
+    left: 0;
+  }
+
+  .status__info-time {
+    float: left;
+  }
+
+  .status__action-bar-button-wrapper {
+    float: right;
+    margin-right: 0;
+    margin-left: 18px;
+  }
+
+  .status__action-bar-dropdown {
+    float: right;
+  }
+
+  .privacy-dropdown__dropdown {
+    left: auto;
+    right: 0;
+  }
+
+  .dropdown--active .dropdown__content {
+    text-align: right;
+  }
+
+  .dropdown--active .dropdown__content::before {
+    left: auto;
+    right: 8px;
+  }
+
+  .dropdown--active .dropdown__content > ul {
+    left: auto;
+    right: -10px;
+  }
+
+  .privacy-dropdown__option__icon {
+    margin-left: 10px;
+    margin-right: 0;
+  }
+
+  .detailed-status__display-avatar {
+    margin-right: 0;
+    margin-left: 10px;
+    float: right;
+  }
+
+  .detailed-status__favorites, .detailed-status__reblogs {
+    margin-left: 0;
+    margin-right: 6px;
+  }
+
+  @media screen and (min-width: 1025px) {
+    .column, .drawer {
+      padding-left: 5px;
+      padding-right: 5px;
+
+      &:first-child {
+        padding-left: 5px;
+        padding-right: 10px;
+      }
+
+      &:last-child {
+        padding-right: 0px;
+        padding-left: 10px;
+      }
+    }
+
+    .columns-area > div {
+      .column, .drawer {
+        padding-left: 5px;
+        padding-right: 5px;
+      }
+    }
+  }
+}