Skip to content

Commit

Permalink
styles: Add Sphinx-specific typography
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 14, 2024
1 parent f449352 commit 098cd1f
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 15 deletions.
1 change: 1 addition & 0 deletions iati_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[theme]
inherit = basic
stylesheet = iati.css
pygments_style = default
42 changes: 28 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build:watch": "npm run build -- --watch"
},
"devDependencies": {
"iati-design-system": "^0.1.3",
"iati-design-system": "file://../design-system",
"sass": "^1.75.0"
}
}
66 changes: 66 additions & 0 deletions styles/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@use "pkg:iati-design-system" as ds;

.centered {
text-align: center;
}

.right {
text-align: right;
}

.rubric {
font-weight: bold;
font-size: 1.2em;
}

.line-block {
margin: ds.$spacing-m 0;

.line-block {
margin: 0;
padding-left: ds.$spacing-m;
}
}

.headerlink {
color: ds.$color-grey-40;
text-decoration: none;
padding-left: ds.$spacing-m;

&:hover {
color: ds.$color-grey-90;
}
}

.guilabel {
background-color: ds.$color-teal-10;
border: 1px solid ds.$color-teal-70;
font-size: 0.9em;
padding: 0 0.2em;
border-radius: 0.2em;
}

// API Documentation

.sig {
@extend .iati-code-inline;
display: inline-block;
color: ds.$color-grey-60;

.sig-name {
color: ds.$color-grey-90;
font-weight: bold;
}
}

// Code Blocks

span.linenos {
color: ds.$color-grey-50;
margin-right: ds.$spacing-m;
}

.code-block-caption {
text-align: center;
font-style: italic;
}
1 change: 1 addition & 0 deletions styles/main.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@use "pkg:iati-design-system";
@use "typography";

0 comments on commit 098cd1f

Please sign in to comment.