You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ So the way you import the stylesheets would be something like this:
28
28
@import jquery.ui.datepicker // import all the modules you need
29
29
```
30
30
31
-
The big advantage that the jQuery UI stylesheets have been converted to Sass in this gem is that you now have a super easy way to customize the jQuery UI themes using simple Sass variables. You simply need to specify your own values **before** you import the jQuery UI stylesheets:
31
+
The big advantage that the jQuery UI stylesheets have been converted to Sass in this gem is that you now have a super easy way to customize the jQuery UI themes using simple Sass variables. You simply need to specify your own values **before** you import the `jquery.ui.theme` stylesheet:
32
32
33
33
```sass
34
34
// app/assets/stylesheets/application.css.sass
@@ -42,6 +42,20 @@ $bgColorContent: purple // set custom value for jQueryUI variable
42
42
43
43
For a list of all jQuery UI variables check out: https://github.com/jhilden/jquery-ui-sass-rails/blob/master/app/assets/stylesheets/_jquery.ui.variables.css.scss
44
44
45
+
## Themes
46
+
47
+
`jquery-ui-sass-rails` comes with variable sets for all the themes in the [jQuery UI Themeroller](http://jqueryui.com/themeroller/), you use them by importing the respective partial before the `jquery.ui.theme`:
48
+
49
+
```sass
50
+
// app/assets/stylesheets/application.css.sass
51
+
52
+
@import themes/jquery.ui.smoothness // variables for 'smothness' theme
0 commit comments