Move template assets in templates/assets folder

This commit is contained in:
Giuseppe Criscione 2018-06-19 15:40:18 +02:00
parent b180c65a7b
commit cc24dd4a7c
5 changed files with 38 additions and 208 deletions

View File

@ -5,6 +5,8 @@ AddDefaultCharset UTF-8
RewriteEngine on
## Prevent direct access to Formwork folders
## but allow access to template assets
RewriteRule ^templates/assets/.* - [L]
RewriteRule ^(cache|config|formwork|templates|vendor)/.* index.php [L]
RewriteRule ^(.*)\.(yml|md)$ - [R=404,L]

File diff suppressed because one or more lines are too long

View File

@ -1,193 +1,3 @@
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
html {
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; }
body {
margin: 0; }
article,
aside,
footer,
header,
nav,
section {
display: block; }
h1 {
font-size: 2em;
margin: 0.67em 0; }
figcaption,
figure,
main {
display: block; }
figure {
margin: 1em 40px; }
hr {
box-sizing: content-box;
height: 0;
overflow: visible; }
pre {
font-family: monospace, monospace;
font-size: 1em; }
a {
background-color: transparent;
-webkit-text-decoration-skip: objects; }
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted; }
b,
strong {
font-weight: inherit; }
b,
strong {
font-weight: bolder; }
code,
kbd,
samp {
font-family: monospace, monospace;
font-size: 1em; }
dfn {
font-style: italic; }
mark {
background-color: #ff0;
color: #000; }
small {
font-size: 80%; }
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline; }
sub {
bottom: -0.25em; }
sup {
top: -0.5em; }
audio,
video {
display: inline-block; }
audio:not([controls]) {
display: none;
height: 0; }
img {
border-style: none; }
svg:not(:root) {
overflow: hidden; }
button,
input,
optgroup,
select,
textarea {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0; }
button,
input {
overflow: visible; }
button,
select {
text-transform: none; }
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button; }
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0; }
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText; }
fieldset {
padding: 0.35em 0.75em 0.625em; }
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal; }
progress {
display: inline-block;
vertical-align: baseline; }
textarea {
overflow: auto; }
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0; }
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto; }
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px; }
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none; }
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit; }
details,
menu {
display: block; }
summary {
display: list-item; }
canvas {
display: inline-block; }
template {
display: none; }
[hidden] {
display: none; }
html {
font-size: 16px; }
@media (min-width: 768px) {
@ -216,6 +26,9 @@ a:hover {
img {
max-width: 100%; }
hr {
border: 1px solid #e4e4e4; }
.header {
background-color: #3498da;
color: #ffffff;
@ -260,14 +73,7 @@ img {
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
line-height: 1.2;
margin-top: 0;
margin-bottom: 0.5rem;
/*& + & {
// Avoids margin collapsing between subsequent headings
margin-top: $headings-margin-top + $headings-margin-bottom;
}*/ }
h1, .h1, h2, .h2, h3, .h3 {
letter-spacing: -0.027rem; }
margin-bottom: 0.5rem; }
h1, .h1 {
font-size: 2.369rem; }
@ -293,21 +99,23 @@ p {
margin-bottom: 0.5rem; }
blockquote {
margin-top: 1rem;
margin-top: 0.5rem;
margin-bottom: 1rem;
margin-left: 0;
margin-right: 0;
max-width: 30rem;
font-style: italic; }
.blockquote-source {
margin-top: 0.5rem;
margin-top: -0.5rem;
margin-bottom: 0.5rem;
margin-left: 0;
margin-right: 0;
font-size: 0.875rem;
font-style: normal;
color: #7e7e7e; }
blockquote + .blockquote-source {
margin-top: -0.5rem; }
margin-top: -1.5rem; }
.blockquote-source::before {
content: "\2014"; }
@ -320,7 +128,7 @@ blockquote {
ol, ul {
margin-top: 0;
margin-bottom: 0.5rem;
margin-bottom: 1rem;
margin-left: 1.25rem;
padding: 0;
list-style-position: outside; }
@ -349,6 +157,30 @@ pre > code {
font-size: inherit;
color: inherit; }
table {
table-layout: auto;
width: 100%;
border-collapse: collapse;
overflow-x: auto;
margin-bottom: 1.5rem; }
table.hoverable tr:hover {
background-color: #f8f8f8; }
table.hoverable thead tr:hover {
background-color: transparent; }
thead {
border-bottom: 2px solid #e4e4e4; }
td,
th {
text-align: left;
padding: 0.5rem; }
tr {
border-bottom: 1px solid #e4e4e4; }
.container, .container-full {
margin: 0 auto;
padding-left: 15px;
@ -459,8 +291,6 @@ pre > code {
margin-top: 0;
margin-bottom: 0; } }
body {
font-family: sans-serif;
transition: font .3s;
-webkit-font-smoothing: antialiased; }
img {
@ -509,5 +339,3 @@ footer {
.pagination-next {
float: right; }
/*# sourceMappingURL=substrat-mini.css.map */

1
templates/assets/css/style.min.css vendored Normal file
View File

@ -0,0 +1 @@
html{font-size:16px}@media (min-width: 768px){html{font-size:18px}}body{margin:0;box-sizing:border-box;font-size:1rem;font-family:sans-serif;line-height:1.5}*{box-sizing:inherit;line-height:inherit}a{text-decoration:none;color:#3498da;outline:none}a:hover{color:#1a608e}img{max-width:100%}hr{border:1px solid #e4e4e4}.header{background-color:#3498da;color:#ffffff;margin-bottom:2rem;padding-top:3rem;padding-bottom:3rem}.footer{background-color:#f0f0f0;margin-top:2rem;padding-top:2rem;padding-bottom:2rem}.disabled,.disabled:hover,.disabled:focus{color:#979797;cursor:default}@media (min-width: 568px){.hide-from-xs{display:none}}@media (max-width: 568px){.show-from-xs{display:none}}@media (min-width: 768px){.hide-from-s{display:none}}@media (max-width: 768px){.show-from-s{display:none}}@media (min-width: 992px){.hide-from-m{display:none}}@media (max-width: 992px){.show-from-m{display:none}}@media (min-width: 1200px){.hide-from-l{display:none}}@media (max-width: 1200px){.show-from-l{display:none}}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{line-height:1.2;margin-top:0;margin-bottom:.5rem}h1,.h1{font-size:2.369rem}h2,.h2{font-size:2.104rem}h3,.h3{font-size:1.777rem}h4,.h4{font-size:1.579rem}h5,.h5{font-size:1.184rem}h6,.h6{font-size:1rem}p{line-height:1.5;margin-top:0;margin-bottom:.5rem}blockquote{margin-top:.5rem;margin-bottom:1rem;margin-left:0;margin-right:0;max-width:30rem;font-style:italic}.blockquote-source{margin-top:-.5rem;margin-bottom:0.5rem;margin-left:0;margin-right:0;font-size:.875rem;font-style:normal;color:#7e7e7e}blockquote+.blockquote-source{margin-top:-1.5rem}.blockquote-source::before{content:"\2014"}.relevant{font-size:1.125rem}.small{font-size:.875rem}ol,ul{margin-top:0;margin-bottom:1rem;margin-left:1.25rem;padding:0;list-style-position:outside}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}code,kbd,pre{background-color:#f0f0f0;border-radius:3px}code,kbd{font-size:.875em;padding:0 .25rem}code{color:#227db9}pre{padding:1rem;font-size:.875rem;overflow-x:scroll}pre>code{padding:0;font-size:inherit;color:inherit}table{table-layout:auto;width:100%;border-collapse:collapse;overflow-x:auto;margin-bottom:1.5rem}table.hoverable tr:hover{background-color:#f8f8f8}table.hoverable thead tr:hover{background-color:transparent}thead{border-bottom:2px solid #e4e4e4}td,th{text-align:left;padding:.5rem}tr{border-bottom:1px solid #e4e4e4}.container,.container-full{margin:0 auto;padding-left:15px;padding-right:15px;clear:both}.container,.container-full{*zoom:1}.container:before,.container:after,.container-full:before,.container-full:after{content:" ";display:table}.container:after,.container-full:after{clear:both}.container{max-width:1200px}.menu{overflow:auto}.menu button,.menu .button{margin-top:.559375rem;margin-bottom:.559375rem;padding:.375rem .5rem}.menu a{color:inherit}.menu-header,.menu-item{padding:.75rem 1rem;-webkit-user-select:none;user-select:none}.menu-header{display:inline-block;margin-left:-15px;font-weight:bold;font-size:1.2rem;height:3rem;padding:.65rem 1rem}.menu-header img{height:100%}.menu-item{display:block;position:relative;font-size:1rem}.menu-item:hover{background-color:#f0f0f0}.menu-item.active::after,.menu-item::after{content:" ";display:none;position:absolute;width:90%;height:3px;background-color:#cacaca;bottom:0.375rem;left:5%}.menu-list{margin:0;margin-left:-15px;margin-right:-15px;overflow:auto;list-style-type:none}.menu-list>li{display:block;overflow:auto}.menu-right{float:none}.menu-toggle{display:block;float:right;padding:.75rem 1rem}.menu-collapse{display:none;float:none;clear:both}.menu-expanded{display:block}@media (min-width: 568px){.menu-header,.menu-item,.menu-list>li{float:left}.menu-list{margin:0}.menu-item:hover,.menu-item.active{background-color:transparent}.menu-item:hover::after,.menu-item.active::after{display:block}.menu-right{float:right}.menu-toggle{display:none}.menu-collapse{display:block;clear:none;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0}}body{-webkit-font-smoothing:antialiased}img{max-width:100%}main{margin:2rem 0}article{margin-bottom:2rem}p{line-height:1.618}.cover-image{min-height:60vh;background-size:cover;background-position:center center;margin-bottom:2rem;display:table;width:100%}.cover-header{color:#fff;display:table-cell;text-align:center;vertical-align:middle}.cover-header h1{font-size:4.209rem}.article-title a{color:inherit}footer{margin-top:1rem;padding:2rem 0}.pagination{max-width:38rem;margin:.5rem auto;overflow:auto}.pagination-previous{float:left}.pagination-next{float:right}

View File

@ -4,7 +4,7 @@
<title><?php if (isset($page)): ?><?= $page->title() ?> | <?php endif; ?><?= $site->title() ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="<?= $site->uri('/assets/css/style.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= $site->uri('/templates/assets/css/style.min.css') ?>">
</head>
<body>
<nav class="menu">