]> cat aescling's git repositories - mastodon.git/commitdiff
Packaged local_settings styles in common
authorkibigo! <marrus-sh@users.noreply.github.com>
Thu, 7 Dec 2017 21:35:37 +0000 (13:35 -0800)
committerkibigo! <marrus-sh@users.noreply.github.com>
Thu, 7 Dec 2017 21:36:18 +0000 (13:36 -0800)
17 files changed:
app/javascript/flavours/glitch/features/local_settings/index.js
app/javascript/flavours/glitch/features/local_settings/navigation/index.js
app/javascript/flavours/glitch/features/local_settings/navigation/item/index.js
app/javascript/flavours/glitch/features/local_settings/navigation/item/style.scss [deleted file]
app/javascript/flavours/glitch/features/local_settings/navigation/style.scss [deleted file]
app/javascript/flavours/glitch/features/local_settings/page/index.js
app/javascript/flavours/glitch/features/local_settings/page/item/index.js
app/javascript/flavours/glitch/features/local_settings/page/item/style.scss [deleted file]
app/javascript/flavours/glitch/features/local_settings/page/style.scss [deleted file]
app/javascript/flavours/glitch/features/local_settings/style.scss [deleted file]
app/javascript/flavours/glitch/styles/components/boost.scss [moved from app/javascript/flavours/glitch/styles/boost.scss with 100% similarity]
app/javascript/flavours/glitch/styles/components/doodle.scss [moved from app/javascript/flavours/glitch/styles/doodle.scss with 100% similarity]
app/javascript/flavours/glitch/styles/components/emoji_picker.scss [moved from app/javascript/flavours/glitch/styles/emoji_picker.scss with 100% similarity]
app/javascript/flavours/glitch/styles/components/index.scss [moved from app/javascript/flavours/glitch/styles/components.scss with 99% similarity]
app/javascript/flavours/glitch/styles/components/local_settings.scss [new file with mode: 0644]
app/javascript/flavours/glitch/styles/index.scss
app/javascript/flavours/glitch/styles/reset copy.scss [deleted file]

index 81d9a3f41600c00d7b6fc0f9b74fc3008481ad94..4e4605ea9dfb4f3e4cfc4f44a7a2ae95fca4e996 100644 (file)
@@ -10,9 +10,6 @@ import LocalSettingsNavigation from './navigation';
 import { closeModal } from 'flavours/glitch/actions/modal';
 import { changeLocalSetting } from 'flavours/glitch/actions/local_settings';
 
-//  Stylesheet imports
-import './style.scss';
-
 const mapStateToProps = state => ({
   settings: state.get('local_settings'),
 });
index fa35e83c753a9ca07e00a8408a963c951aa86782..fc2167c0c00406287c2dc380645af009e1473b59 100644 (file)
@@ -6,9 +6,6 @@ import { injectIntl, defineMessages } from 'react-intl';
 //  Our imports
 import LocalSettingsNavigationItem from './item';
 
-//  Stylesheet imports
-import './style.scss';
-
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
 const messages = defineMessages({
index a352d5fb2a7d170a4ade46d555b7dbd3d8dd32d3..b67d479e7b41ae5daaa3c1ae99b7c40b9a88bd9c 100644 (file)
@@ -3,9 +3,6 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import classNames from 'classnames';
 
-//  Stylesheet imports
-import './style.scss';
-
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
 export default class LocalSettingsPage extends React.PureComponent {
diff --git a/app/javascript/flavours/glitch/features/local_settings/navigation/item/style.scss b/app/javascript/flavours/glitch/features/local_settings/navigation/item/style.scss
deleted file mode 100644 (file)
index 7f73719..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-@import 'styles/mastodon/variables';
-
-.glitch.local-settings__navigation__item {
-  display: block;
-  padding: 15px 20px;
-  color: inherit;
-  background: $primary-text-color;
-  border-bottom: 1px $ui-primary-color solid;
-  cursor: pointer;
-  text-decoration: none;
-  outline: none;
-  transition: background .3s;
-
-  &:hover {
-    background: $ui-secondary-color;
-  }
-
-  &.active {
-    background: $ui-highlight-color;
-    color: $primary-text-color;
-  }
-
-  &.close, &.close:hover {
-    background: $error-value-color;
-    color: $primary-text-color;
-  }
-}
diff --git a/app/javascript/flavours/glitch/features/local_settings/navigation/style.scss b/app/javascript/flavours/glitch/features/local_settings/navigation/style.scss
deleted file mode 100644 (file)
index 0336f94..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-@import 'styles/mastodon/variables';
-
-.glitch.local-settings__navigation {
-  background: $primary-text-color;
-  color: $ui-base-color;
-  width: 200px;
-  font-size: 15px;
-  line-height: 20px;
-  overflow-y: auto;
-}
index 498230f7bdaf7e007185435a01535b80cd122b21..62bf410c6940acee785fd140491a65e47d5579e6 100644 (file)
@@ -7,9 +7,6 @@ import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
 //  Our imports
 import LocalSettingsPageItem from './item';
 
-//  Stylesheet imports
-import './style.scss';
-
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
 const messages = defineMessages({
index 37e28c08452dcacb70d79cb246c34831d9bab457..66e84dfe190bd93f7ec9490fe4a40c38a6da93c7 100644 (file)
@@ -3,9 +3,6 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import ImmutablePropTypes from 'react-immutable-proptypes';
 
-//  Stylesheet imports
-import './style.scss';
-
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
 export default class LocalSettingsPageItem extends React.PureComponent {
diff --git a/app/javascript/flavours/glitch/features/local_settings/page/item/style.scss b/app/javascript/flavours/glitch/features/local_settings/page/item/style.scss
deleted file mode 100644 (file)
index b2d8f71..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-@import 'styles/mastodon/variables';
-
-.glitch.local-settings__page__item {
-  select {
-    margin-bottom: 5px;
-  }
-}
diff --git a/app/javascript/flavours/glitch/features/local_settings/page/style.scss b/app/javascript/flavours/glitch/features/local_settings/page/style.scss
deleted file mode 100644 (file)
index e9eedca..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-@import 'styles/mastodon/variables';
-
-.glitch.local-settings__page {
-  display: block;
-  flex: auto;
-  padding: 15px 20px 15px 20px;
-  width: 360px;
-  overflow-y: auto;
-}
diff --git a/app/javascript/flavours/glitch/features/local_settings/style.scss b/app/javascript/flavours/glitch/features/local_settings/style.scss
deleted file mode 100644 (file)
index 7652946..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-@import 'styles/mastodon/variables';
-
-.glitch.local-settings {
-  position: relative;
-  display: flex;
-  flex-direction: row;
-  background: $ui-secondary-color;
-  color: $ui-base-color;
-  border-radius: 8px;
-  height: 80vh;
-  width: 80vw;
-  max-width: 740px;
-  max-height: 450px;
-  overflow: hidden;
-
-  label {
-    display: block;
-  }
-
-  h1 {
-    font-size: 18px;
-    font-weight: 500;
-    line-height: 24px;
-    margin-bottom: 20px;
-  }
-
-  h2 {
-    font-size: 15px;
-    font-weight: 500;
-    line-height: 20px;
-    margin-top: 20px;
-    margin-bottom: 10px;
-  }
-}
similarity index 99%
rename from app/javascript/flavours/glitch/styles/components.scss
rename to app/javascript/flavours/glitch/styles/components/index.scss
index ade8df018c75971e3171f3b6876bf03dfcedfd5e..7aeab0a6af9277d3f358e06ab1359e6252d5948b 100644 (file)
@@ -1,5 +1,3 @@
-@import 'variables';
-
 .app-body {
   -webkit-overflow-scrolling: touch;
   -ms-overflow-style: -ms-autohiding-scrollbar;
@@ -4830,3 +4828,5 @@ noscript {
 }
 
 @import 'doodle';
+@import 'emoji_picker';
+@import 'local_settings';
diff --git a/app/javascript/flavours/glitch/styles/components/local_settings.scss b/app/javascript/flavours/glitch/styles/components/local_settings.scss
new file mode 100644 (file)
index 0000000..16c8cf0
--- /dev/null
@@ -0,0 +1,81 @@
+.glitch.local-settings {
+  position: relative;
+  display: flex;
+  flex-direction: row;
+  background: $ui-secondary-color;
+  color: $ui-base-color;
+  border-radius: 8px;
+  height: 80vh;
+  width: 80vw;
+  max-width: 740px;
+  max-height: 450px;
+  overflow: hidden;
+
+  label {
+    display: block;
+  }
+
+  h1 {
+    font-size: 18px;
+    font-weight: 500;
+    line-height: 24px;
+    margin-bottom: 20px;
+  }
+
+  h2 {
+    font-size: 15px;
+    font-weight: 500;
+    line-height: 20px;
+    margin-top: 20px;
+    margin-bottom: 10px;
+  }
+}
+
+.glitch.local-settings__navigation__item {
+  display: block;
+  padding: 15px 20px;
+  color: inherit;
+  background: $primary-text-color;
+  border-bottom: 1px $ui-primary-color solid;
+  cursor: pointer;
+  text-decoration: none;
+  outline: none;
+  transition: background .3s;
+
+  &:hover {
+    background: $ui-secondary-color;
+  }
+
+  &.active {
+    background: $ui-highlight-color;
+    color: $primary-text-color;
+  }
+
+  &.close, &.close:hover {
+    background: $error-value-color;
+    color: $primary-text-color;
+  }
+}
+
+.glitch.local-settings__navigation {
+  background: $primary-text-color;
+  color: $ui-base-color;
+  width: 200px;
+  font-size: 15px;
+  line-height: 20px;
+  overflow-y: auto;
+}
+
+.glitch.local-settings__page {
+  display: block;
+  flex: auto;
+  padding: 15px 20px 15px 20px;
+  width: 360px;
+  overflow-y: auto;
+}
+
+.glitch.local-settings__page__item {
+  select {
+    margin-bottom: 5px;
+  }
+}
index c962a1f629a0f3349c978577cf514bc5a7bdb3e5..a5169f8813b5c67caba554f5383abc636709541c 100644 (file)
@@ -14,8 +14,7 @@
 @import 'forms';
 @import 'accounts';
 @import 'stream_entries';
-@import 'components';
-@import 'emoji_picker';
+@import 'components/index';
 @import 'about';
 @import 'tables';
 @import 'admin';
diff --git a/app/javascript/flavours/glitch/styles/reset copy.scss b/app/javascript/flavours/glitch/styles/reset copy.scss
deleted file mode 100644 (file)
index cc5ba9d..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/* http://meyerweb.com/eric/tools/css/reset/
-   v2.0 | 20110126
-   License: none (public domain)
-*/
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
-  margin: 0;
-  padding: 0;
-  border: 0;
-  font-size: 100%;
-  font: inherit;
-  vertical-align: baseline;
-}
-
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
-  display: block;
-}
-
-body {
-  line-height: 1;
-}
-
-ol, ul {
-  list-style: none;
-}
-
-blockquote, q {
-  quotes: none;
-}
-
-blockquote:before, blockquote:after,
-q:before, q:after {
-  content: '';
-  content: none;
-}
-
-table {
-  border-collapse: collapse;
-  border-spacing: 0;
-}
-
-::-webkit-scrollbar {
-  width: 8px;
-  height: 8px;
-}
-
-::-webkit-scrollbar-thumb {
-  background: lighten($ui-base-color, 4%);
-  border: 0px none $base-border-color;
-  border-radius: 50px;
-}
-
-::-webkit-scrollbar-thumb:hover {
-  background: lighten($ui-base-color, 6%);
-}
-
-::-webkit-scrollbar-thumb:active {
-  background: lighten($ui-base-color, 4%);
-}
-
-::-webkit-scrollbar-track {
-  border: 0px none $base-border-color;
-  border-radius: 0;
-  background: rgba($base-overlay-background, 0.1);
-}
-
-::-webkit-scrollbar-track:hover {
-  background: $ui-base-color;
-}
-
-::-webkit-scrollbar-track:active {
-  background: $ui-base-color;
-}
-
-::-webkit-scrollbar-corner {
-  background: transparent;
-}