dadasoz / edx-bootstrap-theme Goto Github PK
View Code? Open in Web Editor NEWedx bootstrap theme, responsive theme for edx
License: GNU General Public License v3.0
edx bootstrap theme, responsive theme for edx
License: GNU General Public License v3.0
Hi,
The command, "paver update_assets lms" does not work in the Lilac installation with Tutor. It says "Unknown assets". Is there a way to install it with Tutor?
I try to install in Hawthorn but I'm getting an error when Assets.
---> pavelib.assets.compile_sass
mkdir_p path('/edx/app/edxapp/edx-platform/themes/edx-bootstrap-theme/lms/static/css')
rtlcss /edx/app/edxapp/edx-platform/themes/edx-bootstrap-theme/lms/static/css/bootstrap/lms-main.css /edx/app/edxapp/edx-platform/themes/edx-bootstrap-theme/lms/static/css/bootstrap/lms-main-rtl.css
rtlcss /edx/app/edxapp/edx-platform/themes/edx-bootstrap-theme/lms/static/css/discussion/lms-discussion-bootstrap.css /edx/app/edxapp/edx-platform/themes/edx-bootstrap-theme/lms/static/css/discussion/lms-discussion-bootstrap-rtl.css
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 201, in _run_task
return do_task()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 198, in do_task
return func(**kw)
File "/edx/app/edxapp/edx-platform/pavelib/utils/timer.py", line 39, in timed
return wrapped(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/pavelib/assets.py", line 464, in compile_sass
timing_info=timing_info
File "/edx/app/edxapp/edx-platform/pavelib/assets.py", line 548, in _compile_sass
output_style=output_style,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/sass.py", line 644, in compile
raise CompileError(v)
CompileError: Error: Incompatible units: 'rem' and 'px'.
on line 367 of node_modules/bootstrap/scss/_variables.scss
$input-height-inner: ($font-size-base * $input-btn-line-hei
-----------------------------------------^
Hi
It is looks good. I tried to enable in my edx installation but got error in compiling after paver update_assets lms --settings=aws command.
Thanks for help
CompileError: Error: File to import not found or unreadable: lms/static/sass/lms-main-rtl
Parent style sheet: /edx/app/edxapp/edx-platform/themes/edx-bootstrap-theme/lms/static/sass/lms-main-rtl.scss
on line 5 of themes/edx-bootstrap-theme/lms/static/sass/lms-main-rtl.scss
@import 'lms/static/sass/lms-main-rtl';
^
Hello Friend, that is a great effort and people like me are to consume without efforts.
I tried applying your theme and followed the instructions.
I got a "No CSS"??? look. Means I need to download bootstrap ??
If it is the case can you guide me how to use that downloaded bootstrap.
---> pavelib.assets.compile_sass
mkdir_p path('/home/ubuntu/edx.custom-theme/themes/custom-theme/lms/static/css')
rtlcss /home/ubuntu/edx.custom-theme/themes/custom-theme/lms/static/css/bootstrap/lms-main.css /home/ubuntu/edx.custom-theme/themes/custom-theme/lms/static/css/bootstrap/lms-main-rtl.css
rtlcss /home/ubuntu/edx.custom-theme/themes/custom-theme/lms/static/css/discussion/lms-discussion-bootstrap.css /home/ubuntu/edx.custom-theme/themes/custom-theme/lms/static/css/discussion/lms-discussion-bootstrap-rtl.css
mkdir_p path('/home/ubuntu/edx.custom-theme/themes/edx-bootstrap-theme-master/lms/static/css')
rtlcss /home/ubuntu/edx.custom-theme/themes/edx-bootstrap-theme-master/lms/static/css/bootstrap/lms-main.css /home/ubuntu/edx.custom-theme/themes/edx-bootstrap-theme-master/lms/static/css/bootstrap/lms-main-rtl.css
rtlcss /home/ubuntu/edx.custom-theme/themes/edx-bootstrap-theme-master/lms/static/css/discussion/lms-discussion-bootstrap.css /home/ubuntu/edx.custom-theme/themes/edx-bootstrap-theme-master/lms/static/css/discussion/lms-discussion-bootstrap-rtl.css
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 201, in _run_task
return do_task()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 198, in do_task
return func(**kw)
File "/edx/app/edxapp/edx-platform/pavelib/utils/timer.py", line 39, in timed
return wrapped(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/pavelib/assets.py", line 464, in compile_sass
timing_info=timing_info
File "/edx/app/edxapp/edx-platform/pavelib/assets.py", line 548, in _compile_sass
output_style=output_style,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/sass.py", line 644, in compile
raise CompileError(v)
CompileError: Error: Incompatible units: 'rem' and 'px'.
on line 367 of node_modules/bootstrap/scss/_variables.scss
$input-height-inner: ($font-size-base * $input-btn-line-hei
-----------------------------------------^
First of all, greate work!, I am having some problems compiling sass, can you help out:
Captured Task Output:
---------------------
---> pavelib.assets.compile_sass
mkdir_p path('/edx/app/edxapp/themes/edx-platform/indiax2/lms/static/css')
mkdir_p path('/edx/app/edxapp/themes/edx-platform/indiax/lms/static/css')
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 196, in _run_task
return do_task()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 193, in do_task
return func(**kw)
File "/edx/app/edxapp/edx-platform/pavelib/utils/timer.py", line 38, in timed
return wrapped(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/pavelib/assets.py", line 499, in compile_sass
timing_info=timing_info
File "/edx/app/edxapp/edx-platform/pavelib/assets.py", line 583, in _compile_sass
output_style=output_style,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/sass.py", line 644, in compile
raise CompileError(v)
CompileError: Error: Undefined variable: "$static-path".
on line 6 of lms/static/sass/base/_font_face.scss
>> }
------------^
I am trying to set your theme in an Edx Eucalyptus fullstack instance but I have severel problems. When I execute "paver update_assets lms --settings=aws --debug" I get an error telling me that "static.get_themed_template_path" doesn't exist. This code is in
lms/templates/header.html and it is:
<%include file="${static.get_themed_template_path(relative_path='theme-header.html', default_path='theme-header.html')}" args="online_help_token=online_help_token" />
Trying to continue I modified it removing "themed_" and then I get a similar error with this files and code:
lms/templates/themable-footer.html
lms/templates/theme-header.html (same code in this file):
from microsite_configuration.templatetags.microsite import platform_name
I commented that line and it worked but the resultant theme is not responsive and show error 500 instead of courses with this log at /edx/var/log/supervisor/lms-stderr.log
File "/tmp/mako_lms/a2b0dda4fba8f36dc7c8a2e63893049c/edx-bootstrap-theme/lms/templates/dashboard.html.py", line 192, in render_body
course_program_info = course_programs.get(unicode(enrollment.course_id))
AttributeError: 'Undefined' object has no attribute 'get'
It's not valid for Eucalyptus? Could you help?
Thanks for your effort at the 1st and please i need to know why i get this error after i apply the theme and in the lms error log i got this
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 829, in _render
**kwargs_for_callable(callable, data))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 864, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 890, in exec_template
callable(context, *args, **kwargs)
File "/tmp/mako_lms/b2153bd0b7ba514602455e292b961b2f/ah/lms/templates/theme-main.html.py", line 293, in render_body
runtime._include_file(context, (static.get_template_path('header.html')), _template_uri, online_help_token=online_help_token)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 752, in include_file
callable(ctx, **kwargs_for_include(callable, context._data, **kwargs))
File "/tmp/mako_lms/b2153bd0b7ba514602455e292b961b2f/ah/lms/templates/header.html.py", line 34, in render_body
runtime._include_file(context, (static.get_themed_template_path(relative_path='theme-header.html', default_path='theme-header.html')), _template_uri, online_help_token=online_help_token)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 625, in getattr
(self.name, key))
AttributeError: Namespace 'static' has no member 'get_themed_template_path'
Hi @dadasoz,
This theme looks really nice. Could you please add a file to explain what license it uses?
Thanks!
it's really a nick work, but i try to install this on gingko, it doesn't work.
Hello Friend,
I applied your theme on Dogwood 3 and customized it accordingly.
Unfortunately what I observed is that course info and course about section is overlapping with header.
Do you have a solution or suggestion for this ????
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.