Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
White Cabinet theme
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
CNS Netadmin
White Cabinet theme
Commits
3cace6c3
Commit
3cace6c3
authored
6 years ago
by
Naoya Ozawa
Browse files
Options
Downloads
Patches
Plain Diff
[add] css to tile-ize lab images #7
parent
43e6353f
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
themes/cns_hp_theme/layouts/partials/main_menu.html
+2
-1
2 additions, 1 deletion
themes/cns_hp_theme/layouts/partials/main_menu.html
themes/cns_hp_theme/static/css/main_menu.css
+23
-0
23 additions, 0 deletions
themes/cns_hp_theme/static/css/main_menu.css
with
25 additions
and
1 deletion
themes/cns_hp_theme/layouts/partials/main_menu.html
+
2
−
1
View file @
3cace6c3
...
...
@@ -21,6 +21,7 @@
{{ if eq .Identifier "lab" }}
<div>
{{ range .Children }}
{{ $nm := .Name }}
{{ $w := sub .Weight 1 }}
{{ $pt := .URL | relLangURL }}
<!-- Fetch image path -->
...
...
@@ -28,7 +29,7 @@
{{ if eq .Title "Lab" }}
{{ range $index, $element := (.Page.Param "image") }}
{{ if eq $w $index }}
<a
href=
{{
$
pt
}}
><img
src=
"{{ . }}"
></a>
<a
href=
{{
$
pt
}}
class=
"tile"
><img
src=
"{{ . }}"
alt=
{{
$
nm
}}
title=
{{
$
nm
}}
><div
class=
"caption"
>
{{ $nm }}
</div
></a>
{{ end }}
{{ end }}
{{ end }}
...
...
This diff is collapsed.
Click to expand it.
themes/cns_hp_theme/static/css/main_menu.css
+
23
−
0
View file @
3cace6c3
...
...
@@ -57,4 +57,27 @@
}
.tile
{
position
:
relative
;
}
.tile
img
{
width
:
100%
;
height
:
auto
;
margin
:
2px
;
max-width
:
210px
;
background
:
#f7f7f7
;
box-shadow
:
0px
2px
2px
rgba
(
0
,
0
,
0
,
0.29
);
}
.tile
div
.caption
{
position
:
absolute
;
width
:
97%
;
height
:
240%
;
bottom
:
10px
;
left
:
3px
;
color
:
#000
;
background
:
#fff
;
font-size
:
130%
;
text-align
:
center
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
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