fomantic-ui-sass | sass version of semantic ui | User Interface library
kandi X-RAY | fomantic-ui-sass Summary
kandi X-RAY | fomantic-ui-sass Summary
The sass version of semantic ui. It is fully customizable with isolated variable names.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fomantic-ui-sass
fomantic-ui-sass Key Features
fomantic-ui-sass Examples and Code Snippets
Community Discussions
Trending Discussions on fomantic-ui-sass
QUESTION
I just switched from Semantic UI to the community maintained Fomantic UI in my Rails app, and get one of two obscure errors when using either the npm package or the sass rails gem.
With the npm package, I get
Less::Error unmatched '/*'
whenever thestylesheet_link_tags
and such start to load fomantic assets in the document head. The fomantic styles and js are pulled into my project through the following two files:application.css.scss
*= require 'semantic-ui/src/semantic
application.js
//= require semantic-ui/dist/semantic
I notice that it works when I make both stylesheet and js load from
semantic-ui/dist
. However, doing that excludes a lot. Icons stop working. Relevant file stored insemantic-ui/src
is semantic.less. Relevant files stored insemantic-ui/dist
are semantic.min.css (which i do not require except for just now when switching things around to figure this out) and semantic.min.js (which i do require).Again, it "works" if I require the minified stylesheet in
semantic-ui/dist
, and it does not "work" if i require the semantic.less file insemantic-ui/src
. Is this a problem with semantic.less or one of the other generated import files?With the sass rails gem, I get a Sass::SyntaxError
Invalid CSS after "i.icon.stopwatch.": expected class name, was "20:before"
.Looking at the source, I see a number of these declarations:
i.icon.stopwatch.20:before {content: "\f96f";}
.Why is that throwing an error?
Does this mean that the npm package and gem have invalid css or that my app is compiling incorrectly? I have no opinions about using the npm package or the gem, I just want it to work. Everything worked fine when I was using the old Semantic UI. I am extremely confused and would greatly appreciate the help. Thank you!
...ANSWER
Answered 2021-Mar-01 at 06:24- With the npm package
It seems Sprockets doesn't support less
from README
Sprockets ... allows you to write assets in languages like CoffeeScript, Sass and SCSS.
So you can't use /src
direcotry.
You could try to import
/dist
:
QUESTION
I'm looking to get the Calendar javascript functionality to work in my Ruby on Rails app, and it's not, and I'm wondering what I'm doing wrong?
I've bundle installed both the fomantic-ui-sass
and the 'jquery-rails'gems in my application, and put into the app/assets/application.js
the following:
ANSWER
Answered 2020-Apr-13 at 21:16There are two things wrong with the above code. Notice that there's a space // =
instead of //=
.
Second, if the semantic-ui is dependent on jquery, jquery should be loaded first.
QUESTION
I'm running Rails version 5.2.4 Here is the relevant part of my view in Ruby on Rails
...ANSWER
Answered 2020-Apr-13 at 21:13There are two potential issues with your application.js
.
The following lines use
// =
(notice the space) instead of//=
. The Rails guide The Asset Pipeline - 2.4 Manifest Files and Directives specifically states to use//=
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fomantic-ui-sass
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page