Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal 8 SASS Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Composer
plugin
Drupal 8 SASS Theme
Commits
b579b391
Commit
b579b391
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#7
Optimize basic sass structure
parent
90e42946
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/sass/_default-variables.scss
+1
-10
1 addition, 10 deletions
templates/sass/_default-variables.scss
templates/sass/_settings.scss.twig
+23
-0
23 additions, 0 deletions
templates/sass/_settings.scss.twig
templates/sass/style.scss
+4
-10
4 additions, 10 deletions
templates/sass/style.scss
with
28 additions
and
20 deletions
templates/sass/_default-variables.scss
+
1
−
10
View file @
b579b391
// TODO: Make this configurable
// Set the directory for the Bootstrap Glyphicon font.
$icon-font-path
:
'../fonts/bootstrap/'
;
// Set the directory for the Flat-UI Glyphicon font.
$icon-font-path
:
'../fonts/flat-ui'
;
$icon-font-name
:
'flat-ui-icons-regular'
;
// Enable the animate modules you want to use
$use-bounceIn
:
true
;
// Put your variables in here
This diff is collapsed.
Click to expand it.
templates/sass/_settings.scss.twig
0 → 100644
+
23
−
0
View file @
b579b391
{%
if
bower_assets.bootstrap
-
sass.fonts
is
defined
%}
// Set the directory for the Bootstrap Glyphicon font.
$icon-font-path: '../fonts/bootstrap/';
{%
endif
%}
{%
if
bower_assets.flat
-
ui
is
defined
%}
// Workaround for Flat-UI issue with node-sass:
// @see https://github.com/wingrunr21/flat-ui-sass/issues/39
@function tint($color, $percentage){
@return mix(#fff, $color, $percentage)
}
{%
if
bower_assets.flat
-
ui.fonts
is
defined
%}
// Set the directory for the Flat-UI Glyphicon font.
$icon-font-path: '../fonts/flat-ui';
$icon-font-name: 'flat-ui-icons-regular';
{%
endif
%}
{%
if
bower_assets.animate
-
sass.sass
is
defined
%}
// Enable the animate modules
{%
for
module
in
bower_assets.animate
-
sass.sass.modules
|
default
([])
%}
$use-
{{
module
}}
: true;
{%
endfor
%}
{%
endif
%}
This diff is collapsed.
Click to expand it.
templates/sass/style.scss
+
4
−
10
View file @
b579b391
// =============================================================================
// Example main style file for SCSS, please delete those you don't need!!!
// Main style file for SCSS. To change settings of the theme, please edit the
// composer.json of your project and run ** composer update **
//
// Also, please have a look into default variables.
// =============================================================================
@import
'settings'
;
@import
'default-variables'
;
// Workaround for Flat-UI issue with node-sass:
// @see https://github.com/wingrunr21/flat-ui-sass/issues/39
@function
tint
(
$color
,
$percentage
){
@return
mix
(
#fff
,
$color
,
$percentage
)
}
// ============== Bower assets =================================================
@import
'bower-assets.scss'
;
// =============================================================================
// Add your own them
e
ing stuff below this.
// Add your own theming stuff below this.
// =============================================================================
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment