Skip to content

Instantly share code, notes, and snippets.

@infologie
Last active June 25, 2021 17:42
Show Gist options
  • Save infologie/f5ad15eca68ae23ad465307d475043c7 to your computer and use it in GitHub Desktop.
Save infologie/f5ad15eca68ae23ad465307d475043c7 to your computer and use it in GitHub Desktop.
CSS personnalisée pour Cosma
/* Cosma custom.css - Arthur Perret */
/* Structure reprise de Cosma styles.css */
/** Global **/
:root {
--condensed: "Avenir Next Condensed", sans-serif;
--mono: "IBM Plex Mono", monospace;
--offblack: rgb(51, 51, 51);
--offgray: rgb(249, 247, 244);
}
/** Page **/
body {
font-family: var(--mono);
font-size: 1.2rem;
}
/** Elements **/
.btn {
background-color: white;
}
details > summary {
font-family: var(--mono);
text-transform: uppercase;
font-size: 1.3rem;
margin: 1rem 0 0.5rem 0;
}
details {
padding: 0.5rem 0 1rem 0;
}
details:not(:first-of-type) {
border-top: none;
}
.badge {
border: 1px solid var(--gray);
}
label {
font-family: var(--mono);
font-size: 1.2rem;
}
.list-content-container .menu-controls-list {
margin-top: 1.3rem;
}
.menu-tags-container,
.menu-index-list {
max-height: 50vh;
overflow: scroll;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
}
.menu-tags-container button {
font-size: 1.2rem;
font-family: var(--condensed);
margin: .4rem .2rem 0 .2rem;
color: black;
}
.menu-controls-container p:first-child {
font-weight: bold;
}
/** Menu (left side board) **/
aside.menu {
width: 35rem;
background-color: var(--offgray);
color: var(--offblack);
}
aside.menu footer {
text-transform: uppercase;
font-size: 1.1rem;
margin-top: 1.8rem;
background-color: inherit;
}
.title {
text-transform: uppercase;
font-size: 1.8rem;
}
/** Record container (right side board) **/
main.record-container {
background-color: var(--offgray);
color: var(--offblack);
}
h1.record-title {
font-family: var(--sans);
}
.record header div {
font-family: var(--mono);
font-size: 1.4rem;
}
.record header div span:first-of-type {
font-family: var(--mono);
font-size: 1.3rem;
font-weight:bold;
text-transform: uppercase;
}
.record main h1, h2, h3, h4, h5, h6 {
margin: 3rem 0 0 0;
}
.record main h1 {
font-size: 1.8rem;
}
.record main h2 {
font-size: 1.6rem;
}
.record main h3 {
font-size: 1.4rem;
}
.record header {
border-bottom: 1px solid var(--gray);
}
.record footer {
border-top: 1px solid var(--gray);
}
.record footer li .record-links-context {
font-family: var(--sans);
text-indent: 0;
font-size: 1.4rem;
}
.record div.csl-entry {
width: inherit;
text-indent: -2rem;
padding-left: 2rem;
margin: 0.75rem 0 0 0;
font-size: 1.4rem;
line-height: 1.3;
}
.record div.csl-entry a {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
}
/** Graph **/
.graph-controls {
bottom: 20px;
left: 80px;
}
.graph-controls-focus {
display: flex;
justify-content: flex-start;
flex-flow: row wrap;
}
.graph-controls-focus label {
margin: .8rem 0 0.8rem 0.4rem;
}
/** Credits **/
/** Help **/
/** Bibliography references **/
#citation-references code {
max-height: 75vh;
overflow: scroll;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment