1
0
mirror of https://github.com/picocms/pico-theme.git synced 2025-08-23 00:33:01 +02:00

16 Commits

Author SHA1 Message Date
Daniel Rudolf
6c0491a918 Version 2.1.0-beta.1
```
* [Changed] Add basic `pico-theme.yml` to use API v3, enable Twig's autoescape
            feature (no changes necessary) and register `Social` meta header
* [Changed] Use Pico's `pages` Twig function to create the main navigation
* [Changed] Improve formatting of definition lists and inline code snippets
* [Changed] Improve JSDoc class docs
```
2019-11-04 00:43:37 +01:00
Daniel Rudolf
abae4acd5b Update CHANGELOG.md 2019-11-04 00:42:52 +01:00
Daniel Rudolf
0a9321047d Slightly decrease font size of inline code
`line-height: 1.9824;` is the result of `calc(1em * 1.4 + 2 * 0.1em + 2 * 1px / 16px / 0.85 + 2 * 0.1em / 0.85)` (`1em * 1.4` equals the line height for code (= `1.4` times), plus `0.1em` vertical padding on top and bottom, plus `1px` border width on top and bottom (`1rem` equals `16px` and considering the smaller font size (= `0.85rem`)), plus `0.1em` vertical margin on top and bottom (also considering the smaller font size).
2019-11-04 00:13:47 +01:00
Daniel Rudolf
ac5e65b7a4 Update CHANGELOG.md 2019-11-03 20:57:11 +01:00
Daniel Rudolf
83a9b6ad59 Remove raw Twig filter when outputting Pico's content variable
See e0415c8c1d for more details
2019-10-26 14:03:38 +02:00
Daniel Rudolf
8df986b02e Update JSDoc class docs 2019-10-26 11:30:05 +02:00
Daniel Rudolf
fc941aab0c Fix inline code line height
`line-height: 1.9778;` is the result of `calc(1rem * 1.6 / 0.9 + 2 * 0.1em)` (`1rem * 1.6 / 0.9` equals the default line height (= `1.6` times) adjusted by the smaller font size (= `0.9rem`), plus `0.1em` vertical space on top and bottom)
2019-10-12 19:51:34 +02:00
Daniel Rudolf
777f852a06 Add bottom margin to definition descriptions 2019-10-12 19:46:38 +02:00
Daniel Rudolf
138a88e05f Use Twig pages function for navigation
See 681ad27158 for more info
2019-10-01 13:32:20 +02:00
Daniel Rudolf
470a734034 🎉 Add pico-theme.yml and update to API version 3
See b27b4f388a for more info
2019-10-01 13:31:34 +02:00
Daniel Rudolf
e66eab238e phpDoc class docs: Remove superflous @return void 2019-09-11 11:29:15 +02:00
Daniel Rudolf
23a907d23b composer.json: Add 2.1.x-dev alias for pico-2.1 branch 2019-07-14 15:37:20 +02:00
Daniel Rudolf
b33fe258b0 CSS: Fix border value order 2019-03-11 23:06:01 +01:00
Daniel Rudolf
db2e386a57 Version 2.0.5-beta.1
```
* [New] Add `2.0.x-dev` alias for master branch to `composer.json`
```
2019-01-03 01:14:55 +01:00
Daniel Rudolf
316a531f64 Update CHANGELOG.md 2019-01-03 01:11:49 +01:00
Daniel Rudolf
7c1d14dda8 composer.json: Add 2.0.x-dev alias for master branch 2019-01-03 01:03:52 +01:00
7 changed files with 57 additions and 27 deletions

View File

@@ -8,6 +8,24 @@ Pico Default Theme Changelog
refer to both the UPGRADE and NEWS sections of the docs for more
details.
### Version 2.1.0-beta.1
Released: 2019-11-03
```
* [Changed] Add basic `pico-theme.yml` to use API v3, enable Twig's autoescape
feature (no changes necessary) and register `Social` meta header
* [Changed] Use Pico's `pages` Twig function to create the main navigation
* [Changed] Improve formatting of definition lists and inline code snippets
* [Changed] Improve JSDoc class docs
```
### Version 2.0.5-beta.1
Released: 2019-01-03
```
* [New] Add `2.0.x-dev` alias for master branch to `composer.json`
```
### Version 2.0.4
Released: 2018-12-17

View File

@@ -24,6 +24,10 @@
"picocms/pico": "self.version"
},
"extra": {
"installer-name": "default"
"installer-name": "default",
"branch-alias": {
"dev-master": "2.0.x-dev",
"dev-pico-2.1": "2.1.x-dev"
}
}
}

View File

@@ -11,7 +11,7 @@
* @author Daniel Rudolf
* @link http://picocms.org
* @license http://opensource.org/licenses/MIT The MIT License
* @version 2.0
* @version 2.1
*/
* {
@@ -185,7 +185,7 @@ p, td, th, li, dd {
word-wrap: break-word;
}
p, hr, table, .table-responsive, ol, ul, dl, pre, blockquote, fieldset {
p, hr, table, .table-responsive, ol, ul, dl, dd, pre, blockquote, fieldset {
margin-bottom: 1em;
}
@@ -234,7 +234,7 @@ th {
color: #333;
}
td, th { border: solid 1px #ccc; }
td, th { border: 1px solid #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th { border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) { border-right: 0 none; }
@@ -269,7 +269,8 @@ code {
border-radius: 0.3em;
background: #f5f5f5;
font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
font-size: 0.9rem;
font-size: 0.85rem;
line-height: 1.9824;
}
pre {
@@ -277,7 +278,6 @@ pre {
border: 1px solid #ccc;
border-radius: 0.3em;
background: #f5f5f5;
line-height: 1.4;
}
pre code {
display: block;
@@ -286,6 +286,7 @@ pre code {
border: 0 none;
background: transparent;
overflow-x: auto;
line-height: 1.4;
}
/*** BLOCKQUOTE ***/
@@ -302,7 +303,7 @@ blockquote {
label, fieldset legend { font-weight: bold; }
input:not([type="checkbox"]):not([type="radio"]), button, select, textarea, fieldset, fieldset legend {
border: solid 1px #ccc;
border: 1px solid #ccc;
border-radius: 0.3em;
background: #fff;
-webkit-transition: none .2s ease-in;

View File

@@ -32,13 +32,10 @@
</h1>
<div id="nav" role="region" tabindex="-1">
<ul>
{% for page in pages if page.title and not page.hidden %}
{% set pageDepth = page.id|split('/')|length %}
{% if (pageDepth == 2) and (page.id ends with "/index") or (pageDepth == 1) %}
<li{% if page.id == current_page.id %} class="active"{% endif %}>
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endif %}
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %}
<li{% if page.id == current_page.id %} class="active"{% endif %}>
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
</div>

View File

@@ -6,7 +6,7 @@
* @author Daniel Rudolf
* @link http://picocms.org
* @license http://opensource.org/licenses/MIT The MIT License
* @version 2.0
* @version 2.1
*/
function main()

View File

@@ -6,7 +6,7 @@
* @author Daniel Rudolf
* @link http://picocms.org
* @license http://opensource.org/licenses/MIT The MIT License
* @version 2.0
* @version 2.1
*/
utils = {};
@@ -14,7 +14,7 @@ utils = {};
/**
* Checks whether the client's browser is able to slide elements or not
*
* @return boolean TRUE when the browser supports sliding, FALSE otherwise
* @return {bool} TRUE when the browser supports sliding, FALSE otherwise
*/
utils.canSlide = function ()
{
@@ -24,11 +24,10 @@ utils.canSlide = function ()
/**
* Slides a element up (i.e. hide a element by changing its height to 0px)
*
* @param HTMLElement element the element to slide up
* @param function finishCallback function to call when the animation has
* @param {HTMLElement} element the element to slide up
* @param {function} finishCallback function to call when the animation has
* been finished (i.e. the element is hidden)
* @param function startCallback function to call when the animation starts
* @return void
* @param {function} startCallback function to call when the animation starts
*/
utils.slideUp = function (element, finishCallback, startCallback)
{
@@ -72,11 +71,10 @@ utils.slideUp = function (element, finishCallback, startCallback)
/**
* Slides a element down (i.e. show a hidden element)
*
* @param HTMLElement element the element to slide down
* @param function finishCallback function to call when the animation has
* @param {HTMLElement} element the element to slide down
* @param {function} finishCallback function to call when the animation has
* been finished (i.e. the element is visible)
* @param function startCallback function to call when the animation starts
* @return void
* @param {function} startCallback function to call when the animation starts
*/
utils.slideDown = function (element, finishCallback, startCallback)
{
@@ -126,8 +124,9 @@ utils.slideDown = function (element, finishCallback, startCallback)
/**
* Checks whether a element is visible or not
*
* @param HTMLElement element the element to check
* @return boolean TRUE when the element is visible, FALSE otherwise
* @param {HTMLElement} element the element to check
*
* @return {bool} TRUE when the element is visible, FALSE otherwise
*/
utils.isElementVisible = function (element)
{

11
pico-theme.yml Normal file
View File

@@ -0,0 +1,11 @@
api_version: 3
meta:
Social: social
twig_config:
autoescape: html
strict_variables: false
charset: utf-8
widescreen: false # Use more horicontal space (i.e. make the site container wider)