Skip to content

Commit

Permalink
📒 docs(columns): Started working on column docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiderpig86 committed Sep 19, 2020
1 parent 910b92e commit d50043d
Show file tree
Hide file tree
Showing 8 changed files with 398 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Place your Cirrus workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Create CodeBlock": {
"scope": "javascriptreact ,typescriptreact ",
"prefix": "cb",
"body": [
"<CodeBlock code={``} language='htmlbars' />"
],
}
}
3 changes: 3 additions & 0 deletions cirrus-docs/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
import { GridGapPage, GridSpanPage, GridTemplatesPage } from './pages/grid';

import './App.scss';
import { ColumnsPage } from './pages/layout';

function App() {
library.add(fas);
Expand Down Expand Up @@ -101,6 +102,8 @@ function App() {
<DefaultLayoutRoute path="/grid/span" component={GridSpanPage} />
<DefaultLayoutRoute path="/grid/gap" component={GridGapPage} />

<DefaultLayoutRoute path="/layout/columns" component={ColumnsPage} />

<BlankLayoutRoute component={_404} />
</Switch>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion cirrus-docs/src/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export const sidebarConfig: SidebarConfig[] = [
fontWeight: 'semibold',
glyph: null,
text: 'Columns',
url: '#'
url: '/layout/columns'
},
{
fontWeight: 'semibold',
Expand Down
19 changes: 19 additions & 0 deletions cirrus-docs/src/pages/layout/columns/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#grids .col > div,
#grids [class^='col-'] > div,
#grids [class*=' col-'] > div,
#grids .col > div,
#grids [class^='w-'] > div,
#grids [class*=' w-'] > div,
#grids [class^='h-'] > div,
#grids [class*=' h-'] > div {
background: #eee;
text-align: center;
border-radius: 5px;
font-size: 0.7rem;
text-transform: uppercase;
min-height: 30px !important;
line-height: 30px;
margin-bottom: 0.75rem;
font-weight: bold;
letter-spacing: 0.1rem;
}
339 changes: 339 additions & 0 deletions cirrus-docs/src/pages/layout/columns/index.tsx

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions cirrus-docs/src/pages/layout/columns/toc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { TableOfContentsEntry } from '../../../layouts/components/toc';

export const toc: TableOfContentsEntry[] = [
{
name: 'Glyphs',
anchor: '#glyphs',
children: [],
},
];
1 change: 1 addition & 0 deletions cirrus-docs/src/pages/layout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ColumnsPage } from './columns';
2 changes: 1 addition & 1 deletion cirrus-docs/src/static/css/cirrus.min.css

Large diffs are not rendered by default.

0 comments on commit d50043d

Please sign in to comment.