Merge pull request #35717 from openedx/farhan/sass-to-css-wordcloud-block-2
feat!: Dropping Sass support from builtin word cloud block
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
.xmodule_display.xmodule_WordCloudBlock {
|
||||
@import "word_cloud/display.scss";
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
@import 'bourbon/bourbon';
|
||||
@import 'lms/theme/variables';
|
||||
@import 'bootstrap/scss/variables';
|
||||
@import 'lms/theme/variables-v1';
|
||||
|
||||
.input-cloud {
|
||||
margin: calc((var(--baseline)/4));
|
||||
}
|
||||
|
||||
.result_cloud_section {
|
||||
display: none;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
.result_cloud_section.active {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 1em;
|
||||
|
||||
h3 {
|
||||
font-size: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.your_words{
|
||||
font-size: 0.85em;
|
||||
display: block;
|
||||
}
|
||||
32
xmodule/static/css-builtin-blocks/WordCloudBlockDisplay.css
Normal file
32
xmodule/static/css-builtin-blocks/WordCloudBlockDisplay.css
Normal file
@@ -0,0 +1,32 @@
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700");
|
||||
|
||||
.xmodule_display.xmodule_WordCloudBlock {
|
||||
/* stylelint-disable-line */
|
||||
/* stylelint-disable-line */
|
||||
}
|
||||
|
||||
.xmodule_display.xmodule_WordCloudBlock .input-cloud {
|
||||
margin: calc((var(--baseline) / 4));
|
||||
}
|
||||
|
||||
.xmodule_display.xmodule_WordCloudBlock .result_cloud_section {
|
||||
display: none;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
.xmodule_display.xmodule_WordCloudBlock .result_cloud_section.active {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.xmodule_display.xmodule_WordCloudBlock .result_cloud_section.active h3 {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
.xmodule_display.xmodule_WordCloudBlock .your_words {
|
||||
font-size: 0.85em;
|
||||
display: block;
|
||||
}
|
||||
@@ -15,7 +15,7 @@ from xblock.core import XBlock
|
||||
from xblock.fields import Boolean, Dict, Integer, List, Scope, String
|
||||
from xmodule.editing_block import EditingMixin
|
||||
from xmodule.raw_block import EmptyDataRawMixin
|
||||
from xmodule.util.builtin_assets import add_webpack_js_to_fragment, add_sass_to_fragment
|
||||
from xmodule.util.builtin_assets import add_webpack_js_to_fragment, add_css_to_fragment
|
||||
from xmodule.xml_block import XmlMixin
|
||||
from xmodule.x_module import (
|
||||
ResourceTemplates,
|
||||
@@ -262,7 +262,7 @@ class WordCloudBlock( # pylint: disable=abstract-method
|
||||
'num_inputs': self.num_inputs,
|
||||
'submitted': self.submitted,
|
||||
}))
|
||||
add_sass_to_fragment(fragment, 'WordCloudBlockDisplay.scss')
|
||||
add_css_to_fragment(fragment, 'WordCloudBlockDisplay.css')
|
||||
add_webpack_js_to_fragment(fragment, 'WordCloudBlockDisplay')
|
||||
shim_xmodule_js(fragment, 'WordCloud')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user