chore: switched to new build system for css.

- added community.bundle.less file to create css bundle
- removed the obsolete build.json in favor of new build system
- updated the paths in the books
- removed the imported urls from css files (the new build system doesn't support that)
- removed obsolete lms.css
This commit is contained in:
Anand Chitipothu
2021-05-20 13:12:19 +05:30
parent a67ad67be1
commit 8c889ffb92
7 changed files with 8 additions and 60 deletions

View File

@@ -18,11 +18,11 @@ app_logo_url = APP_LOGO_URL
# ------------------
# include js, css files in header of desk.html
app_include_css = "/assets/community/css/community.css"
app_include_js = "/assets/community/js/community.js"
# app_include_css = "/assets/community/css/community.css"
# app_include_js = "/assets/community/js/community.js"
# include js, css files in header of web template
web_include_css = "/assets/css/community.css"
web_include_css = "community.bundle.css"
# web_include_css = "/assets/community/css/community.css"
# web_include_js = "/assets/community/js/community.js"

View File

@@ -16,12 +16,3 @@
is_exercise=True,
last_submitted=submission and submission.creation) }}
</div>
<style type="text/css">
.exercise-image svg {
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-bottom: 20px;
}
</style>

View File

@@ -1,14 +0,0 @@
{
"css/lms.css": [
"public/css/lms.css"
],
"css/community.css": [
"public/css/style.css",
"public/css/vars.css",
"public/css/style.less"
],
"js/livecode-canvas.js": [
"public/js/livecode-canvas.js"
]
}

View File

@@ -0,0 +1,4 @@
@import "./style.css";
@import "./vars.css";
@import "./style.less";

View File

@@ -1,26 +0,0 @@
.heading {
background: #eee;
padding: 10px;
clear: both;
color: #212529;
border: 1px solid #ddd;
}
.sketch-header h1 {
font-size: 1.5em;
margin-bottom: 0px;
}
.sketch-header {
margin-bottom: 1em;
}
.sketch-card .sketch-title a {
font-weight: bold;
color: inherit;
}
.hidden {
display: none;
}

View File

@@ -1,5 +1,3 @@
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css");
@import url("https://use.fontawesome.com/releases/v5.13.0/css/all.css");
:root {
--c1: #fefae0;
@@ -26,7 +24,7 @@
--send-message: var(--c7);
--received-message: var(--c8);
--primary-color: #08B74F;
--primary-color: #08B74F !important;
}
body {

View File

@@ -1,9 +1,4 @@
@primary-color: #08B74F;
@import url('https://rsms.me/inter/inter.css');
body {
font-family: "Inter", sans-serif;
}
h2 {
margin: 20px 0px;