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
6638cf7f
Commit
6638cf7f
authored
2 years ago
by
alexisben
Browse files
Options
Downloads
Patches
Plain Diff
block image
parent
63d59c6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/sass/_theme/blocks/image.sass
+30
-11
30 additions, 11 deletions
assets/sass/_theme/blocks/image.sass
with
30 additions
and
11 deletions
assets/sass/_theme/blocks/image.sass
+
30
−
11
View file @
6638cf7f
...
...
@@ -13,24 +13,43 @@
.credit
p
@extend
.meta
picture
display
:
block
margin-left
:
calc
(
-
#{
$grid-gutter-sm
}
/
2
)
margin-right
:
calc
(
-
#{
$grid-gutter-sm
}
/
2
)
@include
media-breakpoint-down
(
md
)
.container
padding-left
:
0
padding-right
:
0
figcaption
padding
:
0
calc
(
#{
$grid-gutter-sm
}
/
2
)
@include
in-page-with-sidebar
@include
media-breakpoint-up
(
md
)
picture
margin-left
:
0
margin-right
:
-
$grid-gutter
img
max-height
:
calc
(
100vh
-
var
(
--
header-height
))
width
:
auto
@include
in-page-without-sidebar
@include
media-breakpoint-up
(
md
)
figcaption
align-items
:
baseline
.block-content
position
:
relative
.top
position
:
absolute
width
:
col
(
5
)
figure
display
:
flex
justify-content
:
space-between
>
*
max-width
:
40%
align-items
:
flex-end
>
a
width
:
col
(
7
)
margin-left
:
calc
(
#{
$grid-gutter
}
/
2
)
display
:
block
order
:
2
picture
margin-left
:
0
margin-right
:
-
$grid-gutter
figcaption
width
:
calc
(
#{
col
(
5
)
}
+
#{
$grid-gutter
}
/
2
)
order
:
1
display
:
block
text-align
:
right
img
max-height
:
calc
(
100vh
-
var
(
--
header-height
))
width
:
auto
\ No newline at end of file
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