move settings styles to its own file

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent 90933b0d01
commit b3e1f40f13
  1. 94
      src/app/tabs/settings-tab.js
  2. 65
      src/app/tabs/styles/settings-tab-styles.js

@ -1,5 +1,4 @@
var yo = require('yo-yo') var yo = require('yo-yo')
var csjs = require('csjs-inject')
var remixLib = require('remix-lib') var remixLib = require('remix-lib')
var globalRegistry = require('../../global/registry') var globalRegistry = require('../../global/registry')
@ -8,7 +7,7 @@ var copyToClipboard = require('../ui/copy-to-clipboard')
var styleGuide = require('../ui/styles-guide/theme-chooser') var styleGuide = require('../ui/styles-guide/theme-chooser')
var Storage = remixLib.Storage var Storage = remixLib.Storage
var EventManager = require('../../lib/events') var EventManager = require('../../lib/events')
var css = require('./styles/settings-tab-styles')
import { ApiFactory } from 'remix-plugin' import { ApiFactory } from 'remix-plugin'
module.exports = class SettingsTab extends ApiFactory { module.exports = class SettingsTab extends ApiFactory {
@ -179,94 +178,3 @@ module.exports = class SettingsTab extends ApiFactory {
return self._view.el return self._view.el
} }
} }
const css = csjs`
.settingsTabView {
padding: 2%;
}
.info {
margin-bottom: .6rem;
word-break: break-word;
font-size: .8rem;
}
.info h7 {
margin-bottom: .5rem;
}
.title {
// font-size: 1.1em;
// font-weight: bold;
// margin-bottom: 1em;
}
.frow {
margin-bottom: .5rem;
}
.crow {
// display: flex;
// overflow: auto;
// clear: both;
// padding: .2em;
}
.checkboxText {
font-weight: normal;
}
.crow label {
cursor:pointer;
}
.crowNoFlex {
overflow: auto;
clear: both;
}
.attention {
margin-bottom: 1em;
padding: .5em;
font-weight: bold;
}
.heading {
margin-bottom: 0;
}
.explaination {
margin-top: 3px;
margin-bottom: 3px;
}
input {
margin-right: 5px;
cursor: pointer;
width: inherit;
}
input[type=radio] {
margin-top: 2px;
}
.pluginTextArea {
font-family: unset;
}
.removePlugin {
cursor: pointer;
}
.icon {
margin-right: .5em;
}
.savegisttoken {
margin-left: 5px;
}
.aPlugin {
display: inline-block;
padding-left: 10px;
padding-top: 4px;
padding-bottom: 6px;
max-width: 100px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
vertical-align: middle;
}
.removePlugin{
padding-left: 7px;
padding-right: 7px;
margin-left: 10px;
}
.inline {
display: inline;
width: 50%;
}
`

@ -1,24 +1,30 @@
var csjs = require('csjs-inject') var csjs = require('csjs-inject')
var css = csjs` const css = csjs`
.settingsTabView { .settingsTabView {
padding: 2%; padding: 2%;
display: flex;
} }
.info { .info {
margin-bottom: 1em; margin-bottom: .6rem;
word-break: break-word; word-break: break-word;
font-size: .8rem;
}
.info h7 {
margin-bottom: .5rem;
} }
.title { .title {
font-size: 1.1em; // font-size: 1.1em;
font-weight: bold; // font-weight: bold;
margin-bottom: 1em; // margin-bottom: 1em;
}
.frow {
margin-bottom: .5rem;
} }
.crow { .crow {
display: flex; // display: flex;
overflow: auto; // overflow: auto;
clear: both; // clear: both;
padding: .2em; // padding: .2em;
} }
.checkboxText { .checkboxText {
font-weight: normal; font-weight: normal;
@ -35,10 +41,6 @@ var css = csjs`
padding: .5em; padding: .5em;
font-weight: bold; font-weight: bold;
} }
.select {
font-weight: bold;
margin-top: 1em;
}
.heading { .heading {
margin-bottom: 0; margin-bottom: 0;
} }
@ -49,6 +51,7 @@ var css = csjs`
input { input {
margin-right: 5px; margin-right: 5px;
cursor: pointer; cursor: pointer;
width: inherit;
} }
input[type=radio] { input[type=radio] {
margin-top: 2px; margin-top: 2px;
@ -56,24 +59,36 @@ var css = csjs`
.pluginTextArea { .pluginTextArea {
font-family: unset; font-family: unset;
} }
.pluginLoad {
vertical-align: top; .removePlugin {
} cursor: pointer;
i.warnIt {
color: var(--warning);
} }
.icon { .icon {
margin-right: .5em; margin-right: .5em;
} }
.remixdinstallation {
padding: 3px;
border-radius: 2px;
margin-left: 5px;
}
.savegisttoken { .savegisttoken {
margin-left: 5px; margin-left: 5px;
} }
} .aPlugin {
display: inline-block;
padding-left: 10px;
padding-top: 4px;
padding-bottom: 6px;
max-width: 100px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
vertical-align: middle;
}
.removePlugin{
padding-left: 7px;
padding-right: 7px;
margin-left: 10px;
}
.inline {
display: inline;
width: 50%;
}
` `
module.exports = css module.exports = css

Loading…
Cancel
Save