Browse Source

Conversion a BS4/Spipr-v2

master
Cerdic 2 years ago
parent
commit
f1f09a75ff
  1. 45
      body.html
  2. 65
      css/_layout.scss
  3. 160
      css/_variables.scss
  4. 445
      css/bootswatch.less
  5. 28
      css/layouts.less
  6. 54
      css/spip.comment.less
  7. 135
      css/spip.comment.scss
  8. 26
      css/theme.less
  9. 106
      css/theme.scss
  10. 299
      css/variables.less
  11. 19
      lang/paquet-theme_bs4readable_fr.php
  12. 18
      paquet.xml
  13. 13
      plugin.xml
  14. BIN
      vignette-old.png
  15. BIN
      vignette.png

45
body.html

@ -0,0 +1,45 @@
<body>
<div class="page">
<div class="container">
<div class="header" id="header">
<INCLURE{fond=header/#ENV{type-page},env} />
</div>
</div>
[<div class="navbar navbar-expand-md navbar-dark bg-primary" id="nav">
<div class="container">
(#INCLURE{fond=inclure/nav,env}|navbar_responsive)
</div>
</div>]
<div class="container">
<INCLURE{fond=breadcrumb/#ENV{type-page},env} />
<div class="row justify-content-between">
<div class="col-content col-md-8 col-lg-7">
<div class="content primary" id="content">
<INCLURE{fond=content/#ENV{type-page},env} />
</div>
</div>
<div class="col-secondary col-md-4">
<div class="row">
<div class="col-12 col-sm-6 col-md-12">
<div class="aside secondary" id="aside">
<INCLURE{fond=aside/#ENV{type-page},env} />
</div>
</div>
<div class="col-12 col-sm-6 col-md-12">
<div class="extra secondary" id="extra">
<INCLURE{fond=extra/#ENV{type-page},env} />
</div>
</div>
</div>
</div>
</div>
<div class="footer clearfix" id="footer">
<INCLURE{fond=footer/#ENV{type-page},env} />
</div>
</div>
</div>
</body>

65
css/_layout.scss

@ -0,0 +1,65 @@
html {
font-size: 112.5%; // 18px par defaut
}
@include media-breakpoint-up(xxl) {
html {
font-size: 125%; // 20px en xxl
}
}
@include media-breakpoint-down(sm) {
html {
font-size: 100%; // 16px en <sm
}
}
@include media-breakpoint-up(lg) {
#content {
margin-right: -$grid-gutter-width;
}
.secondary {
margin-left: -$grid-gutter-width;
}
}
body {
background-image: url(img/background.png);
background-repeat: repeat;
}
.header {
position: relative;
@include media-breakpoint-up(md) {
.accueil {
flex-basis: 8 * 100% / 12;
max-width: 8 * 100% / 12;
}
.menu-lang {
flex-basis: 4 * 100% / 12;
max-width: 4 * 100% / 12;
}
}
@include media-breakpoint-up(lg) {
.accueil {
flex-basis: 7 * 100% / 12;
max-width: 7 * 100% / 12;
}
.menu-lang {
.formulaire_menu_lang {
margin-left: -$grid-gutter-width;
width: auto;
}
}
}
@include media-breakpoint-down(xs) {
.formulaire_menu_lang {
margin-top: -2rem;
margin-bottom: 0.5rem;
label {
float: right;
}
}
}
}

160
css/_variables.scss

@ -0,0 +1,160 @@
// Cerulean 4.3.1
// Bootswatch
//
// Color system
//
$white: #fff !default;
$gray-100: #f7f7f1 !default;
$gray-200: #e9e9e2 !default;
$gray-300: #CDCDC4 !default;
$gray-400: #999 !default;
$gray-500: #888 !default;
$gray-600: #777 !default;
$gray-700: #555 !default;
$gray-800: #333 !default;
$gray-900: #282828 !default;
$black: #000 !default;
$blue: #0064cd !default;
$indigo: #6610f2 !default;
$purple: #7a43b6 !default;
$pink: #c3325f !default;
$red: #9C0001 !default;
$orange: #f89406 !default;
$yellow: #ffc40d !default;
$green: #46a546 !default;
$teal: #20c997 !default;
$cyan: #049cdb !default;
$primary: $red !default;
$secondary: $gray-300 !default;
$success: #468847 !default;
$info: #3a87ad !default;
$warning: #c09853 !default;
$danger: #b94a48 !default;
$light: $gray-100 !default;
$dark: $gray-900 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
$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;
$enable-admin-buttons: true;
// 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-100;
$body-color: $gray-900 !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,
xxl: 1440px
) !default;
// Grid containers
//
// Define the maximum width of `.container` for different screen sizes.
$container-max-widths: (
sm: 100vw,
md: 750px,
lg: 960px,
xl: 1140px,
xxl: 1400px
) !default;
// Fonts
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
$font-family-serif: Palatino, Georgia, "Times New Roman", Times, serif;
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
$font-family-base: $font-family-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 !default;
$h2-font-size: $font-size-base * 1.5 !default;
$h3-font-size: $font-size-base * 1.25 !default;
$h4-font-size: $font-size-base * 1.1 !default;
$h5-font-size: $font-size-base !default;
$headings-font-family: inherit;
$headings-line-height: 1.1 !default;
$headings-font-weight: 700;
$headings-color: inherit !default;
$blockquote-font-size: $font-size-base !default;
// Dropdowns
$dropdown-link-color: $body-color !default;
$dropdown-link-hover-color: $white !default;
$dropdown-link-hover-bg: $primary !default;
// Navbar
$navbar-nav-link-padding-x: 0.75rem;
$navbar-dark-color: rgba($white,.9) !default;
$navbar-dark-hover-color: $white !default;
$navbar-dark-active-color: $white !default;
$navbar-dark-hover-bg: rgba($dark,0.15) !default;
$navbar-dark-active-bg: rgba($dark,0.25) !default;
$breadcrumb-bg: $white;
$breadcrumb-margin-bottom: $spacer;
$jumbotron-bg: $white;
$well-bg: $white;
$card-bg: $white;
$form-bg: $white;
$text-muted: $gray-400;
$pagination-active-color: $gray-600 !default;
$pagination-active-bg: $gray-100 !default;
$pagination-active-border-color: $gray-300 !default;
$code-color: $gray-600;
@import "bootstrap/css/_variables";

445
css/bootswatch.less

@ -1,445 +0,0 @@
// Bootswatch.less
// Swatch: Readable
// Version: 2.1.1
// -----------------------------------------------------
// TYPOGRAPHY
// -----------------------------------------------------
body {
word-spacing: -0.05em;
}
code, pre {
.border-radius(0);
background-color: @white;
}
.muted, .help-block, .uneditable-input {
color: @grayLight;
}
blockquote, small {
color: @gray;
}
// SCAFFOLDING
// -----------------------------------------------------
.page-header {
border-bottom: 2px solid @grayLighter;
}
// NAVBAR
// -----------------------------------------------------
.navbar {
.brand {
font-weight: bold;
line-height: 1em;
&:hover {
color: @linkColorHover;
}
}
.nav > li > a {
text-shadow: none;
padding: 15px 15px 7px;
}
.nav > .active > a,
.nav > .active > a:hover,
.nav > .active > a:focus {
.box-shadow(none);
}
.navbar-search {
margin-top: 11px;
}
.search-query {
border: 1px solid #D4D4D4;
.border-radius(0);
color: @textColor;
background-color: @white;
}
.navbar-text {
margin: 15px 15px 0;
line-height: @baseLineHeight;
}
.divider-vertical {
border-right: 1px solid rgba(128, 128, 128, 0.3);
border-left: none;
}
&-inverse {
.brand:hover {
color: @white;
}
}
}
@media (max-width: @navbarCollapseWidth) {
.navbar .nav-collapse {
.nav li:first-child > a {
margin-bottom: 10px;
}
.nav li > a {
color: @linkColor;
.border-radius(0);
font-weight: normal;
&:hover {
background-color: rgba(0, 0, 0, 0.05);
color: @linkColorHover;
}
}
.navbar-form,
.navbar-search {
border-top: 1px solid rgba(128, 128, 128, 0.2);
border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.nav-header {
color: @grayLight;
}
}
.navbar-inverse .nav-collapse {
.nav li > a {
color: @grayLighter;
}
.nav li > a:hover {
background-color: rgba(0, 0, 0, 0.2) !important;
color: @white;
}
}
}
div.subnav {
.box-shadow(none);
.border-radius(0);
background-color: @white;
background-image: none;
.nav {
padding: 0;
}
.nav > li.active > a,
.nav > li:active > a {
color: @linkColor;
.box-shadow(none);
background-color: transparent;
}
.nav > li > a:hover,
.nav > li.active > a:hover,
.nav > li:active > a:hover {
background-color: transparent;
.box-shadow(none);
color: @linkColorHover;
}
&-fixed {
top: @navbarHeight;
}
}
// NAV
// -----------------------------------------------------
.nav .dropdown .caret {
opacity: 1;
}
.nav-tabs {
li > a {
.border-radius(0);
}
li > a:hover {
background-color: @bodyBackground;
}
li.active > a,
li.active > a:hover {
color: @textColor;
background-color: @bodyBackground;
}
}
.nav-tabs.nav-stacked {
li > a {
background-color: @white;
}
li.active > a,
li.active > a:hover,
li > a:hover {
background-color: #F5F5F5;
}
li:first-child > a,
li:last-child > a {
.border-radius(0);
}
}
.nav-pills {
li > a {
.border-radius(0);
}
li > a:hover {
background-color: @bodyBackground;
}
li.active > a,
li.active > a:hover {
color: @textColor;
background-color: @bodyBackground;
}
.open .dropdown-toggle {
background-color: transparent;
color: @linkColor;
border-left: 1px solid whiteSmoke;
border-right: 1px solid #E5E5E5;
}
li.dropdown.open .dropdown-toggle .caret {
border-top-color: @linkColor;
}
li.dropdown.open .dropdown-toggle:hover .caret {
border-top-color: @linkColorHover;
}
}
.nav-list {
li > a:hover,
li.active > a,
li.active > a:hover {
background-color: transparent;
text-shadow: none;
}
li.active > a,
li.active > a:hover {
color: @textColor;
}
[class^="icon-"] {
margin-top: 3px;
opacity: 0.8;
}
.divider {
margin: 1px;
}
}
.breadcrumb {
.border-radius(0);
background-color: transparent;
background-image: none;
padding-left: 0;
padding-right: 0;
}
.pagination {
ul {
.box-shadow(none);
}
li > a,li > span {
padding: 10px 14px;
}
li.active > a,
li.active > a:hover {
color: @textColor;
background-color: #F5F5F5;
}
li > a,
li.disabled > a,
li.disabled > a:hover {
background-color: @white;
}
li:first-child > a,
li:last-child > a {
.border-radius(0);
}
}
.pager {
a {
.border-radius(0);
}
}
// BUTTONS
// -----------------------------------------------------
.btn-primary {
.buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
}
.btn [class^="icon-"],
.btn [class*=" icon-"] {
margin-top: 4px;
}
.btn-large [class^="icon-"],
.btn-large [class*=" icon-"] {
margin-top: 6px;
margin-right: 2px;
}
.btn-small [class^="icon-"],
.btn-small [class*=" icon-"] {
margin-top: 3px;
}
.btn .caret {
margin-top: 13px;
}
// TABLES
// -----------------------------------------------------
.table-bordered {
.border-radius(0);
}
.table-bordered thead:first-child tr:first-child th:first-child,
.table-bordered tbody:first-child tr:first-child td:first-child {
.border-radius(0);
}
.table-bordered thead:last-child tr:last-child th:first-child,
.table-bordered tbody:last-child tr:last-child td:first-child {
.border-radius(0);
}
// FORMS
// -----------------------------------------------------
input, button, select, textarea {
font-family: @baseFontFamily;
}
input, textarea, select {
color: @textColor;
}
select, input[type="file"] {
height: auto;
line-height: normal;
}
.form-actions {
border-top: 1px solid #D4D4D4;
padding-top: 2em;
}
// DROPDOWNS
// -----------------------------------------------------
.dropdown-menu {
border: 1px solid #D4D4D4;
.border-radius(0);
.box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
.divider {
margin: 5px 1px;
}
}
// ALERTS, LABELS, BADGES
// -----------------------------------------------------
.alert,
.label, .label:hover {
.border-radius(0);
border: 1px solid #D4D4D4;
color: @textColor;
text-shadow: none;
}
.alert-heading {
color: @textColor;
text-shadow: none;
}
.label, .label:hover {
background-color: @white;
font-weight: normal;
font-size: @baseFontSize;
padding: 4px;
}
.label-important, .label-important:hover { background-color: @errorBackground; }
.label-warning, .label-warning:hover { background-color: @warningBackground; }
.label-success, .label-success:hover { background-color: @successBackground; }
.label-info, .label-info:hover { background-color: @infoBackground; }
// MISC
// -----------------------------------------------------
.well, .hero-unit {
.box-shadow(none);
border: 1px solid #D4D4D4;
.border-radius(0);
}
.thumbnail {
background-color: @white;
}
.thumbnail,
.thumbnail > img {
.border-radius(0);
.box-shadow(none);
}
.modal {
background-color: @white;
.border-radius(0);
}
.modal-header {
border-bottom: none;
}
.modal-footer {
background-color: @bodyBackground;
}
// MEDIA QUERIES
// -----------------------------------------------------

28
css/layouts.less

@ -1,28 +0,0 @@
@import "bootstrap/css/layouts.less";
@import "css/layoutgala/33";
@import "css/layoutgala/27";
#layoutgala33 > .core(8,4,4,@gridColumnWidth,@gridGutterWidth);
#content > .inner {padding-right: @gridColumnWidth;}
.page>.container {
padding-left: 0;
padding-right: 0;
}
@media (min-width: 1200px) {
#layoutgala33 > .core(7,5,5,@gridColumnWidth1200,@gridGutterWidth1200);
#content > .inner {padding-right: @gridColumnWidth1200+@gridGutterWidth1200;}
}
@media (min-width: 768px) and (max-width: 979px) {
#layoutgala33 > .core(8,4,4,@gridColumnWidth768,@gridGutterWidth768);
#content > .inner {padding-right: 0;}
}
@media (max-width: 767px) {
#layoutgala27 > .core(auto,48%,48%,@gridColumnWidth768,@gridGutterWidth768);
#content > .inner {padding-right: 0;}
}
@media (max-width: 450px) {
div#aside {float:none;width:100%;}
div#extra {float:none;width:100%;}
}

54
css/spip.comment.less

@ -1,54 +0,0 @@
/* Habillage des forums
---------------------------------------------- */
@import "css/variables.less";
@import "css/spip.variables.less";
@import "css/mixins.less";
/* * Habillage des forums */
//.comments { margin-bottom:/*@margin-bottom*/1.5em/*/@*/}
/* comments list */
.comments-items {list-style: none;margin-left: 0;}
//.comments-items {border-bottom: 1px solid #eee;}
.comments-items .comments-items {margin-left: @gridColumnWidth+@gridGutterWidth;}
.comments-items .comments-items .comments-items .comments-items .comments-items {margin-left: @gridGutterWidth;}
//.comments-items .comment-item {border-top: 1px solid #eee;}
//.comments-items .comment-item .comment-item {border-top: 0;}
.comment {
overflow:hidden;position: relative;padding-top: @emVertMargin/2; border-top : 1px solid @grayLighter;
padding-left: @gridColumnWidth+@gridGutterWidth;position: relative;
}
.comment-meta {color: @grayLight;padding-right: @baseLineHeight;}
.comment-meta a {.opacity(70);}
.comment-meta .spip_logos {position:absolute;left: 0;top:@emVertMargin/2;}
.comment-meta .permalink { position: absolute;right: 0;font-size: 2em;color:@grayLight;}
//.comment-item .comment-item .comment-meta {background : #f4f4f4;}
.comment-meta .forum-titre {display: block;}
.comment-content {background: transparent;max-height:60em;overflow:auto;overflow-x:none;}
.comment-reply { clear: both; text-align: right; margin-bottom:0;margin-top: -@emVertMargin/2;visibility: hidden;}
.comment:hover .comment-reply {visibility: visible;position: relative;}
/* avec plugin comments */
.comment-item:hover >.comment-reply {visibility: visible;position: relative;}
/* en thread */
.comments-thread .comment-item {margin-bottom:@emVertMargin;}
.comments-thread .comment-item .comment-item {margin-bottom:0;}
.comments-thread .permalink.in-reply-to {top:@emVertMargin;}
/* avec plugin comments */
//.comment-meta .permalink.picto {font-size:1em;right:/*@demi-margin-bottom*/0.75em/*/@*/;}
//.comment {position:relative;}
//.comment .spip-admin {position:absolute;left:0;bottom:0;visibility:hidden;}
//.comment:hover .spip-admin {visibility:visible;}
/* en list avec plugin comments */
.comment-meta .item {display:block;}
.comments-list .comment-meta .item {display: none;}
.boutons.modererforum {text-align: right;position: absolute;top: 0;right: @baseLineHeight;display: none;}
.comment:hover .boutons.modererforum {display: block;}

135
css/spip.comment.scss

@ -0,0 +1,135 @@
/* Habillage des forums
---------------------------------------------- */
@import "css/bootstrap-start";
/* * Habillage des forums */
//.comments { margin-bottom:/*@margin-bottom*/1.5em/*/@*/}
/* comments list */
.comments-items {
list-style: none;
margin-left: 0;
}
//.comments-items {border-bottom: 1px solid #eee;}
@each $bkpt in (xxl, xl, lg, md) {
@include media-breakpoint-down($bkpt) {
$col-width: ($grid-gutter-width + map_get($container-max-widths,$bkpt)) / 12;
.comments-items .comments-items {
margin-left: $col-width + $grid-gutter-width;
}
.comment {
padding-left: $col-width + $grid-gutter-width;
}
}
}
.comments-items .comments-items .comments-items .comments-items .comments-items {
margin-left: $grid-gutter-width;
}
//.comments-items .comment-item {border-top: 1px solid #eee;}
//.comments-items .comment-item .comment-item {border-top: 0;}
.comment {
overflow: hidden;
position: relative;
padding-top: $rem-vert-margin/2;
border-top: 1px solid $gray-300;
position: relative;
}
.comment-meta {
color: $gray-400;
padding-right: $spacer;
}
.comment-meta a {
opacity: 0.7
}
.comment-meta .spip_logos {
position: absolute;
left: 0;
top: $rem-vert-margin/2;
}
.comment-meta .permalink {
position: absolute;
right: 0;
font-size: 2em;
color: $gray-400;
}
//.comment-item .comment-item .comment-meta {background : #f4f4f4;}
.comment-meta .forum-titre {
display: block;
}
.comment-content {
background: transparent;
max-height: 60em;
overflow: auto;
overflow-x: none;
}
.comment-reply {
clear: both;
text-align: right;
margin-bottom: 0;
margin-top: -$rem-vert-margin/2;
visibility: hidden;
}
.comment:hover .comment-reply {
visibility: visible;
position: relative;
}
/* avec plugin comments */
.comment-item:hover > .comment-reply {
visibility: visible;
position: relative;
}
/* en thread */
.comments-thread .comment-item {
margin-bottom: $rem-vert-margin;
}
.comments-thread .comment-item .comment-item {
margin-bottom: 0;
}
.comments-thread .permalink.in-reply-to {
top: $rem-vert-margin;
}
/* avec plugin comments */
//.comment-meta .permalink.picto {font-size:1em;right:/*@demi-margin-bottom*/0.75em/*/@*/;}
//.comment {position:relative;}
//.comment .spip-admin {position:absolute;left:0;bottom:0;visibility:hidden;}
//.comment:hover .spip-admin {visibility:visible;}
/* en list avec plugin comments */
.comment-meta .item {
display: block;
}
.comments-list .comment-meta .item {
display: none;
}
.boutons.modererforum {
text-align: right;
position: absolute;
top: 0;
right: $spacer;
display: none;
}
.comment:hover .boutons.modererforum {
display: block;
}

26
css/theme.less

@ -1,26 +0,0 @@
@import "css/variables.less";
@import "css/spip.variables.less";
@import "css/mixins.less";
body {background-image: url(img/background.png);background-repeat: repeat;}
.header {position: relative;}
.header .accueil a {color: inherit;}
.header .spip_logos {float:left;margin: @paddingLarge;margin-left: 0;margin-top:0;}
#logo_site_spip {line-height: 1em;}
#slogan_site_spip {display: block;}
.header .formulaire_menu_lang {width: 100%;}
.header .formulaire_menu_lang select {width: 100%;}
.footer {
font-size: 0.85em;
text-align: center;
}
.breadcrumb {
background-color: transparent;
}
.cartouche {margin-bottom: @emVertMargin;}
.content-principal {.clearfix}

106
css/theme.scss

@ -0,0 +1,106 @@
@import "css/bootstrap-start";
@import "css/layout";
a {
@include hover-focus-active() {
background-color: $gray-200;
}
}
.header {
padding-top:$padding-y-lg;
position: relative;
.accueil a {
color: inherit;
}
.spip_logo {
float: left;
margin: $padding-y-lg $padding-x-lg;
margin-left: 0;
margin-top: 0;
}
}
#nav {
padding:0;
.navbar-nav {
margin-left: -$navbar-nav-link-padding-x;
.nav-item.active:first-child {
position: relative;
&:before {
content:'';
display: block;
position: absolute;
right:100%;
top:0;
height:100%;
left:-50vw;
background: $navbar-dark-active-bg;
}
}
}
}
#logo_site_spip {
line-height: 1em;
}
#slogan_site_spip {
display: block;
}
@include media-breakpoint-up(lg) {
.secondary .formulaire_spip {
padding: $spacer;
&.formulaire_recherche {
padding:0;
}
}
}
.footer {
font-size: $font-size-sm;
text-align: center;
}
.breadcrumb {
background-color: transparent;
padding: 0;
}
.cartouche {
margin-bottom: $rem-vert-margin;
}
.content-principal {
@include clearfix();
}
.spip_code,code , pre {
background-color: $white;
}
blockquote, small {
color: $gray-600;
}
.nav-list {
.nav-item > .nav-link:hover,
.nav-item.active > .nav-link,
.nav-item.active > .nav-link:hover {
background-color: transparent;
text-shadow: none;
}
.nav-item.active > .nav-link,
.nav-item.active > .nav-link:hover {
color: $body-color;
}
.divider {
margin: 1px;
}
}

299
css/variables.less

@ -1,299 +0,0 @@
//
// Variables
// Swatch: Readable
// Version: 2.1.1
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
// -------------------------
@black: #000;
@grayDarker: #282828;
@grayDark: #333;
@gray: #777;
@grayLight: #999;
@grayLighter: #CDCDCD;
@white: #fff;
// Accent colors
// -------------------------
@blue: #049cdb;
@blueDark: #0064cd;
@green: #46a546;
@red: #9C0001;
@yellow: #ffc40d;
@orange: #f89406;
@pink: #c3325f;
@purple: #7a43b6;
// Scaffolding
// -------------------------
@bodyBackground: #FAFDFA;
@textColor: @grayDarker;
// Links
// -------------------------
@linkColor: @red;
@linkColorHover: lighten(@linkColor, 8%);
// Typography
// -------------------------
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
@serifFontFamily: Palatino, Georgia, "Times New Roman", Times, serif;
@monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
@baseFontSize: 16px;
@baseFontFamily: @serifFontFamily;
@baseLineHeight: 24px;
@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: 11px 19px; // 42px
@paddingSmall: 4px 10px; // 28px
@paddingMini: 2px 6px; // 24px
@baseBorderRadius: 4px;
@borderRadiusLarge: 5px;
@borderRadiusSmall: 3px;
// Tables
// -------------------------
@tableBackground: transparent; // overall background-color
@tableBackgroundAccent: darken(@bodyBackground, 2%); // for striping
@tableBackgroundHover: darken(@bodyBackground, 4%); // for hover
@tableBorder: #ddd; // 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: @white;
@dropdownBorder: rgba(0,0,0,.2);
@dropdownDividerTop: #e5e5e5;
@dropdownDividerBottom: @white;
@dropdownLinkColor: @linkColor;
@dropdownLinkColorHover: @linkColorHover;
@dropdownLinkBackgroundHover: rgba(255,255,255,0);
@dropdownLinkColorActive: @dropdownLinkColor;
@dropdownLinkBackgroundActive: @linkColor;
// 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: @white;
// Navbar
// -------------------------
@navbarCollapseWidth: 767px;
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
@navbarHeight: 50px;
@navbarBackground: @bodyBackground;
@navbarBackgroundHighlight: @bodyBackground;
@navbarBorder: darken(@navbarBackground, 12%);
@navbarText: @textColor;
@navbarLinkColor: @textColor;
@navbarLinkColorHover: @linkColor;
@navbarLinkColorActive: @linkColor;
@navbarLinkBackgroundHover: transparent;
@navbarLinkBackgroundActive: @navbarBackground;
@navbarBrandColor: @navbarLinkColor;
// Inverted navbar
@navbarInverseBackground: @linkColor;
@navbarInverseBackgroundHighlight: lighten(@linkColor, 3%);
@navbarInverseBorder: darken(@linkColor, 3%);
@navbarInverseText: @grayLighter;
@navbarInverseLinkColor: @grayLighter;
@navbarInverseLinkColorHover: @white;
@navbarInverseLinkColorActive: @white;
@navbarInverseLinkBackgroundHover: transparent;
@navbarInverseLinkBackgroundActive: @navbarInverseBackground;
@navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus: @white;
@navbarInverseSearchBorder: @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor: @grayLighter;
@navbarInverseBrandColor: @navbarInverseLinkColor;
// Pagination
// -------------------------
@paginationBackground: #fff;
@paginationBorder: #ddd;
@paginationActiveBackground: #f5f5f5;
// Hero unit
// -------------------------
@heroUnitBackground: @white;
@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_bs4readable_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_bs4readable
// Langue: fr
// Date: 26-03-2020 11:53:13
// Items: 2
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// T
'theme_bs4readable_description' => 'Optimized for legibility',
'theme_bs4readable_slogan' => 'Optimized for legibility',
);
?>

18
paquet.xml

@ -0,0 +1,18 @@
<paquet
prefix="theme_bs4readable"
categorie="theme"
version="2.2.6"
etat="stable"
compatibilite="[3.2.0;*]"
logo="vignette.png"
>
<nom>Readable</nom>
<!-- Optimized for legibility -->
<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>Readable</nom>
<version>2.2.6</version>
<etat>stable</etat>
<auteur>Cedric</auteur>
<licence>GPL</licence>
<prefix>theme_bsreadable</prefix>
<description>Optimized for legibility</description>
<icon>vignette.png</icon>
<necessite id="SPIP" version="[3.0.0;3.2.99]" />
<utilise id="spipr" version="[0.1.0-dev;]" />
<categorie>theme</categorie>
</plugin>

BIN
vignette-old.png

After

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

BIN
vignette.png

Before

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

After

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

Loading…
Cancel
Save