Skip to content

Commit

Permalink
Great renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
fadado committed Sep 22, 2016
1 parent 60151dc commit 73a6508
Showing 11 changed files with 90 additions and 90 deletions.
16 changes: 8 additions & 8 deletions docs/layouts/default.html
Original file line number Diff line number Diff line change
@@ -7,31 +7,31 @@
<%include "meta.html">&
</head>

<body class="Container">
<div class="#Header">
<span class="Logo"><a href="index.html">{{.site.logo}}</a><span class="Version">v<%include ../VERSION></span></span>
<ol class="MenuBar">
<body class="#container">
<div class="#header">
<span class="logo"><a href="index.html">{{.site.logo}}</a><span class="version">v<%include ../VERSION></span></span>
<ol class="menu-bar">
{% .site.menu[] %}
<li class='MenuBar__Item {{if .path==$M.page._path then "_active" else "" end}}'>
<li class='menu-bar__item {{if .path==$M.page._path then "--active" else "" end}}'>
<a href="{{.URL}}">{{.name}}</a>
</li>
{% end %}
</ol>
</div>

<div class="#Body">
<div class="#body">
<%ifndef BODY_TITLE>&
<h1>{{.snippets.title}}</h1>
<%else><%call BODY_TITLE><%endif>&

<%ifndef BODY_BLOCK>&
<div class="Content">
<div class="#content">
{{.page._content}}
</div>
<%else><%call BODY_BLOCK><%endif>&
</div>

<div class="#Footer">
<div class="#footer">
<%include "footer.html">
</div>

12 changes: 6 additions & 6 deletions docs/layouts/footer.html
Original file line number Diff line number Diff line change
@@ -2,17 +2,17 @@
<#
# License, etc.
#>
<div class="License">
<div class="license">
{{.snippets.footer}}
</div>
<#
# Links to GitHub
#>
<ol class="Repository">
<li class="Repository__Section"><a href="https://github.com/fadado/jqt">code</a></li>
<li class="Repository__Section"><a href="https://github.com/fadado/jqt/issues">issues</a></li>
<li class="Repository__Section"><a href="https://github.com/fadado/jqt/wiki">wiki</a></li>
<li class="Repository__Section"><a href="https://github.com/fadado/jqt/releases">releases</a></li>
<ol class="repository">
<li class="repository__section"><a href="https://github.com/fadado/jqt">code</a></li>
<li class="repository__section"><a href="https://github.com/fadado/jqt/issues">issues</a></li>
<li class="repository__section"><a href="https://github.com/fadado/jqt/wiki">wiki</a></li>
<li class="repository__section"><a href="https://github.com/fadado/jqt/releases">releases</a></li>
</ol>
<#
vim:ts=2:sw=2:ai:et:fileencoding=utf8:syntax=html
6 changes: 3 additions & 3 deletions docs/layouts/page.html
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@
#>
<%define BODY_BLOCK
<# Table of contents #>
<div class="#Panel _side-right Toc">
<p class="Toc__Title">{{.snippets."toc-title"}}</p>
<div class="#panel --side-right toc">
<p class="toc__title">{{.snippets."toc-title"}}</p>
{{.page._toc}}
</div>
<# Document body #>
<div class="Content">
<div class="#content">
{{.page._content}}
</div>
>&
48 changes: 24 additions & 24 deletions docs/styles/blocks.css
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
** Header
***********************************************************************/

&BEM{#Header} {
&BEM{#header} {
border-bottom: &HorizontalRule;
margin-bottom: 1.5rem;
}
@@ -17,17 +17,17 @@
** Body
***********************************************************************/

&BEM{#Panel} {
&BEM{#panel} {
border: 0.3rem solid &ColorQuaternary;
}

&BEM{#Panel}{}{side-right} {
&BEM{#panel}{}{side-right} {
float: right;
margin: 0 0 0 1rem;
}

/*
&BEM{#Panel}{}{side-left} {
&BEM{#panel}{}{side-left} {
float: left;
margin: 0 1rem 0 0;
}
@@ -37,75 +37,75 @@
** Footer
***********************************************************************/

&BEM{#Footer} {
&BEM{#footer} {
border-top: &HorizontalRule;
}

////////////////////////////////////////////////////////////////////////
// Logo
////////////////////////////////////////////////////////////////////////

&BEM{Logo} {
&BEM{logo} {
font-size: 2.6rem;
}

////////////////////////////////////////////////////////////////////////
// Version
////////////////////////////////////////////////////////////////////////

&BEM{Version} {
&BEM{version} {
font-size: 1.2rem;
font-weight: bold;
}

////////////////////////////////////////////////////////////////////////
// MenuBar
// Menu Bar
////////////////////////////////////////////////////////////////////////

&BEM{MenuBar} {
&BEM{menu-bar} {
display: inline;
padding: 0;
font-variant: small-caps;
text-transform: lowercase;
list-style: none;
}

&BEM{MenuBar}{Item} {
&BEM{menu-bar}{item} {
display: inline;
font-size: 120%;
font-weight: bold;
}

&BEM{MenuBar}{Item}:first-child {
&BEM{menu-bar}{item}:first-child {
margin-left: 1rem;
}

&BEM{MenuBar}{Item}:not(:last-child) {
&BEM{menu-bar}{item}:not(:last-child) {
margin-right: 2rem;
}

&BEM{MenuBar}{Item}{active}{> a} {
&BEM{menu-bar}{item}{active}{> a} {
text-decoration: underline;
}

////////////////////////////////////////////////////////////////////////
// Toc
////////////////////////////////////////////////////////////////////////

&BEM{Toc} {
&BEM{toc} {
width: 16em;
padding: 0 1em;
text-align: center;
font-size: 80%;
}

&BEM{Toc}{Title} {
&BEM{toc}{title} {
margin-bottom: 0.5em;
border-bottom: 0.1rem solid &ColorQuaternary;
font-weight: bold;
}

&BEM{Toc} ul {
&BEM{toc} ul {
margin-top: 0;
margin-bottom: 0;
list-style-type: square;
@@ -114,48 +114,48 @@
line-height: 1.4;
}

&BEM{Toc} li {
&BEM{toc} li {
margin: 0;
}

////////////////////////////////////////////////////////////////////////
// License
////////////////////////////////////////////////////////////////////////

&BEM{License} {
&BEM{license} {
text-align: center;
}

&BEM{License} > p {
&BEM{license} > p {
margin-bottom: 0;
}

////////////////////////////////////////////////////////////////////////
// Repository
////////////////////////////////////////////////////////////////////////

&BEM{Repository} {
&BEM{repository} {
text-align: center;
list-style: none;
}

&BEM{Repository}{Section} {
&BEM{repository}{section} {
display: inline;
font-variant: small-caps;
font-weight: bold;
}

&BEM{Repository}{Section}:first-child:before {
&BEM{repository}{section}:first-child:before {
content: "❲ ";
color: &ColorSecondary;
}

&BEM{Repository}{Section}:not(last-child):after {
&BEM{repository}{section}:not(last-child):after {
content: " ❘ ";
color: &ColorSecondary;
}

&BEM{Repository}{Section}:last-child:after {
&BEM{repository}{section}:last-child:after {
content: " ❳";
color: &ColorSecondary;
}
10 changes: 5 additions & 5 deletions docs/styles/jqt.css
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
* Content
**********************************************************************/

body.Container {
body.\#container {
max-width: 800px;
}

@@ -37,7 +37,7 @@ body {
}

h2:target::after,
h3:target::after,
h2:target::after,
h4:target::after {
content: " §";
color: &ColorQuaternary;
@@ -81,19 +81,19 @@ pre > code {

// TODO: posar id en <html...

.Content > blockquote:first-child {
.\#content > blockquote:first-child {
float: right;
margin: 0 0 0 auto;
padding-top: 0;
padding-bottom: 0;
max-width: 20em;
font-family: "Liberation Serif", "Times New Roman", Times, serif;
}
.Content > blockquote:first-child > p {
.\#content > blockquote:first-child > p {
margin: 0;
padding: 0;
}
.Content > blockquote:first-child > p + p {
.\#content > blockquote:first-child > p + p {
text-align: right;
}

2 changes: 1 addition & 1 deletion docs/styles/milligram.css
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
&define{ColorInitial}{&White}
&define{ColorPrimary}{&DarkCyan}
&define{ColorSecondary}{&Black}
&define{ColorTertiary}{&LightGrey}
&define{ColorTertiary}{&Lavender}
&define{ColorQuaternary}{&LightGrey}

&define{Scale}{1}
22 changes: 11 additions & 11 deletions docs/styles/new/button.css
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
// Macros

&define{_buttons}{
.Button&1,
.button&1,
button&1,
input[type='button']&1,
input[type='reset']&1,
@@ -53,49 +53,49 @@
outline: 0;
}

&_buttons{.Button-disabled},
&_buttons{.button--disabled},
&_buttons{[disabled]} {
cursor: default;
opacity: .5;
}

&_buttons_active{.Button-disabled},
&_buttons_active{.button--disabled},
&_buttons_active{[disabled]} {
background-color: &ColorPrimary;
border-color: &ColorPrimary;
}

&_buttons{.Button-outline} {
&_buttons{.button--outline} {
background-color: transparent;
color: &ColorPrimary;
}

&_buttons_active{.Button-outline} {
&_buttons_active{.button--outline} {
background-color: transparent;
border-color: &ColorSecondary;
color: &ColorSecondary;
}

&_buttons_active{.Button-outline.Button-disabled},
&_buttons_active{.Button-outline[disabled]} {
&_buttons_active{.button--outline.button--disabled},
&_buttons_active{.button--outline[disabled]} {
color: &ColorPrimary;
border-color: inherit;
}

&_buttons{.Button-clear} {
&_buttons{.button--clear} {
color: &ColorPrimary;
background-color: transparent;
border-color: transparent;
}

&_buttons_active{.Button-clear} {
&_buttons_active{.button--clear} {
color: &ColorSecondary;
background-color: transparent;
border-color: transparent;
}

&_buttons_active{.Button-clear.Button-disabled},
&_buttons_active{.Button-clear[disabled]} {
&_buttons_active{.button--clear.button--disabled},
&_buttons_active{.button--clear[disabled]} {
color: &ColorPrimary;
}

2 changes: 1 addition & 1 deletion docs/styles/new/default.css
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
&include{new/colornames.css}

&define{Esep}{__}
&define{Msep}{_}
&define{Msep}{-\-}

&define{B}{.&if{&1 =~ [A-Za-z_-]*}&1&else\&1&endif}
&define{E}{&ifneq{&1}{}&Esep&1&endif}
2 changes: 1 addition & 1 deletion docs/styles/new/form.css
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ input[type='radio'] {
display: inline;
}

&BEM{Label}{}{inline} {
&BEM{label}{}{inline} {
display: inline-block;
font-weight: normal;
margin-left: .5rem;
Loading

0 comments on commit 73a6508

Please sign in to comment.