Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Teckids
Team PR
teckids.org
Commits
cf1cf914
Unverified
Commit
cf1cf914
authored
11 months ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
CLean up hero background SCSS
parent
484e83cc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#179122
passed
11 months ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sass/_utils.scss
+18
-11
18 additions, 11 deletions
sass/_utils.scss
templates/shortcodes/hero_section.html
+3
-3
3 additions, 3 deletions
templates/shortcodes/hero_section.html
with
21 additions
and
14 deletions
sass/_utils.scss
+
18
−
11
View file @
cf1cf914
@use
"./teckids"
;
.image.is-70p
{
width
:
70%
;
height
:
70%
;
...
...
@@ -43,17 +44,9 @@ figure.image>figcaption {
opacity
:
0
.6
;
bottom
:
-20vh
;
.box
{
color
:
black
;
}
}
.container.is-transparent
{
bottom
:
0
!
important
;
opacity
:
1
;
.box
{
background
:
none
;
box-shadow
:
none
;
color
:
black
;
}
}
}
...
...
@@ -66,7 +59,21 @@ figure.image>figcaption {
height
:
100%
;
}
img
.hero-background.is-transparent
{
opacity
:
0
.3
;
&
.is-transparent
{
.hero-body
{
.container
{
bottom
:
0
!
important
;
opacity
:
1
;
.box
{
background
:
none
;
box-shadow
:
none
;
}
}
}
img
.hero-background.is-transparent
{
opacity
:
0
.3
;
}
}
}
This diff is collapsed.
Click to expand it.
templates/shortcodes/hero_section.html
+
3
−
3
View file @
cf1cf914
<section
class=
"hero is-fullheight-with-navbar {% if background_img %}has-background{% endif %}"
>
<section
class=
"hero is-fullheight-with-navbar {% if background_img %}has-background{% endif
%} {% if background_transparent %}is-transparent{% endif
%}"
>
{% if background_img %}
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ background_img, width=800, height=600) -%}
<img
class=
"hero-background
{% if background_transparent %}is-transparent{% endif %}
"
src=
"{{ image.url }}"
alt=
""
>
<img
class=
"hero-background"
src=
"{{ image.url }}"
alt=
""
>
{% endif -%}
<div
class=
"hero-body pl-0 pr-0"
>
<div
class=
"container has-text-centered
{% if background_transparent %}is-transparent{% endif %}
"
>
<div
class=
"container has-text-centered"
>
<div
class=
"box is-radiusless"
>
<h1
class=
"title is-1 mb-5"
>
{% if page.extra.title.image -%}
...
...
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