Browse Source

Conversion du theme Superhero a BS4/spipr-v2

master
Cerdic 1 year ago
parent
commit
e2f34eefac
  1. 259
      css/_bootswatch.scss
  2. 254
      css/_variables.scss
  3. 666
      css/bootswatch.less
  4. 21
      css/font.css
  5. BIN
      css/fonts/lato-bold-webfont.woff
  6. BIN
      css/fonts/lato-bold-webfont.woff2
  7. BIN
      css/fonts/lato-italic-webfont.woff
  8. BIN
      css/fonts/lato-italic-webfont.woff2
  9. BIN
      css/fonts/lato-regular-webfont.woff
  10. BIN
      css/fonts/lato-regular-webfont.woff2
  11. 70
      css/theme.scss
  12. 303
      css/variables.less
  13. 19
      lang/paquet-theme_bs4superhero_fr.php
  14. 18
      paquet.xml
  15. 13
      plugin.xml
  16. BIN
      vignette.png

259
css/_bootswatch.scss

@ -0,0 +1,259 @@
// Superhero 4.3.1
// Bootswatch
// Variables ===================================================================
// see font.css
//$web-font-path: "https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap" !default;
//@import url($web-font-path);
// Navbar ======================================================================
// Buttons =====================================================================
.btn {
@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;
}
}
}
}
// Typography ==================================================================
.blockquote-footer {
color: $body-color;
}
// Tables ======================================================================
.table {
font-size: $font-size-sm;
.thead-dark th {
color: $white;
}
a:not(.btn) {
color: #fff;
text-decoration: underline;
}
.dropdown-menu a {
text-decoration: none;
}
.text-muted {
color: $text-muted;
}
&-dark {
color: #fff;
}
&-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 =======================================================================
label,
.radio label,
.checkbox label,
.help-block {
font-size: $font-size-sm;
}
// Navs ========================================================================
.nav-tabs,
.nav-pills {
.nav-link,
.nav-link:hover {
color: $body-color;
}
.nav-link.disabled {
color: $nav-link-disabled-color;
}
}
.page-link:hover,
.page-link:focus {
color: #fff;
text-decoration: none;
}
// Indicators ==================================================================
.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;
}
}
}
}
.badge {
&-warning,
&-info {
color: $white;
}
}
.close {
color: #fff;
text-shadow: none;
opacity: 0.5;
&:hover,
&:focus {
opacity: 1;
}
}
// Progress bars ===============================================================
// Popovers ===============================================================
.popover-header {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
// Containers ==================================================================
.modal {
&-header,
&-footer {
background-color: $table-hover-bg;
}
}

254
css/_variables.scss

@ -0,0 +1,254 @@
// Superhero 4.3.1
// Bootswatch
//
// Color system
//
$white: #fff !default;
$gray-100: #EBEBEB !default;
$gray-200: #4E5D6C !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #868e96 !default;
$gray-700: #495057 !default;
$gray-800: #343a40 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #DF691A !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #e83e8c !default;
$red: #d9534f !default;
$orange: #f0ad4e !default;
$yellow: #f0ad4e !default;
$green: #5cb85c !default;
$teal: #20c997 !default;
$cyan: #5bc0de !default;
$primary: $blue !default;
$secondary: $gray-200 !default;
$success: $green !default;
$info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: lighten($gray-200, 35%) !default;
$dark: $gray-200 !default;
$yiq-contrasted-threshold: 185 !default;
$enable-admin-buttons: false;
$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: #2B3E50 !default;
$body-color: $gray-100 !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%);
// Components
$border-radius: 0px !default;
$border-radius-lg: 0px !default;
$border-radius-sm: 0px !default;
// Fonts
$font-family-sans-serif: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !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-base;
$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: rgba(255,255,255,.4) !default;
$well-bg: $gray-200;
$form-bg: $gray-200;
// Tables
$table-accent-bg: rgba($white,.05) !default;
$table-hover-bg: rgba($white,.075) !default;
$table-border-color: rgba($black,.15) !default;
$table-head-bg: $light !default;
$table-dark-bg: $light !default;
$table-dark-border-color: $gray-200 !default;
$table-dark-color: $body-bg !default;
// Forms
$input-disabled-bg: $gray-100 !default;
$input-border-color: transparent !default;
$input-group-addon-color: $body-color !default;
$custom-file-button-color: $white !default;
$custom-file-border-color: $gray-200 !default;
// Dropdowns
$dropdown-bg: $gray-200 !default;
$dropdown-divider-bg: rgba($black,.15) !default;
$dropdown-link-color: $body-color !default;
$dropdown-link-hover-color: $dropdown-link-color !default;
$dropdown-link-hover-bg: $table-hover-bg !default;
// Navs
$nav-link-disabled-color: rgba(255,255,255,.4) !default;
$nav-tabs-border-color: $gray-200 !default;
$nav-tabs-link-active-color: $body-color !default;
$nav-tabs-link-active-border-color: $gray-200 !default;
// Navbar
$navbar-padding-y: 0.5rem !default;
$navbar-dark-color: rgba($white,.75) !default;
$navbar-dark-hover-color: $white !default;
$navbar-dark-hover-bg: rgba($black,0.05) !default;
$navbar-dark-active-bg: rgba($black,0.15) !default;
// Pagination
$pagination-color: $white !default;
$pagination-bg: $gray-200 !default;
$pagination-border-color: transparent !default;
$pagination-hover-color: $white !default;
$pagination-hover-bg: $nav-link-disabled-color !default;
$pagination-hover-border-color: $pagination-border-color !default;
$pagination-disabled-color: $nav-link-disabled-color !default;
$pagination-disabled-bg: $pagination-bg !default;
$pagination-disabled-border-color: $pagination-border-color !default;
// Cards
$card-cap-bg: $table-hover-bg !default;
$card-bg: $gray-200 !default;
$card-inner-border-radius: 0px !default;
// Popovers
$popover-bg: $gray-200 !default;
$popover-header-bg: $table-hover-bg !default;
// Toasts
$toast-background-color: $gray-200 !default;
$toast-border-color: rgba(0,0,0,.2) !default;
$toast-header-color: $body-color !default;
$toast-header-background-color: $toast-background-color !default;
$toast-header-border-color: $toast-border-color !default;
// Modals
$modal-content-bg: $gray-200 !default;
$modal-header-border-color: rgba(0,0,0,.2) !default;
// List group
$list-group-bg: $gray-200 !default;
$list-group-border-color: transparent !default;
$list-group-hover-bg: $nav-link-disabled-color !default;
$list-group-disabled-color: $nav-link-disabled-color !default;
$list-group-action-color: $white !default;
$list-group-action-hover-color: $white !default;
// Breadcrumbs
$breadcrumb-divider-color: $body-color !default;
$breadcrumb-active-color: $body-color !default;
// Code
$pre-color: inherit !default;
$code-color: $orange;
@import "bootstrap/css/_variables";

666
css/bootswatch.less

@ -1,666 +0,0 @@
// Bootswatch.less
// Swatch: Superhero
// Version: 2.1.1
// -----------------------------------------------------
// TYPOGRAPHY
// --------------------------------------------------
@import url(https://fonts.googleapis.com/css?family=Oswald);
@import url(https://fonts.googleapis.com/css?family=Noticia+Text);
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, h6 {
font-family: @headingsFontFamily;
color: @orange;
text-shadow: -1px 1px 0 darken(@orange, 30%);
}
h1, h2 {
text-shadow: -2px 2px 0 darken(@orange, 30%);
}
h1 {
line-height: 55px;
}
code, pre {
background-color: lighten(@blue, 8%);
border: none;
color: @textColor;
}
// SCAFFOLDING
// --------------------------------------------------
.page-header {
border-bottom: none;
}
blockquote {
border-left: 5px solid @blue;
}
blockquote.pull-right {
border-right: 5px solid @blue;
}
// NAVBAR
// --------------------------------------------------
.navbar {
.navbar-inner {
.box-shadow(none);
background-image: none;
}
.brand {
padding: 25px 20px 15px;
font-family: @headingsFontFamily;
font-size: 30px;
text-shadow: -2px 2px 0 darken(@orange, 30%);
}
.nav > li > a {
padding: 23px 20px 13px;
line-height: 30px;
font-family: @headingsFontFamily;
font-size: 22px;
text-shadow: -2px 2px 0 darken(@orange, 30%);
}
.brand:hover,
.nav > li > a:hover,
.nav > li.active > a:hover,
.nav > li.dropdown.open > a,
.nav > li.dropdown.open > a:hover {
position: relative;
top: 1px;
left: -1px;
color: @orange;
text-shadow: -1px 1px 0 darken(@orange, 30%);
}
.nav > .active > a,
.nav > .active > a:hover,
.nav > .active > a:focus {
.box-shadow(none);
}
.navbar-text {
padding: 23px 20px 13px;
line-height: 30px;
font-family: @headingsFontFamily;
font-size: 22px;
text-shadow: -2px 2px 0 @gray;
}
.navbar-search {
margin-top: 24px;
}
.navbar-search .search-query {
font-family: @baseFontFamily;
font-size: @baseFontSize;
line-height: @baseLineHeight;
.box-shadow(none);
}
&.navbar-inverse .navbar-search .search-query {
color: @blueDark;
}
.divider-vertical {
height: 70px;
}
.nav .dropdown-toggle .caret,
.nav .open.dropdown .caret {
margin-top: 14px;
border-top-color: @textColor;
}
.dropdown-menu::before {
border: none;
}
.dropdown-menu::after {
left: 20px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid lighten(@blue, 10%);
}
[class^="icon-"], [class*=" icon-"] {
vertical-align: 20%;
}
.btn-navbar {
background-color: @blue;
border-color: transparent;
}
}
@media (max-width: @navbarCollapseWidth) {
.navbar .nav-collapse {
.border-radius(4px);
.nav li > a {
color: @orange;
&:hover {
background-color: lighten(@blue, 10%) !important;
background-image: none;
}
}
.navbar-form,
.navbar-search {
border-top: none;
border-bottom: none;
.box-shadow(none);
}
.nav-header {
color: @textColor;
}
}
}
div.subnav {
background-color: @blue;
background-image: none;
border: none;
.nav > li > a,
.nav > li.active > a {
border-left: none;
border-right: none;
color: @textColor;
}
.nav > li > a:hover,
.nav > li.active > a:hover {
background-color: lighten(@blue, 10%);
}
.nav > li + li > a {
border-top: 0px solid transparent;
}
.nav > li:first-child > a,
.nav > li:first-child > a:hover,
.nav > li.active:first-child > a,
.nav > li.active:first-child > a:hover {
.border-radius(4px 0 0 4px);
}
.nav > li.active > a,
.nav > li.active > a:hover {
color: @white;
background-color: @orange;
background-image: none;
.box-shadow(none);
}
&.subnav-fixed {
top: 70px;
.box-shadow(none);
.nav > li > a,
.nav > li.active > a,
.nav > li > a:hover,
.nav > li.active > a:hover {
border-color: transparent;
padding-left: 12px;
padding-right: 12px;
.border-radius(0);
}
.nav > li > a:hover,
.nav > li.active > a:hover {
color: @white;
}
}
.nav > .active > a .caret,
.nav > .active > a:hover .caret {
border-top-color: @textColor;
}
}
// NAVIGATION
// --------------------------------------------------
.nav .nav-header {
color: @textColor;
text-shadow: none;
}
.nav-list {
padding: 0 15px;
}
.nav-list > li > a, .nav-list .nav-header {
text-shadow: none;
color: @textColor;
}
.nav-list .active > a, .nav-list .active > a:hover {
text-shadow: none;
color: @white;
}
.nav-list li > a:hover {
background-color: lighten(@blue, 10%);
}
.nav-tabs, .nav-tabs.nav-stacked > li > a {
border-color: transparent;
}
.nav-tabs {
> li > a {
background-color: @blue;
color: @textColor;
}
li.active > a,
li.active > a:hover,
&.nav-stacked > li.active > a:hover {
color: @white;
background-color: @orange;
border-color: transparent;
}
li > a:hover,
&.nav-stacked > li > a:hover {
background-color: lighten(@blue, 10%);
border-color: transparent;
}
}
.nav-pills > li > a {
color: @textColor;
background-color: @blue;
}
.nav-pills > li:hover > a {
background-color: lighten(@blue, 10%);
border-color: transparent;
}
.nav-tabs .open .dropdown-toggle,
.nav-pills .open .dropdown-toggle,
.nav > .open.active > a:hover {
background-color: lighten(@blue, 10%);
border-color: transparent;
}
.nav-pills .dropdown .caret,
.nav-pills .dropdown:hover .caret {
border-top-color: @textColor;
}
.dropdown.open .dropdown-menu > li > a:hover,
.dropdown.open .dropdown-menu > li.active > a:hover {
background-color: @orange;
color: @white;
}
.tabbable .nav-tabs,
.tabbable .nav-tabs > li.active > a,
.tabbable .nav-tabs > li > a:hover,
.tabbable .nav-tabs > li.active > a:hover {
border-color: transparent;
}
.breadcrumb {
background-color: @blue;
background-image: none;
border: none;
.box-shadow(none);
li {
text-shadow: none;
}
.divider {
color: @textColor;
}
}
.pagination {
ul {
background-image: none;
border-color: transparent;
}
li > a {
border: none;
color: @textColor;
}
li.active > a,
li.active > a:hover {
background-color: @orange;
color: @white;
}
li > a:hover {
background: lighten(@blue, 10%);
}
li.disabled > a,
li.disabled > a:hover {
background: darken(@blue, 5%);
}
}
.pager {
a {
color: @textColor;
background-color: @blue;
border-color: transparent;
&:hover {
background: lighten(@blue, 10%);
}
}
.disabled a,
.disabled a:hover {
background-color: @blue;
}
}
// BUTTONS
// --------------------------------------------------
.btn,
.btn:hover {
text-shadow: none;
background-image: none;
.box-shadow(-2px 2px 0 rgba(0, 0, 0, 0.2));
border: none;
}
.btn-warning {
background-color: @yellow;
}
.btn-primary, .btn-primary:hover {
.box-shadow(-2px 2px 0 darken(@btnPrimaryBackground, 30%));
}
.btn-warning, .btn-warning:hover {
.box-shadow(-2px 2px 0 darken(@yellow, 30%));
}
.btn-danger, .btn-danger:hover {
.box-shadow(-2px 2px 0 darken(#ee5f5b, 30%));
}
.btn-success, .btn-success:hover {
.box-shadow(-2px 2px 0 darken(#62c462, 30%));
}
.btn-info, .btn-info:hover {
.box-shadow(-2px 2px 0 darken(#5bc0de, 40%));
}
.btn-inverse, .btn-inverse:hover {
.box-shadow(-2px 2px 0 darken(#454545, 20%));
}
.btn.dropdown-toggle, .btn.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(@white, 80%));
}
.btn-primary.dropdown-toggle, .btn-primary.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(@btnPrimaryBackground, 30%));
}
.btn-warning.dropdown-toggle, .btn-warning.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(@yellow, 30%));
}
.btn-danger.dropdown-toggle, .btn-danger.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(#ee5f5b, 30%));
}
.btn-success.dropdown-toggle, .btn-success.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(#62c462, 30%));
}
.btn-info.dropdown-toggle, .btn-info.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(#5bc0de, 40%));
}
.btn-inverse.dropdown-toggle, .btn-inverse.dropdown-toggle:hover {
.box-shadow(0 2px 0 darken(#454545, 20%));
}
.btn.active,
.btn:active {
position: relative;
top: 1px;
left: -1px;
.box-shadow(-1px 1px 0 darken(@white, 80%))
}
.btn.disabled,
.btn.disabled.active,
.btn.disabled:active,
.btn[disabled] {
.box-shadow(none);
text-shadow: none;
top: 0;
left: 0;
}
[class^="icon-"], [class*=" icon-"] {
vertical-align: -13%;
}
// TABLES
// -----------------------------------------------------
.table,
.table-striped tbody > tr > td:first-child,
.table-striped tbody > tr > td:last-child, {
.border-radius(4px);
}
// FORMS
// --------------------------------------------------
input, button, select, textarea {
font-family: 'Noticia Text', serif;
}
legend {
border-bottom: none;
font-family: @headingsFontFamily;
color: @orange;
text-shadow: -2px 2px 0 darken(@orange, 30%);
}
label {
color: @textColor;
line-height: 15px;
}
.help-block {
color: @textColor;
opacity: 0.6;
}
.form-actions {
border-top: none;
}
.control-group.warning {
.formFieldState(lighten(@warningText, 10%), lighten(@warningText, 10%), @warningBackground);
}
.control-group.error {
.formFieldState(lighten(@errorText, 10%), lighten(@errorText, 10%), @errorBackground);
}
.control-group.success {
.formFieldState(lighten(@successText, 10%), lighten(@successText, 10%), @successBackground);
}
.input-append .add-on,
.input-prepend .add-on,
.input-append .btn,
.input-prepend .btn {
color: @bodyBackground;
}
// DROPDOWNS
// --------------------------------------------------
.dropdown .caret {
margin-top: 14px;
opacity: 1;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid lighten(@blue, 10%);
}
// ALERTS, LABELS, BADGES
// --------------------------------------------------
.label {
background-color: @blue;
color: @textColor;
}
.label-important {
background-color: @errorText;
}
.label-warning {
background-color: @orange;
}
.label-success {
background-color: @successText;
}
.label-info {
background-color: @infoText;
}
.alert {
background-color: @blue;
border: none;
color: @textColor;
text-shadow: none;
a {
color: lighten(@orange, 12%);
}
}
.alert .alert-heading {
color: @orange;
}
.alert-success {
background-color: @successText;
}
.alert-danger,
.alert-error {
background-color: @errorText;
}
.alert-info {
background-color: @infoText;
}
// MISC
// --------------------------------------------------
.well, .hero-unit {
border: none;
.box-shadow(none);
}
.hero-unit h1 {
color: @orange;
line-height: 2em;
}
.progress {
background-color: darken(@blueDark, 5%);
background-image: none;
.box-shadow(none);
.bar {
.box-shadow(none);
}
}
.thumbnail {
border: none;
background: @blue;
.border-radius(3px);
color:@textColor;
.caption {
color:@grayLight;
}
}
.modal {
background-color: transparent;
&-header,
&-body,
&-footer {
.box-shadow(none);
background-color: @bodyBackground;
border: none;
}
&-header {
.border-radius(4px 4px 0 0);
}
&-footer {
.border-radius(0 0 4px 4px);
}
}
// MEDIA QUERIES
// --------------------------------------------------
@media (max-width: 768px) {
div.subnav {
.nav > li {
&:first-child > a,
&:first-child > a:hover,
&.active:first-child > a,
&.active:first-child > a:hover {
.border-radius(4px 4px 0 0);
}
&:last-child > a,
&:last-child > a:hover,
&.active:last-child > a,
&.active:last-child > a:hover {
.border-radius(0 0 4px 4px);
}
}
}
}

21
css/font.css

@ -0,0 +1,21 @@
@font-face {
font-family: 'Lato';
src: url('fonts/lato-regular-webfont.woff2') format('woff2'),
url('fonts/lato-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Lato';
src: url('fonts/lato-bold-webfont.woff2') format('woff2'),
url('fonts/lato-bold-webfont.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Lato';
src: url('fonts/lato-italic-webfont.woff2') format('woff2'),
url('fonts/lato-italic-webfont.woff') format('woff');
font-weight: normal;
font-style: italic;
}

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

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

BIN
css/fonts/lato-italic-webfont.woff

BIN
css/fonts/lato-italic-webfont.woff2

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

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

70
css/theme.scss

@ -0,0 +1,70 @@
@import "css/bootstrap-start";
html {
font-size: 100%; // 16px par defaut
}
/* Reduire la font en mobile que l'on tient plus pres des yeux */
@include media-breakpoint-only(xs) {
html {
font-size: 93.75%; // 15px par defaut
}
}
a {
@include hover-focus-active() {
background-color: rgba($gray-500, 0.05);
}
}
.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;}
@include media-breakpoint-up(md) {
#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-only(sm) {
#nav {
margin-left: -$grid-gutter-width / 2;
margin-right: -$grid-gutter-width / 2;
padding-left: $grid-gutter-width / 2;
padding-right: $grid-gutter-width / 2;
}
}
@include media-breakpoint-down(xs) {
#nav {
@include make-navbar-button-float();
}
.header {
.formulaire_menu_lang {
margin-top: -$spacer / 2;
margin-bottom: $spacer / 2;
}
}
}
.footer {
border-color: $border-color;
}

303
css/variables.less

@ -1,303 +0,0 @@
//
// Variables
// Swatch: Superhero
// Version: 2.1.1
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
// -------------------------
@black: #000;
@grayDarker: #222;
@grayDark: #333;
@gray: #555;
@grayLight: #999;
@grayLighter: #eee;
@white: #fff;
// Accent colors
// -------------------------
@blue: #45515F;
@blueDark: #2A333C;
@green: #5DA028;
@red: #A12932;
@yellow: #E6C92E;
@orange: #E36B23;
@pink: #C74871;
@purple: #7073CF;
// Scaffolding
// -------------------------
@bodyBackground: @blueDark;
@textColor: #ECE9D7;
// Links
// -------------------------
@linkColor: @orange;
@linkColorHover: @linkColor;
// Typography
// -------------------------
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
@serifFontFamily: Georgia, Utopia, Palatino, 'Palatino Linotype', serif;
@monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
@baseFontSize: 15px;
@baseFontFamily: @serifFontFamily;
@baseLineHeight: 20px;
@altFontFamily: @serifFontFamily;
@headingsFontFamily: 'Oswald', sans-serif; // empty to use BS default, @baseFontFamily
@headingsFontWeight: bold; // instead of browser default, bold
@headingsColor: @orange; // empty to use BS default, @textColor
// Component sizing
// -------------------------
// Based on 14px font-size and 20px line-height
@fontSizeLarge: @baseFontSize * 1.25; // ~18px
@fontSizeSmall: @baseFontSize * 0.85; // ~12px
@fontSizeMini: @baseFontSize * 0.75; // ~11px
@paddingLarge: 11px 19px; // 44px
@paddingSmall: 2px 10px; // 26px
@paddingMini: 1px 6px; // 24px
@baseBorderRadius: 4px;
@borderRadiusLarge: 5px;
@borderRadiusSmall: 3px;
// Tables
// -------------------------
@tableBackground: darken(@blue, 3%); // overall background-color
@tableBackgroundAccent: @blue; // for striping
@tableBackgroundHover: lighten(@blue, 5%); // for hover
@tableBorder: transparent; // table and cell border
// Buttons
// -------------------------
@btnBackground: @white;
@btnBackgroundHighlight: darken(@white, 10%);
@btnBorder: darken(@white, 20%);
@btnPrimaryBackground: @linkColor;
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
@btnInfoBackground: #5bc0de;
@btnInfoBackgroundHighlight: #2f96b4;
@btnSuccessBackground: #62c462;
@btnSuccessBackgroundHighlight: #51a351;
@btnWarningBackground: lighten(@orange, 15%);
@btnWarningBackgroundHighlight: @orange;
@btnDangerBackground: #ee5f5b;
@btnDangerBackgroundHighlight: #bd362f;
@btnInverseBackground: @gray;
@btnInverseBackgroundHighlight: @grayDarker;
// Forms
// -------------------------
@inputBackground: @white;
@inputBorder: #ccc;
@inputBorderRadius: 3px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: transparent;
@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
// Dropdowns
// -------------------------
@dropdownBackground: lighten(@blue, 10%);
@dropdownBorder: transparent;
@dropdownDividerTop: transparent;
@dropdownDividerBottom: @blue;
@dropdownLinkColor: @textColor;
@dropdownLinkColorHover: @white;
@dropdownLinkColorActive: @dropdownLinkColor;
@dropdownLinkBackgroundActive: @linkColor;
@dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
// COMPONENT VARIABLES
// --------------------------------------------------
// Z-index master list
// -------------------------
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown: 1000;
@zindexPopover: 1010;
@zindexTooltip: 1030;
@zindexFixedNavbar: 1030;
@zindexModalBackdrop: 1040;
@zindexModal: 1050;
// Sprite icons path
// -------------------------
@iconSpritePath: "../img/glyphicons-halflings-white.png";
@iconWhiteSpritePath: "../img/glyphicons-halflings.png";
// Input placeholder text color
// -------------------------
@placeholderText: @grayLight;
// Hr border color
// -------------------------
@hrBorder: transparent;
// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset: 180px;
// Wells
// -------------------------
@wellBackground: @blue;
// Navbar
// -------------------------
@navbarCollapseWidth: 767px;
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
@navbarHeight: 70px;
@navbarBackgroundHighlight: @navbarBackground;
@navbarBackground: @blueDark;
@navbarBorder: darken(@navbarBackground, 5%);
@navbarText: @grayLight;
@navbarLinkColor: @orange;
@navbarLinkColorHover: @orange;
@navbarLinkColorActive: @navbarLinkColorHover;
@navbarLinkBackgroundHover: transparent;
@navbarLinkBackgroundActive: @navbarBackground;
@navbarBrandColor: @navbarLinkColor;
// Inverted navbar
@navbarInverseBackground: @blue;
@navbarInverseBackgroundHighlight: @navbarInverseBackground;
@navbarInverseBorder: darken(@navbarBackground, 5%);
@navbarInverseText: @grayLight;
@navbarInverseLinkColor: @orange;
@navbarInverseLinkColorHover: @orange;
@navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
@navbarInverseLinkBackgroundHover: transparent;
@navbarInverseLinkBackgroundActive: @navbarInverseBackground;
@navbarInverseSearchBackground: @white;
@navbarInverseSearchBackgroundFocus: @white;
@navbarInverseSearchBorder: @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor: @grayLight;
@navbarInverseBrandColor: @navbarInverseLinkColor;
// Pagination
// -------------------------
@paginationBackground: @blue;
@paginationBorder: transparent;
@paginationActiveBackground: @orange;
// Hero unit
// -------------------------
@heroUnitBackground: @blue;
@heroUnitHeadingColor: inherit;
@heroUnitLeadColor: inherit;
// Form states and alerts
// -------------------------
@warningText: #c09853;
@warningBackground: #fcf8e3;
@warningBorder: darken(spin(@warningBackground, -10), 3%);
@errorText: #b94a48;
@errorBackground: #f2dede;
@errorBorder: darken(spin(@errorBackground, -10), 3%);
@successText: #468847;
@successBackground: #dff0d8;
@successBorder: darken(spin(@successBackground, -10), 5%);
@infoText: #3a87ad;
@infoBackground: #d9edf7;
@infoBorder: darken(spin(@infoBackground, -10), 7%);
// Tooltips and popovers
// -------------------------
@tooltipColor: #fff;
@tooltipBackground: #000;
@tooltipArrowWidth: 5px;
@tooltipArrowColor: @tooltipBackground;
@popoverBackground: #fff;
@popoverArrowWidth: 10px;
@popoverArrowColor: #fff;
@popoverTitleBackground: darken(@popoverBackground, 3%);
// Special enhancement for popovers
@popoverArrowOuterWidth: @popoverArrowWidth + 1;
@popoverArrowOuterColor: rgba(0,0,0,.25);
// GRID
// --------------------------------------------------
// Default 940px grid
// -------------------------
@gridColumns: 12;
@gridColumnWidth: 60px;
@gridGutterWidth: 20px;
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
// 1200px min
@gridColumnWidth1200: 70px;
@gridGutterWidth1200: 30px;
@gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
// 768px-979px
@gridColumnWidth768: 42px;
@gridGutterWidth768: 20px;
@gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
// Fluid grid
// -------------------------
@fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
@fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
// 1200px min
@fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
@fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
// 768px-979px
@fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
@fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);

19
lang/paquet-theme_bs4superhero_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_bs4superhero
// Langue: fr
// Date: 17-04-2020 15:56:49
// Items: 2
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// T
'theme_bs4superhero_description' => 'The brave and the blue',
'theme_bs4superhero_slogan' => 'The brave and the blue',
);
?>

18
paquet.xml

@ -0,0 +1,18 @@
<paquet
prefix="theme_bs4superhero"
categorie="theme"
version="2.1.2"
etat="stable"
compatibilite="[3.2.0;]"
logo="vignette.png"
>
<nom>Superhero</nom>
<!-- The brave and the blue -->
<auteur>Cedric</auteur>
<licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GPL 3</licence>
<utilise nom="spiprv2" compatibilite="[2.0.0;[" />
</paquet>

13
plugin.xml

@ -1,13 +0,0 @@
<plugin>
<nom>Superhero</nom>
<version>2.1.2</version>
<etat>test</etat>
<auteur>Cedric</auteur>
<licence>GPL</licence>
<prefix>theme_bssuperhero</prefix>
<description>Batman meets... Aquaman?</description>
<icon>vignette.png</icon>
<necessite id="SPIP" version="[3.0.0;3.1.99]" />
<utilise id="spipr" version="[0.1.0-dev;]" />
<categorie>theme</categorie>
</plugin>

BIN
vignette.png

Before

Width: 200  |  Height: 150  |  Size: 7.7 KiB

After

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

Loading…
Cancel
Save