Compare commits
10 commits
main
...
style-chan
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c4f1378a8 | |||
| 7b50e3e4ff | |||
| 6abb9bfbd9 | |||
| 6e01353e89 | |||
| 7224aa3fdf | |||
| d5ee9017e6 | |||
| a8d455b988 | |||
| f100537bbe | |||
| 36cd3105b0 | |||
| 167e0d506f |
30 changed files with 3094 additions and 1227 deletions
4105
package-lock.json
generated
4105
package-lock.json
generated
File diff suppressed because it is too large
Load diff
46
package.json
46
package.json
|
|
@ -19,45 +19,45 @@
|
||||||
"author": "Sonny",
|
"author": "Sonny",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"css.gg": "^1.0.6",
|
"@fortawesome/fontawesome-free": "^5.15.2",
|
||||||
"js-cookie": "^2.2.1",
|
"js-cookie": "^2.2.1",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"object-assign": "^4.1.1",
|
"object-assign": "^4.1.1",
|
||||||
"react-redux": "^7.1.3",
|
"react-redux": "^7.2.2",
|
||||||
"redux": "^4.0.5",
|
"redux": "^4.0.5",
|
||||||
"redux-logger": "^3.0.6",
|
"redux-logger": "^3.0.6",
|
||||||
"redux-thunk": "^2.3.0"
|
"redux-thunk": "^2.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.7.7",
|
"@babel/core": "^7.12.13",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
"@babel/plugin-proposal-class-properties": "^7.12.13",
|
||||||
"@babel/plugin-proposal-function-bind": "^7.7.4",
|
"@babel/plugin-proposal-function-bind": "^7.12.13",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
"@babel/plugin-syntax-function-bind": "^7.7.4",
|
"@babel/plugin-syntax-function-bind": "^7.12.13",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.7.7",
|
"@babel/plugin-transform-react-jsx": "^7.12.13",
|
||||||
"@babel/plugin-transform-runtime": "^7.7.6",
|
"@babel/plugin-transform-runtime": "^7.12.15",
|
||||||
"@babel/preset-env": "^7.7.7",
|
"@babel/preset-env": "^7.12.13",
|
||||||
"@babel/register": "^7.7.7",
|
"@babel/register": "^7.12.13",
|
||||||
"@babel/runtime": "^7.7.7",
|
"@babel/runtime": "^7.12.13",
|
||||||
"babel-jest": "^24.9.0",
|
"babel-jest": "^24.9.0",
|
||||||
"babel-loader": "^8.1.0",
|
"babel-loader": "^8.2.2",
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^3.0.0",
|
||||||
"css-loader": "^3.4.2",
|
"css-loader": "^3.6.0",
|
||||||
"fetch-mock": "^8.3.1",
|
"fetch-mock": "^8.3.2",
|
||||||
"file-loader": "^6.0.0",
|
"file-loader": "^6.2.0",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"mini-css-extract-plugin": "^0.9.0",
|
"mini-css-extract-plugin": "^0.9.0",
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.1",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
"prettier": "^1.19.1",
|
"prettier": "^1.19.1",
|
||||||
"react": "^16.12.0",
|
"react": "^16.14.0",
|
||||||
"react-dom": "^16.12.0",
|
"react-dom": "^16.14.0",
|
||||||
"redux-mock-store": "^1.5.4",
|
"redux-mock-store": "^1.5.4",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"style-loader": "^1.1.3",
|
"style-loader": "^1.3.0",
|
||||||
"url-loader": "^4.1.0",
|
"url-loader": "^4.1.1",
|
||||||
"webpack": "^4.42.1",
|
"webpack": "^4.46.0",
|
||||||
"webpack-cli": "^3.3.11",
|
"webpack-cli": "^3.3.12",
|
||||||
"webpack-merge": "^4.2.2"
|
"webpack-merge": "^4.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class Messages extends React.Component {
|
||||||
const messages = this.state.messages.map((message, index) => {
|
const messages = this.state.messages.map((message, index) => {
|
||||||
return (
|
return (
|
||||||
<li key={index} className={`messages__item messages__item--${message.type}`}>
|
<li key={index} className={`messages__item messages__item--${message.type}`}>
|
||||||
{message.text} <i className="gg-close" onClick={() => this.close(index)} />
|
{message.text} <i className="fas fa-times" onClick={() => this.close(index)} />
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ const CategoryCard = props => {
|
||||||
if (rule.favicon) {
|
if (rule.favicon) {
|
||||||
favicon = <img className="favicon" src={rule.favicon} />;
|
favicon = <img className="favicon" src={rule.favicon} />;
|
||||||
} else {
|
} else {
|
||||||
favicon = <i className="gg-image" />;
|
favicon = <i className="fas fa-image" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -74,13 +74,13 @@ class PostModal extends React.Component {
|
||||||
className={`button read-button ${readButtonDisabled && 'button--disabled'}`}
|
className={`button read-button ${readButtonDisabled && 'button--disabled'}`}
|
||||||
onClick={() => !readButtonDisabled && this.props.markPostRead(post, token)}
|
onClick={() => !readButtonDisabled && this.props.markPostRead(post, token)}
|
||||||
>
|
>
|
||||||
Mark as read
|
<i className="fas fa-check" /> Mark as read
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="button post__close-button"
|
className="button post__close-button"
|
||||||
onClick={() => this.props.unSelectPost()}
|
onClick={() => this.props.unSelectPost()}
|
||||||
>
|
>
|
||||||
Close <i className="gg-close"></i>
|
<i className="fas fa-times"></i> Close
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="post__header">
|
<div className="post__header">
|
||||||
|
|
@ -112,7 +112,7 @@ class PostModal extends React.Component {
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<i className="gg-link" />
|
<i className="fas fa-external-link-alt" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class PostItem extends React.Component {
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<i className="gg-link" />
|
<i className="fas fa-external-link-alt"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class PostList extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div className="post-message">
|
<div className="post-message">
|
||||||
<div className="post-message__block">
|
<div className="post-message__block">
|
||||||
<i className="gg-arrow-left" />
|
<i class="fas fa-arrow-left" />
|
||||||
<p className="post-message__text">Select an item to show its unread posts</p>
|
<p className="post-message__text">Select an item to show its unread posts</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class CategoryItem extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const chevronClass = this.state.open ? 'gg-chevron-down' : 'gg-chevron-right';
|
const chevronClass = this.state.open ? 'fas fa-chevron-down' : 'fas fa-chevron-right';
|
||||||
const selected = isSelected(this.props.category, this.props.selected, CATEGORY_TYPE);
|
const selected = isSelected(this.props.category, this.props.selected, CATEGORY_TYPE);
|
||||||
const className = selected ? 'category category--selected' : 'category';
|
const className = selected ? 'category category--selected' : 'category';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class ReadButton extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<button className="button read-button" onClick={this.markSelectedRead}>
|
<button className="button read-button" onClick={this.markSelectedRead}>
|
||||||
Mark selected read
|
<i className="fas fa-check" /> Mark selected read
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class RuleItem extends React.Component {
|
||||||
if (this.props.rule.favicon) {
|
if (this.props.rule.favicon) {
|
||||||
favicon = <img className="favicon" width="20" src={this.props.rule.favicon} />;
|
favicon = <img className="favicon" width="20" src={this.props.rule.favicon} />;
|
||||||
} else {
|
} else {
|
||||||
favicon = <i className="gg-image" />;
|
favicon = <i className="fas fa-image" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -58,16 +58,16 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="table__item rules-table__item">
|
<td class="table__item rules-table__item">
|
||||||
{% if rule.failed %}
|
{% if rule.failed %}
|
||||||
<i class="gg-danger"></i>
|
<i class="fas fa-exclamation-triangle"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="gg-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="table__item rules-table__item">
|
<td class="table__item rules-table__item">
|
||||||
{% if rule.enabled %}
|
{% if rule.enabled %}
|
||||||
<i class="gg-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="gg-play-pause"></i>
|
<i class="fas fa-pause"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
{% if option.instance.favicon %}
|
{% if option.instance.favicon %}
|
||||||
<img class="favicon" src="{{ option.instance.favicon }}" />
|
<img class="favicon" src="{{ option.instance.favicon }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="gg-image"></i>
|
<i class="fas fa-image"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span>{{ option.label }}</span>
|
<span>{{ option.label }}</span>
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,10 @@
|
||||||
background-color: $transparant-green;
|
background-color: $transparant-green;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .gg-close {
|
& i {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
--ggs: 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,9 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
|
||||||
|
& i {
|
||||||
|
padding: 0 $fa-padding 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
display: inline-flex;
|
& i {
|
||||||
padding: 0 15px;
|
padding: 0 0 0 7px;
|
||||||
|
|
||||||
& img {
|
|
||||||
width: 30px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,11 +87,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__close-button {
|
&__close-button {
|
||||||
background-color: $blue;
|
background-color: var(--info-color);
|
||||||
color: $white;
|
color: var(--font-color);
|
||||||
|
|
||||||
&:hover {
|
& i {
|
||||||
background-color: lighten($blue, +1%);
|
padding: 0 $fa-padding 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
|
||||||
display: inline-flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .badge {
|
& .badge {
|
||||||
& a {
|
& a {
|
||||||
color: $black;
|
color: $black;
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
||||||
& .gg-image {
|
& i {
|
||||||
--ggs: 80%;
|
|
||||||
margin: 0 5px 0 0;
|
margin: 0 5px 0 0;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,30 +16,17 @@
|
||||||
|
|
||||||
&--success, &--confirm {
|
&--success, &--confirm {
|
||||||
color: $white !important;
|
color: $white !important;
|
||||||
background-color: $green;
|
background-color: var(--confirm-color);
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: lighten($green, +5%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--error, &--cancel {
|
&--error, &--cancel {
|
||||||
color: $white !important;
|
color: $white !important;
|
||||||
background-color: $red;
|
background-color: var(--danger-color);
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: lighten($red, +5%);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--primary {
|
&--primary {
|
||||||
color: $white !important;
|
color: $white !important;
|
||||||
background-color: $blue;
|
background-color: var(--info-color);
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: lighten($blue, 5%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--reddit {
|
&--reddit {
|
||||||
|
|
@ -61,7 +48,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&--disabled {
|
&--disabled {
|
||||||
color: $font-color !important;
|
color: var(--font-color) !important;
|
||||||
background-color: $gray !important;
|
background-color: $gray !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
.read-button {
|
.read-button {
|
||||||
@extend .button;
|
@extend .button;
|
||||||
|
|
||||||
color: $white;
|
color: var(--font-color);
|
||||||
background-color: $green;
|
|
||||||
|
|
||||||
&:hover {
|
background-color: var(--confirm-color);
|
||||||
background-color: darken($green, 10%);
|
|
||||||
|
& i {
|
||||||
|
padding: 0 $fa-padding 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
@import '~css.gg/icons-scss/icons';
|
|
||||||
|
|
||||||
.gg-link {
|
|
||||||
color: var(--font-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gg-pen {
|
|
||||||
color: var(--font-color);
|
|
||||||
transform: rotate(-45deg) scale(var(--ggs, 0.8));
|
|
||||||
}
|
|
||||||
5
src/newsreader/scss/lib/_font-awesome.scss
Normal file
5
src/newsreader/scss/lib/_font-awesome.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
$fa-font-path: '/static/fonts';
|
||||||
|
|
||||||
|
@import '@fortawesome/fontawesome-free/scss/fontawesome';
|
||||||
|
@import '@fortawesome/fontawesome-free/scss/solid';
|
||||||
|
@import '@fortawesome/fontawesome-free/scss/regular';
|
||||||
|
|
@ -7,5 +7,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin button-padding {
|
@mixin button-padding {
|
||||||
padding: 7px 40px;
|
padding: 5px 20px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
@import 'css.gg';
|
@import 'font-awesome';
|
||||||
@import 'mixins';
|
@import 'mixins';
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ $checkbox-blue: rgba(34, 170, 253, 1);
|
||||||
// White theme
|
// White theme
|
||||||
$background-color: $white;
|
$background-color: $white;
|
||||||
|
|
||||||
$font-color: rgba(48, 51, 53, 1);
|
$font-color: rgba(83, 87, 91, 1);
|
||||||
$link-color: darken($azureish-white, 30%);
|
$link-color: darken($azureish-white, 30%);
|
||||||
$read-color: darken($gainsboro, 10%);
|
$read-color: darken($gainsboro, 10%);
|
||||||
|
|
||||||
|
|
@ -35,6 +35,11 @@ $accent-color: $gainsboro;
|
||||||
$lighter-accent-color: $gainsboro;
|
$lighter-accent-color: $gainsboro;
|
||||||
$lightest-accent-color: $orange;
|
$lightest-accent-color: $orange;
|
||||||
|
|
||||||
|
$confirm-color: rgba(89, 181, 128, 1);
|
||||||
|
$danger-color: rgba(237, 118, 105, 1);
|
||||||
|
$warning-color: rgba(255, 218, 119, 1);
|
||||||
|
$info-color: rgba(162, 213, 242, 1);
|
||||||
|
|
||||||
// Dark theme
|
// Dark theme
|
||||||
$dark-background-color: rgba(29, 45, 80, 1);
|
$dark-background-color: rgba(29, 45, 80, 1);
|
||||||
|
|
||||||
|
|
@ -45,3 +50,8 @@ $dark-read-color: darken($dark-font-color, 20%);
|
||||||
$dark-accent-color: rgba(19, 59, 92, 1);
|
$dark-accent-color: rgba(19, 59, 92, 1);
|
||||||
$dark-lighter-accent-color: rgba(30, 95, 116, 1);
|
$dark-lighter-accent-color: rgba(30, 95, 116, 1);
|
||||||
$dark-lightest-accent-color: rgba(252, 218, 183, 1);
|
$dark-lightest-accent-color: rgba(252, 218, 183, 1);
|
||||||
|
|
||||||
|
$dark-confirm-color: rgba(0, 121, 101, 1);
|
||||||
|
$dark-danger-color: rgba(175, 45, 45, 1);
|
||||||
|
$dark-warning-color: rgba(238, 187, 77, 1);
|
||||||
|
$dark-info-color: rgba(31, 111, 139, 1);
|
||||||
|
|
|
||||||
|
|
@ -8,3 +8,36 @@
|
||||||
src: url('../assets/fonts/Rubik-Bold.ttf');
|
src: url('../assets/fonts/Rubik-Bold.ttf');
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Font Awesome 5 Free";
|
||||||
|
src: url('~@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf'),
|
||||||
|
url('~@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff'),
|
||||||
|
url('~@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2');
|
||||||
|
font-weight: bold;
|
||||||
|
style: normal;
|
||||||
|
weight: 900;
|
||||||
|
stretch: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Font Awesome 5 Free";
|
||||||
|
src: url('~@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf'),
|
||||||
|
url('~@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff'),
|
||||||
|
url('~@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2');
|
||||||
|
font-weight: bold;
|
||||||
|
style: normal;
|
||||||
|
weight: 900;
|
||||||
|
stretch: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Font Awesome 5 Free";
|
||||||
|
src: url('~@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf'),
|
||||||
|
url('~@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff'),
|
||||||
|
url('~@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2');
|
||||||
|
font-weight: bold;
|
||||||
|
style: normal;
|
||||||
|
weight: 900;
|
||||||
|
stretch: 100;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,11 @@
|
||||||
--lighter-accent-color: #{$lighter-accent-color};
|
--lighter-accent-color: #{$lighter-accent-color};
|
||||||
--lightest-accent-color: #{$lightest-accent-color};
|
--lightest-accent-color: #{$lightest-accent-color};
|
||||||
|
|
||||||
|
--confirm-color: #{$confirm-color};
|
||||||
|
--danger-color: #{$danger-color};
|
||||||
|
--warning-color: #{$warning-color};
|
||||||
|
--info-color: #{$info-color};
|
||||||
|
|
||||||
&.dark-theme {
|
&.dark-theme {
|
||||||
--background-color: #{$dark-background-color};
|
--background-color: #{$dark-background-color};
|
||||||
|
|
||||||
|
|
@ -19,6 +24,11 @@
|
||||||
--accent-color: #{$dark-accent-color};
|
--accent-color: #{$dark-accent-color};
|
||||||
--lighter-accent-color: #{$dark-lighter-accent-color};
|
--lighter-accent-color: #{$dark-lighter-accent-color};
|
||||||
--lightest-accent-color: #{$dark-lightest-accent-color};
|
--lightest-accent-color: #{$dark-lightest-accent-color};
|
||||||
|
|
||||||
|
--confirm-color: #{$dark-confirm-color};
|
||||||
|
--danger-color: #{$dark-danger-color};
|
||||||
|
--warning-color: #{$dark-warning-color};
|
||||||
|
--info-color: #{$dark-info-color};
|
||||||
}
|
}
|
||||||
|
|
||||||
color: var(--font-color);
|
color: var(--font-color);
|
||||||
|
|
|
||||||
1
src/newsreader/scss/partials/_variables.scss
Normal file
1
src/newsreader/scss/partials/_variables.scss
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
$fa-padding: 7px;
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
@import './colors';
|
@import './colors';
|
||||||
@import './fonts';
|
@import './fonts';
|
||||||
@import './root';
|
@import './root';
|
||||||
|
@import './variables';
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<i class="theme-switcher gg-dark-mode"></i>
|
<i class="theme-switcher fas fa-adjust"></i>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { CleanWebpackPlugin } from 'clean-webpack-plugin';
|
||||||
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
resolve: { extensions: ['.js', '.scss'] },
|
||||||
entry: {
|
entry: {
|
||||||
main: ['./src/newsreader/js/index.js', './src/newsreader/scss/index.scss'],
|
main: ['./src/newsreader/js/index.js', './src/newsreader/scss/index.scss'],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue