Browse Source

Un theme Balloons librement inspire de radiokrimi

master v1.0.0
Cerdic 1 year ago
commit
8feb5a49fe
  1. 30
      body.html
  2. 217
      css/_bootswatch.scss
  3. 272
      css/_variables.scss
  4. 28
      css/font.css
  5. BIN
      css/fonts/oswald-bold-webfont.woff
  6. BIN
      css/fonts/oswald-bold-webfont.woff2
  7. BIN
      css/fonts/oswald-bolditalic-webfont.woff
  8. BIN
      css/fonts/oswald-bolditalic-webfont.woff2
  9. BIN
      css/fonts/oswald-regular-webfont.woff
  10. BIN
      css/fonts/oswald-regular-webfont.woff2
  11. BIN
      css/fonts/oswald-regularitalic-webfont.woff
  12. BIN
      css/fonts/oswald-regularitalic-webfont.woff2
  13. 165
      css/theme.scss
  14. BIN
      img/bg-body.jpg
  15. 19
      lang/paquet-theme_bs4balloons_fr.php
  16. 17
      paquet.xml
  17. BIN
      vignette.jpg

30
body.html

@ -0,0 +1,30 @@
<body>
<div class="body-bg" style="background-image:url([(#CHEMIN{img/bg-body.jpg}|timestamp)])"></div>
<div class="container">
[<div class="navbar navbar-expand-md navbar-dark bg-dark" id="nav">
(#INCLURE{fond=inclure/nav,env}|navbar_responsive)
</div>]
<div class="header" id="header">
<INCLURE{fond=header/#ENV{type-page},env} />
</div>
<div class="page">
<div class="row justify-content-between">
<div class="content col-md-9 col-lg-8" id="content">
<nav class="nav-breadcrumb" aria-label="Breadcrumb">
<INCLURE{fond=breadcrumb/#ENV{type-page},env} />
</nav>
<INCLURE{fond=content/#ENV{type-page},env} />
</div>
<div class="aside secondary col-md-3" id="aside">
<INCLURE{fond=aside/#ENV{type-page},env} />
<INCLURE{fond=extra/#ENV{type-page},env} />
</div>
</div>
<div class="footer" id="footer">
<INCLURE{fond=footer/#ENV{type-page},env} />
</div>
</div>
</div>
</body>

217
css/_bootswatch.scss

@ -0,0 +1,217 @@
// Darkly 4.3.1
// Bootswatch
// Variables ===================================================================
// Navbar =======================================================================
// Buttons =====================================================================
// Typography ==================================================================
.blockquote {
&-footer {
color: $gray-600;
}
}
// Tables ======================================================================
.table {
&-primary {
&, > th, > td {
background-color: $primary;
}
}
&-secondary {
&, > th, > td {
background-color: $secondary;
}
}
&-light {
&, > th, > td {
background-color: $light;
}
}
&-dark {
&, > th, > td {
background-color: $dark;
}
}
&-success {
&, > th, > td {
background-color: $success;
}
}
&-info {
&, > th, > td {
background-color: $info;
}
}
&-danger {
&, > th, > td {
background-color: $danger;
}
}
&-warning {
&, > th, > td {
background-color: $warning;
}
}
&-active {
&, > th, > td {
background-color: $table-active-bg;
}
}
&-hover {
.table-primary:hover {
&, > th, > td {
background-color: darken($primary, 5%);
}
}
.table-secondary:hover {
&, > th, > td {
background-color: darken($secondary, 5%);
}
}
.table-light:hover {
&, > th, > td {
background-color: darken($light, 5%);
}
}
.table-dark:hover {
&, > th, > td {
background-color: darken($dark, 5%);
}
}
.table-success:hover {
&, > th, > td {
background-color: darken($success, 5%);
}
}
.table-info:hover {
&, > th, > td {
background-color: darken($info, 5%);
}
}
.table-danger:hover {
&, > th, > td {
background-color: darken($danger, 5%);
}
}
.table-warning:hover {
&, > th, > td {
background-color: darken($warning, 5%);
}
}
.table-active:hover {
&, > th, > td {
background-color: $table-active-bg;
}
}
}
}
// Forms =======================================================================
.input-group-addon {
color: #fff;
}
// Navs ========================================================================
.nav-tabs,
.nav-pills {
.nav-link,
.nav-link.active,
.nav-link.active:focus,
.nav-link.active:hover,
.nav-item.open .nav-link,
.nav-item.open .nav-link:focus,
.nav-item.open .nav-link:hover {
color: #fff;
}
}
.breadcrumb a {
color: #fff;
}
.pagination {
a:hover {
text-decoration: none;
}
}
// Indicators ==================================================================
.close {
opacity: 0.4;
&:hover,
&:focus {
opacity: 1;
}
}
.alert {
border: none;
color: $white;
a,
.alert-link {
color: #fff;
text-decoration: underline;
}
@each $color, $value in $theme-colors {
&-#{$color} {
@if $enable-gradients {
background: $value linear-gradient(180deg, mix($white, $value, 15%), $value) repeat-x;
} @else {
background-color: $value;
}
}
}
}
// Progress bars ===============================================================
// Containers ==================================================================
.list-group-item-action {
color: #fff;
&:hover,
&:focus {
background-color: $gray-700;
color: #fff;
}
.list-group-item-heading {
color: #fff;
}
}

272
css/_variables.scss

@ -0,0 +1,272 @@
// Darkly 4.3.1
// Bootswatch
//
// Color system
//
$white: #fff !default;
$gray-100: #f8f9fa !default;
$gray-200: #ebebeb !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #888 !default;
$gray-700: #444 !default;
$gray-800: #222 !default;
$gray-900: #0a0d11 !default;
$black: #000 !default;
$blue: #428bca !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #e83e8c !default;
$red: #E74C3C !default;
$orange: #f39501 !default;
$yellow: #F39C12 !default;
$green: #00bc8c !default;
$teal: #20c997 !default;
$cyan: #3498DB !default;
$primary: $orange !default;
$secondary: $gray-700 !default;
$success: $green !default;
$info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: $gray-500 !default;
$dark: $gray-900 !default;
$yiq-contrasted-threshold: 175 !default;
$enable-admin-buttons: true;
$enable-caret: true !default;
$enable-rounded: false !default;
$enable-shadows: false !default;
$enable-gradients: false !default;
$enable-transitions: true !default;
$enable-prefers-reduced-motion-media-query: true !default;
$enable-hover-media-query: false !default; // Deprecated, no longer affects any compiled CSS
$enable-grid-classes: true !default;
$enable-pointer-cursor-for-buttons: true !default;
$enable-print-styles: true !default;
$enable-responsive-font-sizes: false !default;
$enable-validation-icons: true !default;
$enable-deprecation-messages: true !default;
// Spacing
$spacer: 1.5rem !default;
$spacers: () !default;
// stylelint-disable-next-line scss/dollar-variable-default
$spacers: map-merge(
(
0: 0,
1: ($spacer * .25),
2: ($spacer * .5),
3: $spacer,
4: ($spacer * 1.5),
5: ($spacer * 3)
),
$spacers
);
// Body
$body-bg: $gray-900 !default;
$body-color: $white !default;
// Grid breakpoints
//
// Define the minimum dimensions at which your layout will change,
// adapting to different screen sizes, for use in media queries.
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
) !default;
// Grid containers
//
// Define the maximum width of `.container` for different screen sizes.
$container-max-widths: (
sm: 100vw,
md: 750px,
lg: 960px,
xl: 1140px
) !default;
// Links
$link-color: $primary !default;
$link-hover-color: lighten($primary, 10%);
// Fonts
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
$font-family-alt: "Oswald", sans-serif !default;
$font-family-base: $font-family-sans-serif !default;
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
$font-size-lg: $font-size-base * 1.2 !default;
$font-size-sm: $font-size-base * .866 !default;
$line-height-base: 1.5 !default;
$h1-font-size: $font-size-base * 2.4 !default;
$h2-font-size: $font-size-base * 2 !default;
$h3-font-size: $font-size-base * 1.5 !default;
$h4-font-size: $font-size-base * 1.25 !default;
$h5-font-size: $font-size-base !default;
$headings-font-family: $font-family-alt;
$headings-line-height: 1.1 !default;
$headings-font-weight: normal;
$blockquote-font-size: $font-size-base !default;
$border-color: $gray-700 !default;
$hr-border-color: $border-color !default;
$text-muted: $gray-600 !default;
$input-bg: $gray-900 !default;
$input-disabled-bg: $gray-600 !default;
$input-color: $gray-100 !default;
$input-border-color: $gray-700 !default;
$breadcrumb-bg: $gray-800 !default;
// Tables
$table-color: $white !default;
$table-accent-bg: rgba($white,.05) !default;
$table-hover-bg: rgba($white,.075) !default;
$table-border-color: $border-color !default;
$table-dark-bg: $gray-500 !default;
$table-dark-border-color: darken($gray-500, 7.5%) !default;
// Forms
$input-border-color: $body-bg !default;
$input-group-addon-color: $gray-500 !default;
$input-group-addon-bg: $gray-700 !default;
$custom-file-color: $gray-500 !default;
$custom-file-border-color: $body-bg !default;
// Dropdowns
$dropdown-bg: $gray-900 !default;
$dropdown-border-color: $gray-700 !default;
$dropdown-divider-bg: $gray-700 !default;
$dropdown-link-color: $white !default;
$dropdown-link-hover-color: $white !default;
$dropdown-link-hover-bg: $primary !default;
// Navs
$nav-link-padding-y: .5rem !default !default;
$nav-link-padding-x: 2rem !default;
$nav-link-disabled-color: $gray-500 !default;
$nav-tabs-border-color: $gray-700 !default;
$nav-tabs-link-hover-border-color: $nav-tabs-border-color $nav-tabs-border-color transparent !default;
$nav-tabs-link-active-color: $white !default;
$nav-tabs-link-active-border-color: $nav-tabs-border-color $nav-tabs-border-color transparent !default;
// Navbar
$navbar-padding-y: 1rem !default;
$navbar-dark-color: rgba($white,.6) !default;
$navbar-dark-hover-color: $white !default;
$navbar-dark-hover-bg: transparent !default;
$navbar-dark-active-bg: transparent !default;
$navbar-light-color: rgba($gray-900, .7) !default;
$navbar-light-hover-color: $gray-900 !default;
$navbar-light-active-color: $gray-900 !default;
$navbar-light-toggler-border-color: rgba($gray-900, .1) !default;
// Pagination
$pagination-color: $white !default;
$pagination-bg: $primary !default;
$pagination-border-width: 0 !default;
$pagination-border-color: transparent !default;
$pagination-hover-color: $white !default;
$pagination-hover-bg: lighten($primary, 10%) !default;
$pagination-hover-border-color: transparent !default;
$pagination-active-bg: $pagination-hover-bg !default;
$pagination-active-border-color: transparent !default;
$pagination-disabled-color: $white !default;
$pagination-disabled-bg: darken($primary, 15%) !default;
$pagination-disabled-border-color: transparent !default;
// Jumbotron
$jumbotron-bg: $gray-800 !default;
// Cards
$card-cap-bg: $gray-700 !default;
$card-bg: $gray-800 !default;
$well-bg: $card-bg !default;
$form-bg: $card-bg !default;
// Popovers
$popover-bg: $gray-800 !default;
$popover-header-bg: $gray-700 !default;
// Toasts
$toast-background-color: $gray-700 !default;
$toast-header-background-color: $gray-800 !default;
// Modals
$modal-content-bg: $gray-800 !default;
$modal-content-border-color: $gray-700 !default;
$modal-header-border-color: $gray-700 !default;
// Progress bars
$progress-bg: $gray-700 !default;
// List group
$list-group-bg: $gray-800 !default;
$list-group-border-color: $gray-700 !default;
$list-group-hover-bg: $gray-700 !default;
// Breadcrumbs
$breadcrumb-bg: $gray-700 !default;
// Close
$close-color: $white !default;
$close-text-shadow: none !default;
// Code
$pre-color: inherit !default;
$code-color: $blue;
@import "bootstrap/css/_variables";

28
css/font.css

@ -0,0 +1,28 @@
@font-face {
font-family: 'Oswald';
src: url('fonts/oswald-regular-webfont.woff2') format('woff2'),
url('fonts/oswald-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Oswald';
src: url('fonts/oswald-bold-webfont.woff2') format('woff2'),
url('fonts/oswald-bold-webfont.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Oswald';
src: url('fonts/oswald-regularitalic-webfont.woff2') format('woff2'),
url('fonts/oswald-regularitalic-webfont.woff') format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Oswald';
src: url('fonts/oswald-bolditalic-webfont.woff2') format('woff2'),
url('fonts/oswald-bolditalic-webfont.woff') format('woff');
font-weight: bold;
font-style: italic;
}

BIN
css/fonts/oswald-bold-webfont.woff

BIN
css/fonts/oswald-bold-webfont.woff2

BIN
css/fonts/oswald-bolditalic-webfont.woff

BIN
css/fonts/oswald-bolditalic-webfont.woff2

BIN
css/fonts/oswald-regular-webfont.woff

BIN
css/fonts/oswald-regular-webfont.woff2

BIN
css/fonts/oswald-regularitalic-webfont.woff

BIN
css/fonts/oswald-regularitalic-webfont.woff2

165
css/theme.scss

@ -0,0 +1,165 @@
@import "css/bootstrap-start";
html {
font-size: 93.75%; // 15px par defaut
}
/* Reduire la font en mobile que l'on tient plus pres des yeux */
@include media-breakpoint-only(xs) {
html {
font-size: 87.5%; // 14px par defaut
}
}
.body-bg {
position: fixed;
top:0;
left: 0;
right: 0;
bottom: 0;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
z-index: -1;
}
a {
@include hover-focus-active() {
background-color: rgba($gray-500, 0.05);
}
}
h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6,
.h1-like,.h2-like,.h3-like,.h4-like,.h5-like,.h6-like {
text-transform: uppercase;
}
.secondary h1,.secondary .h1,.secondary .h1-like,
h2,.h2,.h2-like { line-height: 1.2;}
.secondary h2,.secondary .h2,.secondary .h2-like,
h3,.h3,.h3-like { line-height: 1.2;}
h1,h2,
.h1,.h2,
.h1-like,.h2-like {
position: relative;
padding-left: $grid-gutter-width;
&:before {
content: '';
left: 0;
top: 0;
position: absolute;
bottom: ($headings-line-height - 1) * 1em;
width: $grid-gutter-width / 3;
background: $primary;
}
}
.spip_cadre, div.spip_code {
background: $form-bg;
color: $input-color;
}
#header {
background-color: $body-bg;
margin-left: -$grid-gutter-width / 2;
@include media-breakpoint-down(sm) {
margin-right: -$grid-gutter-width / 2;
padding-left: $grid-gutter-width / 2;
padding-right: 3 * $grid-gutter-width;
}
.spip_logo {
display: none;
}
}
.page {
margin-top: 4 * $spacer;
background-color: $body-bg;
margin-left: -$grid-gutter-width / 2;
margin-right: -$grid-gutter-width / 2;
padding: $grid-gutter-width / 2;
}
#nav {
font-family: $headings-font-family;
text-transform: uppercase;
font-size: $h3-font-size;
@include media-breakpoint-up(md) {
margin-left: -$grid-gutter-width / 2;
margin-right: -$grid-gutter-width / 2;
}
margin-bottom: 0;
.nav-item.active {
position: relative;
&:after {
content:'';
display: block;
position: absolute;
left:0;
right: 0;
bottom:$rem-vert-margin / 4;
height: 2px;
background: $primary;
}
}
.navbar-nav {
margin-left: auto;
}
}
#footer {
margin-left: -$grid-gutter-width / 2;
margin-right: -$grid-gutter-width / 2;
padding-left: $grid-gutter-width / 2;
padding-right: $grid-gutter-width / 2;
border-top:5px solid $primary;
.generator {
right: $grid-gutter-width / 2;
a.spip_out {
color: $link-color;
@include hover-focus-active {
color: $link-hover-color;
}
}
}
}
@include media-breakpoint-up(md) {
#header, #nav {
position: relative;
padding-left: 0;
padding-right: 0;
.navbar-inner {
margin-left: -$navbar-nav-link-padding-x;
}
&:before {
content: '';
display: block;
position: absolute;
left: 50%;
width: 100vw;
top: 0;
height: 100%;
margin-left: -50vw;
background-color: inherit;
z-index: -1;
}
}
}
@include media-breakpoint-down(sm) {
#nav {
@include make-navbar-button-float();
}
.header {
.formulaire_menu_lang {
margin-top: -1.25 * $spacer / 2;
margin-bottom: $spacer / 2;
}
}
}
.footer {
border-color: $border-color;
}

BIN
img/bg-body.jpg

After

Width: 1920  |  Height: 1440  |  Size: 311 KiB

19
lang/paquet-theme_bs4balloons_fr.php

@ -0,0 +1,19 @@
<?php
// Ceci est un fichier langue de SPIP -- This is a SPIP language file
// Fichier produit par PlugOnet
// Module: paquet-theme_bsflatly
// Langue: fr
// Date: 07-04-2020 16:49:49
// Items: 2
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// T
'theme_bs4balloons_description' => 'Un thème dark mais coloré avec une grande photo en background',
'theme_bs4balloons_slogan' => 'Un thème dark mais coloré avec une grande photo en background',
);
?>

17
paquet.xml

@ -0,0 +1,17 @@
<paquet
prefix="theme_bs4balloons"
categorie="theme"
version="1.0.0"
etat="stable"
compatibilite="[3.2.0;]"
logo="vignette.jpg"
>
<nom>Balloons</nom>
<auteur lien="https://nursit.com">Cedric</auteur>
<licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GPL 3</licence>
<utilise nom="spiprv2" compatibilite="[2.0.0;[" />
</paquet>

BIN
vignette.jpg

After

Width: 400  |  Height: 300  |  Size: 54 KiB

Loading…
Cancel
Save