Skip to content

Commit

Permalink
Un po' di modifiche per la v0.1.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
francescozaia committed Jan 28, 2018
1 parent 3a9da10 commit b889334
Show file tree
Hide file tree
Showing 148 changed files with 243 additions and 188 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017, the respective contributors, as shown by the AUTHORS file.
Copyright (c) 2018, the respective contributors, as shown by the AUTHORS file.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand All @@ -8,4 +8,4 @@ Redistribution and use in source and binary forms, with or without modification,

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![GitHub issues](https://img.shields.io/github/issues/italia/bootstrap-italia.svg)](https://github.com/italia/bootstrap-italia/issues)
[![CSS gzip size](http://img.badgesize.io/italia/bootstrap-italia/master/dist/css/bootstrap-italia-0.0.1.min.css?compression=gzip&label=CSS+gzip+size)](https://github.com/italia/bootstrap-italia/tree/master/dist/css/bootstrap-italia-0.0.1.min.css)
[![JS gzip size](http://img.badgesize.io/italia/bootstrap-italia/master/dist/js/bootstrap-italia-0.0.1.min.js?compression=gzip&label=JS+gzip+size)](https://github.com/italia/bootstrap-italia/blob/master/dist/js/bootstrap-italia-0.0.1.min.js)
[![CSS gzip size](http://img.badgesize.io/italia/bootstrap-italia/master/dist/css/bootstrap-italia.min.css?compression=gzip&label=CSS+gzip+size)](https://github.com/italia/bootstrap-italia/tree/master/dist/css/bootstrap-italia.min.css)
[![JS gzip size](http://img.badgesize.io/italia/bootstrap-italia/master/dist/js/bootstrap-italia.min.js?compression=gzip&label=JS+gzip+size)](https://github.com/italia/bootstrap-italia/blob/master/dist/js/bootstrap-italia.min.js)
[![Join the #design channel](https://img.shields.io/badge/Slack%20channel-%23design-blue.svg)](https://developersitalia.slack.com/messages/C7658JRJR/)
[![Get invited](https://slack.developers.italia.it/badge.svg)](https://slack.developers.italia.it/)

Expand Down Expand Up @@ -30,7 +30,7 @@
## Come iniziare

Per utilizzare Bootstrap Italia all'interno del tuo progetto, è sufficiente includere i file compilati come descritto
in dettaglio alla [pagina introduttiva della documentazione](https://italia.github.io/bootstrap-italia/docs/0.0.1/come-iniziare/introduzione/).
in dettaglio alla [pagina introduttiva della documentazione](https://italia.github.io/bootstrap-italia/docs/come-iniziare/introduzione/).

## Segnalazione bug e richieste di aiuto

Expand All @@ -49,7 +49,7 @@ Se non l'hai già fatto, inizia spendendo qualche minuto per approfondire la tua
e fai riferimento alle [indicazioni su come contribuire a Bootstrap Italia](https://github.com/italia/bootstrap-italia/blob/master/CONTRIBUTING.md).

A questo punto, è necessario impostare il tuo ambiente locale per la compilazione dei file sorgente e la generazione
della documentazione. Alla [pagina relativa agli strumenti di compilazione](https://italia.github.io/bootstrap-italia/docs/0.0.1/come-iniziare/strumenti-di-compilazione/)
della documentazione. Alla [pagina relativa agli strumenti di compilazione](https://italia.github.io/bootstrap-italia/docs/come-iniziare/strumenti-di-compilazione/)
è possibile avere tutte le informazioni necessarie a questo scopo.

[![License](https://img.shields.io/github/license/italia/bootstrap-italia.svg)](https://github.com/italia/bootstrap-italia/blob/master/LICENSE)
7 changes: 4 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ exclude:
- src/
- public/
- node_modules/
- AUTHORS
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Gemfile
- Gemfile.lock
- yarn.lock
- package.js
- package.json
- package-lock.json
- README.md
- LICENSE
- gulpfile.js

plugins:
Expand All @@ -45,8 +47,7 @@ social_image_path: "TODO"
social_logo_path: "TODO"

# Custom variables
current_version: 0.0.1
docs_version: 0.0.1
current_version: 0.1.0-alpha
bootstrap_version: 4
repo: "https://github.com/italia/bootstrap-italia/"
developers: "https://developers.italia.it/"
Expand Down
6 changes: 3 additions & 3 deletions _includes/docs-navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
<div class="navbar-nav-scroll">
<ul class="navbar-nav bd-navbar-nav flex-row">
<li class="nav-item">
<a class="nav-link {% if page.layout == "docs" %}active{% endif %}" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/come-iniziare/introduzione/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Docs');">Documentazione</a>
<a class="nav-link {% if page.layout == "docs" %}active{% endif %}" href="{{ site.baseurl }}/docs/come-iniziare/introduzione/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Docs');">Documentazione</a>
</li>
<!--<li class="nav-item">
<a class="nav-link {% if page.title == "Esempi" %}active{% endif %}" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/esempi/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Esempi');">Esempi</a>
<a class="nav-link {% if page.title == "Esempi" %}active{% endif %}" href="{{ site.baseurl }}/docs/esempi/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Esempi');">Esempi</a>
</li>-->
</ul>
</div>

<ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
<li class="nav-item">
<a class="nav-link p-2 disabled" href="#" aria-label="Version">
v0.0.1
{{ site.current_version }}
</a>
</li>

Expand Down
4 changes: 2 additions & 2 deletions _includes/docs-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{%- endif -%}

<div class="bd-toc-item{% unless active == nil %} {{ active }}{% endunless %}">
<a class="bd-toc-link" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ link_slug }}{% if link_slug %}/{% endif %}">
<a class="bd-toc-link" href="{{ site.baseurl }}/docs/{{ group_slug }}/{{ link_slug }}{% if link_slug %}/{% endif %}">
{{ group.title }}
</a>

Expand All @@ -33,7 +33,7 @@
{%- endif -%}

<li{% unless active == nil %} class="{{ active }}"{% endunless %}>
<a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ doc_slug }}/">
<a href="{{ site.baseurl }}/docs/{{ group_slug }}/{{ doc_slug }}/">
{{ doc.title }}
{%- if doc.status %} <span class="badge badge-info">{{ doc.status }}</span>{%- endif -%}
</a>
Expand Down
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

<!-- Bootstrap core CSS -->
{% if site.github %}
<link href="{{ site.baseurl }}/dist/css/bootstrap-italia-0.0.1.min.css" rel="stylesheet">
<link href="{{ site.baseurl }}/dist/css/bootstrap-italia.min.css" rel="stylesheet">
{% else %}
<link href="{{ site.baseurl }}/dist/css/bootstrap-italia-0.0.1.css" rel="stylesheet">
<link href="{{ site.baseurl }}/dist/css/bootstrap-italia.css" rel="stylesheet">
{% endif %}

<!-- Documentation extras -->
Expand Down
4 changes: 2 additions & 2 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{%- if site.github -%}
<script src="{{ site.baseurl }}/dist/js/bootstrap-italia-0.0.1.bundle.min.js"></script>
<script src="{{ site.baseurl }}/dist/js/bootstrap-italia.bundle.min.js"></script>
{%- else -%}
<script src="{{ site.baseurl }}/dist/js/bootstrap-italia-0.0.1.bundle.js"></script>
<script src="{{ site.baseurl }}/dist/js/bootstrap-italia.bundle.js"></script>
{%- endif -%}

{%- if site.github -%}
Expand Down
1 change: 0 additions & 1 deletion dist/css/bootstrap-italia-0.0.1.css.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/css/bootstrap-italia-0.0.1.min.css.map

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/css/bootstrap-italia.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/css/bootstrap-italia.min.css.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/js/bootstrap-italia-0.0.1.bundle.min.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/bootstrap-italia-0.0.1.min.js.map

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*!
* Bootstrap Italia v0.1.0-alpha
* Copyright 2018
* Licensed under the BSD 3-Clause "New" or "Revised" License (https://github.com/italia/bootstrap-italia/blob/master/LICENSE)
*/

/*!
* jQuery JavaScript Library v3.2.1
* https://jquery.com/
Expand Down Expand Up @@ -10252,6 +10258,12 @@ if ( !noGlobal ) {
return jQuery;
} );

/*!
* Bootstrap Italia v0.1.0-alpha
* Copyright 2018
* Licensed under the BSD 3-Clause "New" or "Revised" License (https://github.com/italia/bootstrap-italia/blob/master/LICENSE)
*/

/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.12.9
Expand Down Expand Up @@ -12699,9 +12711,15 @@ return Popper;
//# sourceMappingURL=popper.js.map

/*!
* Bootstrap
* Copyright 2011-2017
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Bootstrap Italia v0.1.0-alpha
* Copyright 2018
* Licensed under the BSD 3-Clause "New" or "Revised" License (https://github.com/italia/bootstrap-italia/blob/master/LICENSE)
*/

/*!
* Bootstrap Italia v0.1.0-alpha
* Copyright 2018
* Licensed under the BSD 3-Clause "New" or "Revised" License (https://github.com/italia/bootstrap-italia/blob/master/LICENSE)
*/

if (typeof jQuery === 'undefined') {
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/bootstrap-italia.bundle.min.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Bootstrap
* Copyright 2011-2017
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Bootstrap Italia v0.1.0-alpha
* Copyright 2018
* Licensed under the BSD 3-Clause "New" or "Revised" License (https://github.com/italia/bootstrap-italia/blob/master/LICENSE)
*/

if (typeof jQuery === 'undefined') {
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/bootstrap-italia.min.js.map

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ description: Cos'è Bootstrap Italia e come utilizzarlo all'interno del tuo prog
group: come-iniziare
redirect_from:
- /docs/
- /docs/0.0.1/
- /come-iniziare/
- /docs/come-iniziare/
- /docs/0.0.1/come-iniziare/
toc: true
---

Expand All @@ -24,23 +22,23 @@ scaricare ed includere nella pagina HTML un paio di file, un file CSS e un Javas
Tali file si trovano nella cartella [`dist`]({{ site.repo }}tree/master/{{ site.download.dist }}) di questo repository,
oltre ad essere scaricabili alla [pagina delle release di progetto](https://github.com/italia/bootstrap-italia/releases):

<a href="https://github.com/italia/bootstrap-italia/releases/download/{{ site.current_version }}/bootstrap-italia-v{{ site.current_version }}-dist.zip" class="btn btn-bd-primary" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Bootstrap Italia');">Scarica Bootstrap Italia v{{ site.current_version }}</a>
<a href="https://github.com/italia/bootstrap-italia/releases/download/{{ site.current_version }}/bootstrap-italia.zip" class="btn btn-bd-primary" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Bootstrap Italia');">Scarica Bootstrap Italia v{{ site.current_version }}</a>

Le librerie Javascript e CSS di Bootstrap Italia contengono al suo interno anche Bootstrap 4 stesso, ereditandone quindi
tutte le funzionalità e gli stili consultabili al sito di Bootstrap 4.

### CSS

All'interno della cartella `css` è presente un file CSS (`bootstrap-italia-{{ site.current_version }}.css`)
e la sua versione minificata (`bootstrap-italia-{{ site.current_version }}.min.css`), con le rispettive
All'interno della cartella `css` è presente un file CSS (`bootstrap-italia.css`)
e la sua versione minificata (`bootstrap-italia.min.css`), con le rispettive
[source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps)
(`bootstrap-italia-{{ site.current_version }}.*.map`).
(`bootstrap-italia.*.map`).

Copiare i file all'interno del vostro progetto e aggiungere il tag `<link>` di seguito riportato all'interno del tag
`<head>` della pagina, prima di ogni altro CSS già presente, eventualmente correggendo il riferimento al percorso del file:

{% highlight html %}
<link rel="stylesheet" href="./bootstrap-italia-{{ site.current_version }}.min.css">
<link rel="stylesheet" href="./bootstrap-italia.min.css">
{% endhighlight %}

### Javascript
Expand All @@ -59,16 +57,16 @@ soltanto per l'inclusione in linea delle librerie jQuery e popper.js.
<tbody>
<tr>
<th scope="row">
<div><code class="font-weight-normal text-nowrap">bootstrap-italia-{{ site.current_version }}.bundle.js</code></div>
<div><code class="font-weight-normal text-nowrap">bootstrap-italia-{{ site.current_version }}.bundle.min.js</code></div>
<div><code class="font-weight-normal text-nowrap">bootstrap-italia.bundle.js</code></div>
<div><code class="font-weight-normal text-nowrap">bootstrap-italia.bundle.min.js</code></div>
</th>
<td class="text-success">Incluso</td>
<td class="text-success">Incluso</td>
</tr>
<tr>
<th scope="row">
<div><code class="font-weight-normal text-nowrap">bootstrap-italia-{{ site.current_version }}.js</code></div>
<div><code class="font-weight-normal text-nowrap">bootstrap-italia-{{ site.current_version }}.min.js</code></div>
<div><code class="font-weight-normal text-nowrap">bootstrap-italia.js</code></div>
<div><code class="font-weight-normal text-nowrap">bootstrap-italia.min.js</code></div>
</th>
<td class="bg-light text-muted">Non Incluso</td>
<td class="bg-light text-muted">Non Incluso</td>
Expand All @@ -85,7 +83,7 @@ Includendo la versione `*.bundle.*` non sarà necessario aggiungere ulteriori ri
cui sarà sufficiente aggiungere un solo tag `<script>` per la libreria javascript Bootstrap Italia.

{% highlight html %}
<script src="./bootstrap-italia-{{ site.current_version }}.bundle.min.js"></script>
<script src="./bootstrap-italia.bundle.min.js"></script>
{% endhighlight %}

#### Versione semplice
Expand All @@ -96,7 +94,7 @@ cui è sufficiente la versione slim, e per Popper.js come mostrato di seguito:
{% highlight html %}
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_integrity }}"></script>
<script src="{{ site.cdn.popper }}" integrity="{{ site.cdn.popper_integrity }}"></script>
<script src="/bootstrap-italia-{{ site.current_version }}.min.js"></script>
<script src="/bootstrap-italia.min.js"></script>
{% endhighlight %}

## Pagina HTML di esempio
Expand All @@ -112,12 +110,12 @@ In breve, si dovrebbe ottenere qualcosa di simile a ciò che segue:
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- CSS -->
<link rel="stylesheet" href="./bootstrap-italia-{{ site.current_version }}.min.css">
<link rel="stylesheet" href="./bootstrap-italia.min.css">
</head>
<body>
<h1>Hello, world!</h1>
<!-- JS -->
<script src="./bootstrap-italia-{{ site.current_version }}.bundle.min.js"></script>
<script src="./bootstrap-italia.bundle.min.js"></script>
</body>
</html>
{% endhighlight %}
Expand All @@ -126,7 +124,7 @@ Questo è tutto ciò che è sufficiente per avere a disposizione tutte le funzio

### Altri esempi

Assieme a questa documentazione, si possono [consultare una vasta quantità di esempi]({{ site.baseurl }}/docs/{{ site.docs_version }}/esempi/)
Assieme a questa documentazione, si possono [consultare una vasta quantità di esempi]({{ site.baseurl }}/docs/esempi/)
per iniziare a personalizzare la tua pagina semplicemente copiando il loro codice.

## Utilizzo come dipendenza
Expand Down Expand Up @@ -188,12 +186,12 @@ Si possono trovare dettagli aggiuntivi alla [pagina corrispondente](https://getb

### Reboot

Infine, per "normalizzare" alcuni comportamenti cross-browser, Bootstrap Italia eredita da Bootstrap [Reboot]({{ site.baseurl }}/docs/{{ site.docs_version }}/contenuti/reboot/),
Infine, per "normalizzare" alcuni comportamenti cross-browser, Bootstrap Italia eredita da Bootstrap [Reboot]({{ site.baseurl }}/docs/contenuti/reboot/),
una serie di regole CSS che correggono inconsistenze tra browsers e dispositivi.

---

###### Continua la lettura >

Se ti interessa contribuire alla libreria o sapere come funziona il processo di compilazione dei file e la creazione della documentazione di Bootstrap Italia,
continua a leggere alla pagina [strumenti di compilazione]({{ site.baseurl }}/docs/{{ site.docs_version }}/come-iniziare/strumenti-di-compilazione/)
continua a leggere alla pagina [strumenti di compilazione]({{ site.baseurl }}/docs/come-iniziare/strumenti-di-compilazione/)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ group: come-iniziare
toc: true
---

I componenti di Bootstrap Italia sono divisi in due macro-aree: i [Componenti _Base_]({{ site.baseurl }}/docs/{{ site.docs_version }}/componenti/) e i [Componenti _Aggiuntivi_]({{ site.baseurl }}/docs/{{ site.docs_version }}/componenti-aggiuntivi/).
I componenti di Bootstrap Italia sono divisi in due macro-aree: i [Componenti _Base_]({{ site.baseurl }}/docs/componenti/) e i [Componenti _Aggiuntivi_]({{ site.baseurl }}/docs/componenti-aggiuntivi/).

#### Componenti base

Expand Down
Loading

0 comments on commit b889334

Please sign in to comment.