Skip to content

Commit

Permalink
Merge custom gallery CSS with custom font CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Sep 11, 2024
1 parent 358862e commit fe9f890
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 43 deletions.
40 changes: 0 additions & 40 deletions src/wp2hugo/internal/hugogenerator/hugo_custom_css.go

This file was deleted.

30 changes: 30 additions & 0 deletions src/wp2hugo/internal/hugogenerator/hugo_custom_font.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,36 @@ body {
word-break: break-word;
background: var(--theme);
}
.gallery {
display: flex;
flex-wrap: wrap;
}
.gallery figure,
.gallery figure img {
text-align: center;
}
.gallery figure img {
margin: 1rem auto;
}
.gallery-cols-1 figure {
width: 100%;
}
.gallery-cols-2 figure {
width: 50%;
}
.gallery-cols-3 figure {
width: 33.3333333333%;
}
.gallery-cols-4 figure {
width: 25%;
}
.gallery-cols-5 figure {
width: 25%;
}
.gallery-cols-6 figure {
width: 16.666666666%;
}
`

const _outputCssFile = "themes/PaperMod/assets/css/extended/blank.css"
Expand Down
3 changes: 0 additions & 3 deletions src/wp2hugo/internal/hugogenerator/hugo_gen_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ func (g Generator) Generate() error {
if err = setupFont(*siteDir, g.fontName); err != nil {
return err
}
if err = setupCSS(*siteDir); err != nil {
return err
}
if err = WriteCustomShortCodes(*siteDir); err != nil {
return err
}
Expand Down

0 comments on commit fe9f890

Please sign in to comment.