Moved split-pane-mode.less file into a .scss file. Removed remaining unused .less files. Removed reference to less file in webpack config. Removed dependency on less-loader. Updated standalone and bundle builds to no longer compile any styles.

This commit is contained in:
Owen Conti
2017-07-11 20:17:06 -06:00
parent 10aae17c82
commit 7000c20765
11 changed files with 4 additions and 84 deletions

View File

@@ -108,7 +108,6 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "2.0.3",
"less": "2.7.2",
"less-loader": "4.0.4",
"license-checker": "^11.0.0",
"mocha": "^3.4.2",
"node-sass": "^4.5.0",

View File

@@ -1,7 +1,6 @@
import React from "react"
import PropTypes from "prop-types"
import SplitPane from "react-split-pane"
import "./split-pane-mode.less"
const MODE_KEY = ["split-pane-mode"]
const MODE_LEFT = "left"

View File

@@ -1,5 +0,0 @@
.swagger-ui {
.Resizer.vertical.disabled {
display: none;
}
}

View File

@@ -1,52 +0,0 @@
.swagger-ui {
.topbar {
background-color: #89bf04;
}
.topbar-wrapper {
padding: 0.7em;
}
.topbar-logo__img {
float: left;
}
.topbar-logo__title {
display: inline-block;
color: #fff;
font-size: 1.5em;
font-weight: bold;
margin: 0.15em 0 0 0.5em;
}
.download-url-wrapper {
text-align: right;
float: right;
}
.topbar .download-url__text {
width: 28em;
height: 2em;
margin-right: 0.5em;
}
.download-url__btn {
background-color: #547f00;
border-color: #547f00;
text-decoration: none;
font-weight: bold;
padding: 0.2em 0.3em;
color: white;
border-radius: 0.1em;
&:hover {
&:extend(.download-url__btn);
}
}
.center-700 {
display: block;
margin: 0 auto;
width: 45em;
}
}

View File

@@ -1,6 +1,4 @@
import StandaloneLayout from "./layout"
import "../style/main.scss"
import TopbarPlugin from "plugins/topbar"
import ConfigsPlugin from "plugins/configs"

View File

@@ -0,0 +1,3 @@
.Resizer.vertical.disabled {
display: none;
}

View File

@@ -14,4 +14,5 @@
@import 'information';
@import 'authorize';
@import 'errors';
@import 'split-pane-mode';
}

View File

@@ -15,7 +15,6 @@ let rules = [
]
}
]
rules = rules.concat(styleRules)
module.exports = require("./make-webpack-config.js")(rules, {
_special: {

View File

@@ -15,7 +15,6 @@ let rules = [
]
}
]
rules = rules.concat(styleRules)
module.exports = require("./make-webpack-config.js")(rules, {
_special: {

View File

@@ -41,16 +41,6 @@ const rules = [
}
}
]
},
{ test: /\.(less)(\?.*)?$/,
use: [
"style-loader",
"css-loader",
{
loader: "postcss-loader",
},
"less-loader"
]
}
]

View File

@@ -31,15 +31,4 @@ module.exports = [{
}
]
})
},
{ test: /\.(less)(\?.*)?$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: ["css-loader",
{
loader: "postcss-loader",
},
"less-loader"
]
})
}]