Browse Source

Conversion du theme Flatly a BootStrap4/Spipr-v2

master
Cerdic 1 year ago
parent
commit
f89730f2ae
  1. 253
      css/_bootswatch.scss
  2. 189
      css/_variables.scss
  3. 605
      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. 62
      css/theme.scss
  12. 300
      css/variables.less
  13. BIN
      img/glyphicons-halflings-white.png
  14. BIN
      img/glyphicons-halflings.png
  15. 19
      lang/paquet-theme_bs4flatly_fr.php
  16. 18
      paquet.xml
  17. 13
      plugin.xml
  18. BIN
      vignette.png

253
css/_bootswatch.scss

@ -0,0 +1,253 @@
// Flatly 4.3.1
// Bootswatch
// Variables ===================================================================
// see fonts.css
//$web-font-path: "https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=swap" !default;
//@import url($web-font-path);
// Navbar =======================================================================
.bg-primary {
.navbar-nav .active > .nav-link {
color: $success !important;
}
}
.bg-dark {
background-color: $success !important;
&.navbar-dark .navbar-nav {
.nav-link:focus,
.nav-link:hover,
.active > .nav-link {
color: $primary !important;
}
}
}
// Buttons =====================================================================
.btn {
&-secondary,
&-secondary:hover,
&-warning,
&-warning:hover {
color: #fff;
}
}
// Typography ==================================================================
// Tables ======================================================================
.table {
&-primary,
&-secondary,
&-success,
&-info,
&-warning,
&-danger {
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 =======================================================================
// Navs ========================================================================
.nav-tabs {
.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: $primary;
}
}
.pagination {
a:hover {
text-decoration: none;
}
}
// Indicators ==================================================================
.close {
text-decoration: none;
opacity: 0.4;
&:hover,
&:focus {
opacity: 1;
}
}
.badge {
&-secondary,
&-warning {
color: #fff;
}
}
.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($body-bg, $value, 15%), $value) repeat-x;
} @else {
background-color: $value;
}
}
}
&-light {
&,
& a,
& .alert-link {
color: $body-color;
}
}
}
// Progress bars ===============================================================
// Containers ==================================================================
.modal,
.toast {
.close {
color: $black;
&:not(:disabled):not(.disabled):hover,
&:not(:disabled):not(.disabled):focus {
color: $black;
}
}
}

189
css/_variables.scss

@ -0,0 +1,189 @@
// Flatly 4.3.1
// Bootswatch
//
// Color system
//
$white: #fff !default;
$gray-100: #f8f9fa !default;
$gray-200: #ecf0f1 !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #b4bcc2 !default;
$gray-600: #95a5a6 !default;
$gray-700: #7b8a8b !default;
$gray-800: #343a40 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #2C3E50 !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #e83e8c !default;
$red: #E74C3C !default;
$orange: #fd7e14 !default;
$yellow: #F39C12 !default;
$green: #18BC9C !default;
$teal: #20c997 !default;
$cyan: #3498DB !default;
$primary: $blue !default;
$secondary: $gray-600 !default;
$success: $green !default;
$info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: $gray-200 !default;
$dark: $gray-700 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
$enable-caret: true !default;
$enable-rounded: true !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;
$yiq-contrasted-threshold: 175 !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-color: $gray-800 !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: $success !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 * 3 !default;
$h2-font-size: $font-size-base * 2.5 !default;
$h3-font-size: $font-size-base * 2 !default;
$h4-font-size: $font-size-base * 1.1 !default;
$h5-font-size: $font-size-base !default;
$headings-font-family: $font-family-sans-serif;
$headings-line-height: 1.1 !default;
$headings-font-weight: 700;
$blockquote-font-size: $font-size-base !default;
// Tables
$table-accent-bg: $gray-200 !default;
// Dropdowns
$dropdown-link-color: $gray-700 !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-600 !default !default;
$nav-tabs-border-color: $gray-200 !default;
// Navbar
$navbar-padding-y: 1rem !default;
$navbar-dark-color: $white !default;
$navbar-dark-hover-color: $success !default;
$navbar-dark-hover-bg: transparent !default;
$navbar-dark-active-bg: transparent !default;
// Pagination
$pagination-color: $white !default;
$pagination-bg: $success !default;
$pagination-border-width: 0 !default;
$pagination-border-color: transparent !default;
$pagination-hover-color: $white !default;
$pagination-hover-bg: darken($success, 15%) !default;
$pagination-hover-border-color: transparent !default;
$pagination-active-bg: $pagination-hover-bg !default;
$pagination-active-border-color: transparent !default;
$pagination-disabled-color: $gray-200 !default;
$pagination-disabled-bg: lighten($success, 15%) !default;
$pagination-disabled-border-color: transparent !default;
// List group
$list-group-hover-bg: $gray-200 !default;
$list-group-disabled-bg: $gray-200 !default;
// Close
$close-color: $white !default;
$close-text-shadow: none !default;
@import "bootstrap/css/_variables";

605
css/bootswatch.less

@ -1,605 +0,0 @@
// Flatness by Jenil (www.jgog.in)
// Bootswatch 2.3.2
// -----------------------------------------------------
// TYPOGRAPHY
// --------------------------------------------------
@import url("http://fonts.googleapis.com/css?family=Lato:400,700,900,400italic");
h1 {
font-size: 48px;
font-weight: 900;
}
h2 {
font-size: 36px;
font-weight: 700;
}
h3 {
font-size: 28px;
font-weight: 700;
}
h4 {
font-size: 24px;
font-weight: 500;
}
h5 {
font-size: 16px;
font-weight: 500;
}
h6 {
font-size: 13px;
font-weight: 500;
text-transform: none;
}
p {
margin-bottom: 1em;
}
// SCAFFOLDING
// --------------------------------------------------
.page-header {
border-bottom: none;
}
// NAVBAR
// --------------------------------------------------
.navbar {
.brand {
text-shadow: none;
&:hover {
color: @linkColorHover;
}
}
.navbar-inner {
.box-shadow(none);
}
.nav > li > a {
text-shadow: none;
}
.nav > .active > a,
.nav > .active > a:hover,
.nav > .active > a:focus {
.box-shadow(none);
}
.navbar-search .search-query {
border: none;
.box-shadow(none);
line-height: normal;
}
.btn-navbar {
background-image: none;
.box-shadow(none);
}
.btn, .btn-group {
margin-top: 6px;
}
&-inverse {
.brand:hover {
color: @blueDark;
}
.navbar-search .search-query {
border-color: transparent;
.box-shadow(none);
line-height: normal;
color: @textColor;
&:focus {
padding: 4px 14px;
color: @textColor;
}
}
}
}
div.subnav {
border-color: transparent;
background-image: none;
background-color: @grayLighter;
.box-shadow(none);
&-fixed {
top: @navbarHeight;
}
.nav > li > a {
border-color: transparent;
.box-shadow(none);
color: @textColor;
}
.nav > .active > a,
.nav > .active > a:hover {
border-color: transparent;
background-color: darken(@grayLighter, 10%);
.box-shadow(none);
color: @textColor;
}
}
// NAVIGATION
// --------------------------------------------------
.nav-list {
& > li > a,
& > .active > a,
.nav-header {
text-shadow: none;
}
.divider {
background: none;
border-bottom: 2px solid @dropdownDividerBottom;
}
}
.nav-pills {
.open .dropdown-toggle {
background-color: @blueDark;
}
}
.pagination {
ul {
.box-shadow(none);
& > li > a {
background-color: @green;
border-color: transparent;
color: @white;
&:hover {
background-color: lighten(@green, 10%);
}
}
& > .active > a,
& > .active > a:hover {
background-color: @paginationActiveBackground;
color: @textColor;
}
& > .disabled > a,
& > .disabled > a:hover {
background-color: lighten(@green, 10%);
color: @white;
}
}
}
.pager {
li > a,
li > span {
background-color: @green;
border: none;
color: @white;
&:hover {
background-color: lighten(@green, 10%);
}
}
.disabled > a,
.disabled > span,
.disabled > a:hover,
.disabled > span:hover {
background-color: lighten(@green, 10%);
color: @white;
}
}
.breadcrumb {
& > li {
text-shadow: none;
}
}
// BUTTONS
// --------------------------------------------------
.btn {
padding: 9px 20px;
border: none;
background-image: none;
color: @white;
text-decoration: none;
text-shadow: none;
.box-shadow(none);
-webkit-transition: 0.25s;
-moz-transition: 0.25s;
transition: 0.25s;
&:hover,
&:focus {
color: white;
-webkit-transition: 0.25s;
-moz-transition: 0.25s;
transition: 0.25s;
}
&:active,
&.active {
.box-shadow(none);
color: rgba(255, 255, 255, 0.75);
}
&.disabled,
&[disabled] {
color: white;
}
&-large {
padding: @paddingLarge;
}
&-small {
padding: @paddingSmall;
}
&-mini {
padding: @paddingMini;
}
}
// TABLES
// -----------------------------------------------------
.table tbody tr {
&.success > td,
&.error > td,
&.warning > td,
&.info > td {
color: @white;
}
}
// FORMS
// --------------------------------------------------
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
padding: 7px 6px;
border: 2px solid #dce4ec;
text-indent: 1px;
.border-radius(@inputBorderRadius);
.box-shadow(none);
.placeholder(#acb6c0);
&:focus {
border-color: #1abc9c;
.box-shadow(none);
}
}
.input-prepend {
.add-on:first-child,
.btn:first-child {
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
}
.input-append {
input,
select,
.uneditable-input {
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
+ .btn-group .btn:last-child {
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
.add-on:last-child,
.btn:last-child,
.btn-group:last-child > .dropdown-toggle {
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
.input-prepend,
.input-append {
input,
select,
.uneditable-input {
.border-radius(0);
+ .btn-group .btn {
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
.add-on:first-child,
.btn:first-child {
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
.add-on:last-child,
.btn:last-child {
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
.input-append,
.input-prepend {
.add-on {
padding: 9px 5px;
text-shadow: none;
border: none;
}
}
.control-group.error,
.control-group.error input:focus,
.control-group.error textarea:focus {
border-color: #e74c3c;
.box-shadow(none);
}
.control-group.success,
.control-group.success input:focus,
.control-group.success textarea:focus {
border-color: #2ecc71;
.box-shadow(none);
}
.control-group.warning,
.control-group.warning input:focus,
.control-group.warning textarea:focus {
border-color: #f1c40f;
.box-shadow(none);
}
.control-group.info,
.control-group.info input:focus,
.control-group.info textarea:focus {
border-color: #3498db;
.box-shadow(none);
}
input[disabled],
input[readonly],
textarea[disabled],
textarea[readonly] {
background-color: #eaeded;
border-color: transparent;
color: #cad2d3;
cursor: default;
}
input[type="file"]{
line-height: 16px;
}
legend {
border-bottom: none;
color: @textColor;
}
.form-actions {
border-top: none;
.border-radius(@baseBorderRadius);
background-color: darken(@grayLighter, 5%);
}
// DROPDOWNS
// --------------------------------------------------
// ALERTS, LABELS, BADGES
// --------------------------------------------------
.alert {
background-color: @orange;
color: @white;
text-shadow: none;
h1, h2, h3, h4, h5, h6 {
color: @white;
}
&-error {
background-color: @red;
}
&-success {
background-color: @green;
}
&-info {
background-color: @blue;
}
}
.label {
padding: 6px 10px;
text-shadow: none;
}
.badge {
padding: 6px 10px;
.border-radius(@borderRadiusLarge);
text-shadow: none;
}
// MISC
// --------------------------------------------------
.well {
border: none;
.box-shadow(none);
}
.progress {
background: @grayLighter;
border-radius: 32px;
height: 12px;
.box-shadow(none);
.bar {
background-color: @blueDark;
background-image: none;
.box-shadow(none);
}
.bar + .bar {
.box-shadow(none);
}
&-striped .bar {
#gradient > .striped(@blueDark);
}
&-success .bar,
&-success.progress-striped .bar,
.bar-success {
background-color: @green;
}
&-warning .bar,
&-warning.progress-striped .bar,
.bar-warning {
background-color: @yellow;
}
&-danger .bar,
&-danger.progress-striped .bar,
.bar-danger {
background-color: @red;
}
&-info .bar,
&-info.progress-striped .bar,
.bar-info {
background-color: @blue;
}
}
.tooltip {
&.in {
opacity: 1;
}
}
.popover {
color: @white;
&-title {
border-bottom: 2px solid @dropdownDividerBottom;
}
}
.modal {
&-header {
background-color: @navbarBackground;
border-bottom: none;
color: @white;
}
&-footer {
background-color: @grayLighter;
border-top: none;
.box-shadow(none);
}
}
.close {
text-shadow: none;
}
// MEDIA QUERIES
// --------------------------------------------------
@media (max-width: 767px) {
div.subnav {
.nav > li:first-child > a,
.nav > li + li > a {
border-color: transparent;
&:hover {
background-color: darken(@grayLighter, 10%);
}
}
.nav > li:last-child > a {
border-radius: 0 0 4px 4px;
}
}
.input-append,
.input-prepend {
.add-on,.btn {
padding: 5px;
}
}
}
@media (max-width: 979px) {
.navbar {
.nav-collapse .nav > li > a {
color: @white;
&:hover {
background-color: @green;
}
}
}
}

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

62
css/theme.scss

@ -0,0 +1,62 @@
@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
}
}
.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;
}
}
}

300
css/variables.less

@ -1,300 +0,0 @@
// Flatness by Jenil (www.jgog.in)
// Bootswatch 2.3.2
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
// -------------------------
@black: #000;
@grayDarker: #222;
@grayDark: #7b8a8b;
@gray: #95A5A6;
@grayLight: #b4bcc2;
@grayLighter: #ECF0F1;
@white: #fff;
// Accent colors
// -------------------------
@blue: #3498DB;
@blueDark: #2C3E50;
@green: #18BC9C;
@red: #E74C3C;
@yellow: #e6bb0d;
@orange: #F39C12;
@pink: #ff6699;
@purple: #8E44AD;
// Scaffolding
// -------------------------
@bodyBackground: @white;
@textColor: @blueDark;
// Links
// -------------------------
@linkColor: #1ABC9C;
@linkColorHover: lighten(@linkColor, 5%);
// Typography
// -------------------------
@sansFontFamily: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
@monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
@baseFontSize: 15px;
@baseFontFamily: @sansFontFamily;
@baseLineHeight: 20px;
@altFontFamily: @serifFontFamily;
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
@headingsFontWeight: bold; // instead of browser default, bold
@headingsColor: inherit; // 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: 18px 36px; // 44px
@paddingSmall: 2px 12px; // 26px
@paddingMini: 1px 8px; // 24px
@baseBorderRadius: 6px;
@borderRadiusLarge: 10px;
@borderRadiusSmall: 3px;
// Tables
// -------------------------
@tableBackground: transparent; // overall background-color
@tableBackgroundAccent: #f9f9f9; // for striping
@tableBackgroundHover: #f5f5f5; // for hover
@tableBorder: #ddd; // table and cell border
// Buttons
// -------------------------
@btnBackground: @grayLight;
@btnBackgroundHighlight: lighten(@btnBackground, 10%);
@btnBorder: #ddd;
@btnPrimaryBackground: @textColor;
@btnPrimaryBackgroundHighlight: lighten(@btnPrimaryBackground, 10%);
@btnInfoBackground: @blue;
@btnInfoBackgroundHighlight: lighten(@btnInfoBackground, 10%);
@btnSuccessBackground: @green;
@btnSuccessBackgroundHighlight: lighten(@btnSuccessBackground, 10%);
@btnWarningBackground: @orange;
@btnWarningBackgroundHighlight: lighten(@btnWarningBackground, 10%);
@btnDangerBackground: @red;
@btnDangerBackgroundHighlight: lighten(@btnDangerBackground, 10%);
@btnInverseBackground: @grayDarker;
@btnInverseBackgroundHighlight: lighten(@btnInverseBackground, 10%);
// Forms
// -------------------------
@inputBackground: @white;
@inputBorder: #dce4ec;
@inputBorderRadius: @baseBorderRadius;
@inputDisabledBackground: #eaeded;
@formActionsBackground: #f5f5f5;
@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
// Dropdowns
// -------------------------
@dropdownBackground: @blueDark;
@dropdownBorder: rgba(0,0,0,0);
@dropdownDividerTop: rgba(0,0,0,0.2);
@dropdownDividerBottom: rgba(0,0,0,0.2);
@dropdownLinkColor: @white;
@dropdownLinkColorHover: @white;
@dropdownLinkColorActive: @dropdownLinkColor;
@dropdownLinkBackgroundActive: @green;
@dropdownLinkBackgroundHover: @green;
// 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.png";
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
// Input placeholder text color
// -------------------------
@placeholderText: @grayLight;
// Hr border color
// -------------------------
@hrBorder: @grayLighter;
// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset: 180px;
// Wells
// -------------------------
@wellBackground: @grayLighter;
// Navbar
// -------------------------
@navbarCollapseWidth: 979px;
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
@navbarHeight: 50px;
@navbarBackgroundHighlight: @textColor;
@navbarBackground: @textColor;
@navbarBorder: darken(@navbarBackground, 5%);
@navbarText: @white;
@navbarLinkColor: @white;
@navbarLinkColorHover: @linkColor;
@navbarLinkColorActive: @linkColor;
@navbarLinkBackgroundHover: transparent;
@navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
@navbarBrandColor: @navbarLinkColor;
// Inverted navbar
@navbarInverseBackground: @green;
@navbarInverseBackgroundHighlight: @green;
@navbarInverseBorder: darken(@green, 5%);
@navbarInverseText: @white;
@navbarInverseLinkColor: @white;
@navbarInverseLinkColorHover: @blueDark;
@navbarInverseLinkColorActive: @blueDark;
@navbarInverseLinkBackgroundHover: transparent;
@navbarInverseLinkBackgroundActive: darken(@navbarInverseBackground, 5%);
@navbarInverseSearchBackground: @white;
@navbarInverseSearchBackgroundFocus: @white;
@navbarInverseSearchBorder: @grayLight;
@navbarInverseSearchPlaceholderColor: @gray;
@navbarInverseBrandColor: @navbarInverseLinkColor;
// Pagination
// -------------------------
@paginationBackground: #fff;
@paginationBorder: #ddd;
@paginationActiveBackground: @grayLighter;
// Hero unit
// -------------------------
@heroUnitBackground: @grayLighter;
@heroUnitHeadingColor: inherit;
@heroUnitLeadColor: inherit;
// Form states and alerts
// -------------------------
@warningText: @yellow;
@warningBackground: @yellow;
@warningBorder: transparent;
@errorText: @red;
@errorBackground: @red;
@errorBorder: transparent;
@successText: @green;
@successBackground: @green;
@successBorder: transparent;
@infoText: @blue;
@infoBackground: @blue;
@infoBorder: transparent;
// Tooltips and popovers
// -------------------------
@tooltipColor: #fff;
@tooltipBackground: @blueDark;
@tooltipArrowWidth: 5px;
@tooltipArrowColor: @tooltipBackground;
@popoverBackground: @blueDark;
@popoverArrowWidth: 10px;
@popoverArrowColor: @blueDark;
@popoverTitleBackground: @blueDark;
// 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);

BIN
img/glyphicons-halflings-white.png

Before

Width: 469  |  Height: 159  |  Size: 8.6 KiB

BIN
img/glyphicons-halflings.png

Before

Width: 469  |  Height: 159  |  Size: 12 KiB

19
lang/paquet-theme_bs4flatly_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_bs4flatly_description' => 'Flat an modern',
'theme_bs4flatly_slogan' => 'Flat an modern',
);
?>

18
paquet.xml

@ -0,0 +1,18 @@
<paquet
prefix="theme_bs4flatly"
categorie="theme"
version="2.3.3"
etat="stable"
compatibilite="[3.2.0;]"
logo="vignette.png"
>
<nom>Flatly</nom>
<!-- Flat an modern -->
<auteur>MIL</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>Flatly</nom>
<version>2.3.3</version>
<etat>stable</etat>
<auteur>MIL</auteur>
<licence>GPL</licence>
<prefix>theme_bsflatly</prefix>
<description>Flat an modern</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.9 KiB

After

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

Loading…
Cancel
Save