Skip to content

Commit

Permalink
🎨 Minor style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed May 22, 2024
1 parent 359cb35 commit 56e65fb
Show file tree
Hide file tree
Showing 4 changed files with 11,832 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ DocMeta.setdocmeta!(MLJFlux, :DocTestSetup, :(using MLJFlux); recursive=true)

makedocs(
sitename = "MLJFlux",
format = Documenter.HTML(repolink="https://github.com/FluxML/MLJFlux.jl"),
format = Documenter.HTML(;
assets = [
"assets/favicon.ico",
asset(
"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap",
class = :css,
),
],
repolink="https://github.com/FluxML/MLJFlux.jl"
),
modules = [MLJFlux],
warnonly = true,
pages = ["Introduction" => "index.md",
Expand Down
Binary file added docs/src/assets/favicon.ico
Binary file not shown.
107 changes: 107 additions & 0 deletions docs/src/assets/light.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
@charset "UTF-8";

$family-sans-serif: 'Montserrat', sans-serif;
$family-monospace: 'Source Code Pro', monospace;
$themename: "documenter-light"; // CSS file must be called `$(themename).css`

@import "documenter-light";


#documenter .content p { // Justify text in paragraphs
text-align: justify;
}

.docstring {
border-radius: 15px !important;
header {
border-radius: 15px 15px 0 0 !important;
}
pre {
border-radius: 10px;
padding: 4px;
}

section {
padding: 20px;


}

}

.docs-package-name {
display: none;
}


.admonition {
border-radius: 15px !important;
}


code.nohighlight.hljs {
background-color: white !important;
}



.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
max-width: 1200px;
padding: 20px;
}

.grid-item {
position: relative;
overflow: hidden;
border-radius: 15px;
transition: transform 0.3s ease;
cursor: pointer;
}

.grid-item img {
max-width: 100%;
height: auto;
display: block;
}

.grid-item .item-title {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.9);
color: #fff;
padding: 8px 15px;
font-size: 16px;
}

.item-title p {
font-weight: normal !important;
display: none;
}



.grid-item:hover p {
display: block;
}

.grid-item:hover #colab {
display: block;
}

#colab {
border-radius: 25%;
position: absolute;
top: 3px;
right: 3px;
width: 11%;
display: none;
}

.content pre {
border-radius: 1rem !important;
}
Loading

0 comments on commit 56e65fb

Please sign in to comment.