Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(Bootstrap theme): Do not use mixins from shared; docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Feb 19, 2020
1 parent f30b904 commit 8347907
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
9 changes: 7 additions & 2 deletions src/themes/bootstrap/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Bootstrap

A theme that pulls itself up using Twitter's [Bootstrap](https://getbootstrap.com/) toolkit. Designed as an illustration of a theme built using existing CSS.
A theme that pulls itself up using Twitter's [Bootstrap](https://getbootstrap.com/) toolkit.

Being an illustrative theme, it feature gratuitous use of Bootstrap components. See [`styles.css`](styles.css) and [`index.ts`](index.ts) for comments.
Designed as an illustration of a theme built entirely using an existing CSS stylesheet. Being an illustrative theme, it:

- includes gratuitous use of Bootstrap components
- does not use an styles or mixins from the `shared` folder.

For real theme, you probably don't want to do either of these things. See [`styles.css`](styles.css) and [`index.ts`](index.ts) for further comments.
30 changes: 25 additions & 5 deletions src/themes/bootstrap/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* This theme is designed as an illustration of deriving a theme entirely
* from an existing stylesheet. It does not use an styles or mixins from
* the `shared` folder. See README.md for more.
*/

/**
* Import the Bootstrap CSS, from their CDN, pinned to a specific version
*
Expand All @@ -19,21 +25,33 @@
max-width: 70rem;

:--authors {
/* Use a Thema mixin to make authors a comma separated, inline list */
@mixin list-inline ', ';
/* Use Bootstrap's `list-inline` class */
@extend .list-inline;

/* For each author... */
:--author {
/* Separate authors using a comma */
&:after {
content: ', ';
}

&:last-child:after {
content: normal;
}

/* Place a space after each given name */
:--givenName {
&::after {
&:after {
content: '\00a0';
}
}

/* Display affiliations as a space separated list of Use Bootstrap label */
:--affiliations {
@mixin list-inline ' ';
@extend .list-inline;

display: inline-block;
margin: -5px;

:--affiliation {
@extend .label;
Expand All @@ -43,7 +61,9 @@

/* Display emails with an icon */
:--emails {
@mixin list-inline ', ';
@extend .list-inline;

display: inline-block;

:--email {
@extend .glyphicon;
Expand Down

0 comments on commit 8347907

Please sign in to comment.