Skip to content

Commit

Permalink
mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
0x70b1a5 committed Feb 7, 2024
1 parent 9f7787d commit 5d54831
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Kinode OS is a decentralized operating system, peer-to-peer app framework, and n
It is also a *sovereign cloud computer*, in that Kinode can be deployed anywhere and act as a server controlled by anyone.
Ultimately, Kinode facilitates the writing and distribution of software that runs on privately-held, personal server nodes or node clusters.

> A quote
Kinode eliminates boilerplate and reduces the complexity of p2p software development by providing four basic and necessary primitives:

Primitive | Description
Expand Down
28 changes: 20 additions & 8 deletions theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ a > .hljs {
display: flex;
flex-wrap: wrap;
background-color: transparent;
place-content: center;
place-items: center;
}
#menu-bar.sticky,
Expand Down Expand Up @@ -69,12 +68,6 @@ a > .hljs {
#menu-bar .icon-button {
font-size: 14px;
}
@media only screen and (max-width: 420px) {
#menu-bar i, #menu-bar .icon-button {
padding: 0 5px;
}
}

.icon-button {
border: none;
background: none;
Expand Down Expand Up @@ -600,7 +593,7 @@ ul#searchresults span.teaser em {
}

@media (-moz-touch-enabled: 1), (pointer: coarse) {
.chapter li a { padding: 5px 0; }
/* .chapter li a { padding: 5px 0; } */
.spacer { margin: 10px 0; }
}

Expand Down Expand Up @@ -656,3 +649,22 @@ ul#searchresults span.teaser em {
margin-inline-start: -14px;
width: 14px;
}

@media only screen and (max-width: 420px) {
.secondary-title {
display: none;
}

#menu-bar i {
padding: 0 8px;
}

.menu-title {
font-size: 0.75em;
margin-right: 8px;
}

h1 {
font-size: 3em;
}
}
6 changes: 6 additions & 0 deletions theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,9 @@
--search-mark-bg: #355c7d;
}
}

@media only screen and (max-width: 600px) {
html {
--sidebar-width: 50vw !important;
}
}
2 changes: 1 addition & 1 deletion theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</label>
</div>

<span>KINODE BOOK</span>
<span class="secondary-title">KINODE BOOK</span>

<h1 class="menu-title">{{ book_title }}</h1>

Expand Down

0 comments on commit 5d54831

Please sign in to comment.