Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_barrio-3382683
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
bootstrap_barrio-3382683
Commits
b02a27f2
Commit
b02a27f2
authored
6 years ago
by
Alberto Siles
Browse files
Options
Downloads
Patches
Plain Diff
Small improvements to subtheme and default configuration.
parent
9a891f9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootstrap_barrio.libraries.yml
+2
-3
2 additions, 3 deletions
bootstrap_barrio.libraries.yml
subtheme/_bootstrap_barrio_subtheme.theme
+35
-0
35 additions, 0 deletions
subtheme/_bootstrap_barrio_subtheme.theme
subtheme/templates/_page.html.twig
+3
-9
3 additions, 9 deletions
subtheme/templates/_page.html.twig
with
40 additions
and
12 deletions
bootstrap_barrio.libraries.yml
+
2
−
3
View file @
b02a27f2
...
@@ -253,9 +253,8 @@ material_design_icons:
...
@@ -253,9 +253,8 @@ material_design_icons:
fontawesome
:
fontawesome
:
version
:
VERSION
version
:
VERSION
css
:
js
:
component
:
//use.fontawesome.com/releases/v5.0.13/js/all.js
:
{
external
:
true
}
//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css
:
{}
# Material Design for Bootstrap
# Material Design for Bootstrap
...
...
This diff is collapsed.
Click to expand it.
subtheme/_bootstrap_barrio_subtheme.theme
0 → 100644
+
35
−
0
View file @
b02a27f2
<?php
/**
* @file
* Functions to support theming in the SASS Starterkit subtheme.
*/
use
Drupal\Core\Form\FormStateInterface
;
/**
* Implements hook_form_system_theme_settings_alter() for settings form.
*
* Replace Barrio setting options with subtheme ones.
*
* Example on how to alter theme settings form
*
*/
function
bootstrap_barrio_subtheme_form_system_theme_settings_alter
(
&
$form
,
FormStateInterface
$form_state
)
{
$form
[
'components'
][
'navbar'
][
'bootstrap_barrio_navbar_top_background'
][
'#options'
]
=
array
(
'bg-primary'
=>
t
(
'Primary'
),
'bg-secondary'
=>
t
(
'Secondary'
),
'bg-light'
=>
t
(
'Light'
),
'bg-dark'
=>
t
(
'Dark'
),
'bg-white'
=>
t
(
'White'
),
'bg-transparent'
=>
t
(
'Transparent'
),
);
$form
[
'components'
][
'navbar'
][
'bootstrap_barrio_navbar_background'
][
'#options'
]
=
array
(
'bg-primary'
=>
t
(
'Primary'
),
'bg-secondary'
=>
t
(
'Secondary'
),
'bg-light'
=>
t
(
'Light'
),
'bg-dark'
=>
t
(
'Dark'
),
'bg-white'
=>
t
(
'White'
),
'bg-transparent'
=>
t
(
'Transparent'
),
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
subtheme/templates/_page.html.twig
+
3
−
9
View file @
b02a27f2
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
#}
#}
{%
block
head
%}
{%
block
head
%}
{%
if
page.secondary_menu
or
page.
page.top_header
or
page.top_header_form
%}
{%
if
page.secondary_menu
or
page.top_header
or
page.top_header_form
%}
<nav
{{
navbar_top_attributes
}}
>
<nav
{{
navbar_top_attributes
}}
>
{%
if
container_navbar
%}
{%
if
container_navbar
%}
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -91,9 +91,7 @@
...
@@ -91,9 +91,7 @@
{%
if
container_navbar
%}
{%
if
container_navbar
%}
<div
class=
"container"
>
<div
class=
"container"
>
{%
endif
%}
{%
endif
%}
<div
class=
"navbar-brand"
>
{{
page.header
}}
{{
page.header
}}
</div>
{%
if
page.primary_menu
or
page.header_form
%}
{%
if
page.primary_menu
or
page.header_form
%}
<button
class=
"navbar-toggler navbar-toggler-right"
type=
"button"
data-toggle=
"collapse"
data-target=
"#CollapsingNavbar"
aria-controls=
"CollapsingNavbar"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<button
class=
"navbar-toggler navbar-toggler-right"
type=
"button"
data-toggle=
"collapse"
data-target=
"#CollapsingNavbar"
aria-controls=
"CollapsingNavbar"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<div
class=
"collapse navbar-collapse"
id=
"CollapsingNavbar"
>
<div
class=
"collapse navbar-collapse"
id=
"CollapsingNavbar"
>
...
@@ -116,11 +114,7 @@
...
@@ -116,11 +114,7 @@
{%
block
content
%}
{%
block
content
%}
<div
id=
"main"
class=
"
{{
container
}}
"
>
<div
id=
"main"
class=
"
{{
container
}}
"
>
{%
if
page.breadcrumb
%}
{{
page.breadcrumb
}}
<div
class=
"row"
>
{{
page.breadcrumb
}}
</div>
{%
endif
%}
<div
class=
"row row-offcanvas row-offcanvas-left clearfix"
>
<div
class=
"row row-offcanvas row-offcanvas-left clearfix"
>
<main
{{
content_attributes
}}
>
<main
{{
content_attributes
}}
>
<section
class=
"section"
>
<section
class=
"section"
>
...
...
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