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
8e73c9c4
Commit
8e73c9c4
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
refacto figcaption collapsed
parent
1c0dcfdc
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/_utils.sass
+36
-0
36 additions, 0 deletions
assets/sass/_theme/_utils.sass
assets/sass/_theme/design-system/hero.sass
+2
-35
2 additions, 35 deletions
assets/sass/_theme/design-system/hero.sass
with
38 additions
and
35 deletions
assets/sass/_theme/_utils.sass
+
36
−
0
View file @
8e73c9c4
...
...
@@ -325,6 +325,42 @@
width
:
col
(
8
)
margin-left
:
$grid-gutter
@mixin
collapsed-figcaption
figcaption
@include
meta
color
:
$color-text-alt
position
:
absolute
display
:
block
left
:
0
right
:
0
z-index
:
10
a
color
:
inherit
p
@include
meta
&
::before
@include
meta
content
:
'©'
position
:
absolute
right
:
0
top
:
0
background
:
$color-background-alt
text-align
:
center
line-height
:
px2rem
(
30
)
width
:
px2rem
(
30
)
height
:
px2rem
(
30
)
display
:
block
p
background
:
$color-background-alt
display
:
none
padding
:
half
(
$spacing0
)
padding-right
:
$spacing2
&
:focus
p
display
:
block
&
:hover
figcaption
p
display
:
block
// https://gist.github.com/jonathantneal/d0460e5c2d5d7f9bc5e6
@function
str-replace
(
$string
,
$search
,
$replace
:
""
)
$index
:
str-index
(
$string
,
$search
)
...
...
This diff is collapsed.
Click to expand it.
assets/sass/_theme/design-system/hero.sass
+
2
−
35
View file @
8e73c9c4
...
...
@@ -25,41 +25,8 @@
position
:
relative
&
,
img
,
picture
display
:
block
figcaption
@include
meta
position
:
absolute
display
:
block
left
:
0
right
:
0
z-index
:
10
color
:
$color-text-alt
a
color
:
inherit
p
@include
meta
&
::before
@include
meta
content
:
'©'
position
:
absolute
right
:
0
top
:
0
background
:
$color-background-alt
text-align
:
center
line-height
:
px2rem
(
30
)
width
:
px2rem
(
30
)
height
:
px2rem
(
30
)
display
:
block
p
background
:
$color-background-alt
display
:
none
padding
:
half
(
$spacing0
)
padding-right
:
$spacing2
&
:focus
p
display
:
block
&
:hover
figcaption
p
display
:
block
@include
collapsed-figcaption
nav
+
.content
>
h1
,
>
hgroup
padding-top
:
0
...
...
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