Move sass files into src and closer to the relevant components
This commit is contained in:
parent
9d5d94a8f4
commit
f805f0d1ef
@ -4,10 +4,13 @@
|
|||||||
* @license Mozilla Public License (MPLv2)
|
* @license Mozilla Public License (MPLv2)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import "@converse/headless/headless";
|
import "@converse/headless/headless";
|
||||||
import "i18n";
|
import "i18n";
|
||||||
import "shared/registry.js";
|
import "shared/registry.js";
|
||||||
|
|
||||||
|
import 'shared/styles/index.scss';
|
||||||
|
|
||||||
/* START: Removable components
|
/* START: Removable components
|
||||||
* --------------------
|
* --------------------
|
||||||
* Any of the following components may be removed if they're not needed.
|
* Any of the following components may be removed if they're not needed.
|
||||||
@ -33,7 +36,6 @@ import "./plugins/singleton.js";
|
|||||||
/* END: Removable components */
|
/* END: Removable components */
|
||||||
|
|
||||||
import "./components/converse.js";
|
import "./components/converse.js";
|
||||||
import "../sass/converse.scss";
|
|
||||||
|
|
||||||
import { _converse, converse } from "@converse/headless/core";
|
import { _converse, converse } from "@converse/headless/core";
|
||||||
import { CustomElement } from 'components/element';
|
import { CustomElement } from 'components/element';
|
||||||
|
@ -5,6 +5,8 @@ import { View } from '@converse/skeletor/src/view.js';
|
|||||||
import { api, converse } from "@converse/headless/core";
|
import { api, converse } from "@converse/headless/core";
|
||||||
import { render } from 'lit-html';
|
import { render } from 'lit-html';
|
||||||
|
|
||||||
|
import './styles/_modal.scss';
|
||||||
|
|
||||||
const { sizzle } = converse.env;
|
const { sizzle } = converse.env;
|
||||||
const u = converse.env.utils;
|
const u = converse.env.utils;
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
|
@import "bootstrap/scss/functions";
|
||||||
|
@import "bootstrap/scss/variables";
|
||||||
|
@import "bootstrap/scss/mixins";
|
||||||
|
|
||||||
#conversejs {
|
#conversejs {
|
||||||
|
@import "bootstrap/scss/modal";
|
||||||
|
|
||||||
#converse-modals {
|
#converse-modals {
|
||||||
.modal {
|
.modal {
|
@ -3,6 +3,8 @@ import AutoComplete from './autocomplete.js';
|
|||||||
import { FILTER_CONTAINS, FILTER_STARTSWITH } from './utils.js';
|
import { FILTER_CONTAINS, FILTER_STARTSWITH } from './utils.js';
|
||||||
import { _converse } from '@converse/headless/core';
|
import { _converse } from '@converse/headless/core';
|
||||||
|
|
||||||
|
import './styles/_autocomplete.scss';
|
||||||
|
|
||||||
_converse.FILTER_CONTAINS = FILTER_CONTAINS;
|
_converse.FILTER_CONTAINS = FILTER_CONTAINS;
|
||||||
_converse.FILTER_STARTSWITH = FILTER_STARTSWITH;
|
_converse.FILTER_STARTSWITH = FILTER_STARTSWITH;
|
||||||
_converse.AutoComplete = AutoComplete;
|
_converse.AutoComplete = AutoComplete;
|
||||||
|
@ -9,6 +9,8 @@ import { html } from "lit-element";
|
|||||||
import { tpl_emoji_picker } from "./templates/emoji-picker.js";
|
import { tpl_emoji_picker } from "./templates/emoji-picker.js";
|
||||||
import { until } from 'lit-html/directives/until.js';
|
import { until } from 'lit-html/directives/until.js';
|
||||||
|
|
||||||
|
import './styles/_emoji.scss';
|
||||||
|
|
||||||
const u = converse.env.utils;
|
const u = converse.env.utils;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
|
@import "bootstrap/scss/functions";
|
||||||
|
@import "bootstrap/scss/variables";
|
||||||
|
@import "bootstrap/scss/mixins";
|
||||||
|
|
||||||
#conversejs {
|
#conversejs {
|
||||||
|
@import "bootstrap/scss/media";
|
||||||
|
|
||||||
.chatbox {
|
.chatbox {
|
||||||
img.emoji {
|
img.emoji {
|
||||||
height: 1.2em;
|
height: 1.2em;
|
@ -2,7 +2,7 @@
|
|||||||
* Converse.js (Web-based XMPP instant messaging client)
|
* Converse.js (Web-based XMPP instant messaging client)
|
||||||
* https://conversejs.org
|
* https://conversejs.org
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013-2018, JC Brand <jc@opkode.com>
|
* Copyright (c) 2013-2021, JC Brand <jc@opkode.com>
|
||||||
* Licensed under the Mozilla Public License
|
* Licensed under the Mozilla Public License
|
||||||
*/
|
*/
|
||||||
@import "bootstrap/scss/functions";
|
@import "bootstrap/scss/functions";
|
||||||
@ -29,13 +29,12 @@
|
|||||||
@import "bootstrap/scss/media";
|
@import "bootstrap/scss/media";
|
||||||
@import "bootstrap/scss/list-group";
|
@import "bootstrap/scss/list-group";
|
||||||
@import "bootstrap/scss/close";
|
@import "bootstrap/scss/close";
|
||||||
@import "bootstrap/scss/modal";
|
|
||||||
@import "bootstrap/scss/tooltip";
|
@import "bootstrap/scss/tooltip";
|
||||||
@import "bootstrap/scss/popover";
|
@import "bootstrap/scss/popover";
|
||||||
@import "bootstrap/scss/utilities";
|
@import "bootstrap/scss/utilities";
|
||||||
}
|
}
|
||||||
|
|
||||||
@import "font-awesome";
|
@import "./font-awesome.scss";
|
||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
@import "core";
|
@import "core";
|
||||||
@ -43,7 +42,6 @@
|
|||||||
@import "toolbar";
|
@import "toolbar";
|
||||||
@import "chatbox";
|
@import "chatbox";
|
||||||
@import "controlbox";
|
@import "controlbox";
|
||||||
@import "modal";
|
|
||||||
@import "roster";
|
@import "roster";
|
||||||
@import "lists";
|
@import "lists";
|
||||||
@import "chatrooms";
|
@import "chatrooms";
|
||||||
@ -51,5 +49,3 @@
|
|||||||
@import "messages";
|
@import "messages";
|
||||||
@import "minimized_chats";
|
@import "minimized_chats";
|
||||||
@import "bookmarks";
|
@import "bookmarks";
|
||||||
@import "autocomplete";
|
|
||||||
@import "emoji";
|
|
Before Width: | Height: | Size: 699 KiB After Width: | Height: | Size: 699 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 876 KiB After Width: | Height: | Size: 876 KiB |
@ -19,7 +19,7 @@ const plugins = [
|
|||||||
{from: 'logo/conversejs-filled-512.png', to: 'images/logo'},
|
{from: 'logo/conversejs-filled-512.png', to: 'images/logo'},
|
||||||
{from: 'logo/conversejs-filled-192.svg', to: 'images/logo'},
|
{from: 'logo/conversejs-filled-192.svg', to: 'images/logo'},
|
||||||
{from: 'logo/conversejs-filled-512.svg', to: 'images/logo'},
|
{from: 'logo/conversejs-filled-512.svg', to: 'images/logo'},
|
||||||
{from: 'sass/webfonts', to: 'webfonts'}
|
{from: 'src/shared/styles/webfonts', to: 'webfonts'}
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin({ // This makes it possible for us to safely use env vars on our code
|
new webpack.DefinePlugin({ // This makes it possible for us to safely use env vars on our code
|
||||||
@ -62,4 +62,3 @@ module.exports = merge(common, {
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user