Skip to content

Commit

Permalink
summary fixed width
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvlevi committed May 3, 2024
1 parent 1321f1f commit 9d7a267
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 13 deletions.
11 changes: 6 additions & 5 deletions tasks/lib/components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function MethodSummary(parent, methods, class)
end

return
"<div>"..
"<div class=\"summary\">"..
"<h3>".. parent .."</h3>"..
"<ul>".. summary .."</ul>"..
"</div>";
Expand All @@ -61,10 +61,11 @@ local function Index(modules, class)
index = index .. MethodSummary(header, methods);

end

return "<div class=\"modules\">"..
index..
"</div>";

return
"<div class=\"modules\" id=\"reactive\">"..
index..
"</div>";
end


Expand Down
48 changes: 40 additions & 8 deletions tasks/templates/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ li:not(:last-child) {
padding-bottom: 12px;
}

.method {
padding-top: 2rem;
}

.btn {
padding-left: 0.5rem;
}
Expand Down Expand Up @@ -86,16 +90,24 @@ header {
display: flex;
flex-direction: row;
align-items: baseline;
gap: 1rem;
gap: 0.9rem;
flex-wrap: wrap;
}


.modules {
display: flex;
flex-wrap: wrap;
margin:auto;
width: 80%;
width: 76%;
gap: 3.5rem;

margin-right:auto;
margin-left:auto;
}

.modules.open {
margin-right:12.2rem;
margin-left: auto;
}

a {
Expand All @@ -106,30 +118,50 @@ a:visited {
text-decoration: none;
}

h1.module {

.version {
color: var(--dark);

position:relative;
top:-0.25em;
color: var(--primary);
font-weight: bold;
font-size: 32pt;
left: -0.25em;
}


main {
padding: 2.2em;

height: fit-content;

width: 100%;

display: flex;
flex-direction: column;
gap: 2.5rem;
gap: 0rem;
}

.summary {
min-width: 8em;
}

h1.module {
position:relative;
top:-0.25em;
color: var(--primary);
font-weight: bold;
font-size: 26pt;
}


@media (min-width: 900px) {
main > .method {
padding-left: 10%;
}

h1.module {
font-size: 32pt;
}

}


Expand Down

0 comments on commit 9d7a267

Please sign in to comment.