Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
0a63c8a4
Commit
0a63c8a4
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
simplify hero
parent
222c5eac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/sass/_theme/design-system/breadcrumb.sass
+2
-1
2 additions, 1 deletion
assets/sass/_theme/design-system/breadcrumb.sass
assets/sass/_theme/design-system/hero.sass
+27
-44
27 additions, 44 deletions
assets/sass/_theme/design-system/hero.sass
with
29 additions
and
45 deletions
assets/sass/_theme/design-system/breadcrumb.sass
+
2
−
1
View file @
0a63c8a4
...
...
@@ -4,7 +4,8 @@
flex-wrap
:
nowrap
overflow
:
auto
display
:
flex
padding-bottom
:
$spacing0
height
:
$spacing3
align-items
:
center
li
flex-shrink
:
0
white-space
:
nowrap
...
...
This diff is collapsed.
Click to expand it.
assets/sass/_theme/design-system/hero.sass
+
27
−
44
View file @
0a63c8a4
.hero
// Support gradients
background
:
$hero-background-color
// Fallback color
background-color
:
$hero-background-color
color
:
$hero-color
min-height
:
$hero-height
padding-bottom
:
$spacing3
padding-top
:
calc
(
2rem
+
var
(
--
header-height
)
)
padding-top
:
var
(
--
header-height
)
position
:
relative
margin-bottom
:
$spacing3
@include
media-breakpoint-up
(
desktop
)
...
...
@@ -10,21 +14,11 @@
*
:focus-visible
outline-color
:
$hero-color
&
::before
content
:
''
position
:
absolute
// Support gradients
background
:
$hero-background-color
// Fallback color
background-color
:
$hero-background-color
top
:
0
left
:
0
right
:
0
bottom
:
0
z-index
:
-1
.content
margin-top
:
calc
(
#{
$spacing3
}
+
#{
$spacing1
}
+
#{
$meta-size-desktop
}
)
align-items
:
start
>
h1
,
>
hgroup
padding-top
:
$spacing3
margin-top
:
$spacing3
h1
+
p
margin-top
:
$spacing1
figure
...
...
@@ -33,15 +27,14 @@
display
:
block
figcaption
@include
meta
color
:
$color-text-alt
a
color
:
inherit
position
:
absolute
display
:
block
left
:
0
right
:
0
z-index
:
10
color
:
$color-text-alt
a
color
:
inherit
p
@include
meta
&
::before
...
...
@@ -67,10 +60,9 @@
&
:hover
figcaption
p
display
:
block
nav
+
.content
margin-top
:
$spacing3
>
h1
,
>
hgroup
padding-top
:
0
// TODO : handle hero with image
// @if $breadcrumb-below-h1
// .container:first-child
...
...
@@ -83,36 +75,33 @@
// margin-top: $spacing3
@include
media-breakpoint-down
(
desktop
)
// &:not(.hero--with-image)
// margin-bottom: 0
.breadcrumb-nav
margin-left
:
half
(
-
$grid-gutter-sm
)
margin-right
:
half
(
-
$grid-gutter-sm
)
>
ol
padding
:
0
half
(
$grid-gutter-sm
)
&
--with-image
padding-bottom
:
0
&
::before
bottom
:
$spacing3
.content
>
h1
,
>
hgroup
margin-bottom
:
$spacing2
&
--image-landscape
figure
margin
:
half
(
$spacing3
)
half
(
-
$grid-gutter-sm
)
0
margin-left
:
half
(
-
$grid-gutter-sm
)
margin-right
:
half
(
-
$grid-gutter-sm
)
&
--image-portrait
,
&
--image-square
.container
display
:
flex
flex-direction
:
column
//
margin-bottom: $spacing5
margin-bottom
:
$spacing5
figure
// margin-bottom: calc(#{-$spacing5} + #{$spacing2})
margin-top
:
$spacing1
margin-bottom
:
calc
(
#{
-
$spacing5
}
+
#{
$spacing2
}
)
@include
media-breakpoint-up
(
desktop
)
// $negative-margin-bottom: $spacing4
.content
>
h1
,
>
hgroup
width
:
col
(
9
)
padding-bottom
:
$spacing4
&
--with-image
padding-bottom
:
0
min-height
:
calc
(
#{
$hero-height-desktop
}
+
#{
$spacing3
}
)
&
::before
bottom
:
$spacing3
.content
display
:
flex
justify-content
:
space-between
...
...
@@ -121,11 +110,6 @@
figure
width
:
col
(
5
)
&
--image-landscape
.content
figure
font-size
:
$h1-size-desktop
margin-top
:
0
.5ex
&
--image-portrait
,
&
--image-square
.breadcrumb-nav
width
:
calc
(
#{
col
(
9
)
}
+
#{
half
(
$grid-gutter
)
}
)
...
...
@@ -137,6 +121,5 @@
>
h1
,
>
hgroup
width
:
col
(
8
)
figure
margin-top
:
calc
(
-
#{
$spacing3
}
-
#{
$spacing1
}
)
width
:
col
(
4
)
width
:
col
(
3
)
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