Browse Source

Conversion a BS4/Spipr-v2

master
Cerdic 3 years ago
parent
commit
d0fb3793f0
  1. 33
      css/_bootswatch.scss
  2. 156
      css/_variables.scss
  3. 128
      css/bootswatch.less
  4. 15
      css/font.css
  5. BIN
      css/fonts/ubuntu-bold-webfont.woff
  6. BIN
      css/fonts/ubuntu-bold-webfont.woff2
  7. BIN
      css/fonts/ubuntu-regular-webfont.woff
  8. BIN
      css/fonts/ubuntu-regular-webfont.woff2
  9. 302
      css/variables.less
  10. 19
      lang/paquet-theme_bs4united_fr.php
  11. 18
      paquet.xml
  12. 13
      plugin.xml
  13. BIN
      vignette.png

33
css/_bootswatch.scss

@ -0,0 +1,33 @@
// United 4.3.1
// Bootswatch
// Variables ===================================================================
// see font.css
//$web-font-path: "https://fonts.googleapis.com/css?family=Ubuntu:400,700&display=swap" !default;
//@import url($web-font-path);
// Navbar ======================================================================
@include media-breakpoint-down(xs) {
#nav {
@include make-navbar-button-float();
}
}
// Buttons =====================================================================
// Typography ==================================================================
// Tables ======================================================================
// Forms =======================================================================
// Navs ========================================================================
// Indicators ==================================================================
// Progress bars ===============================================================
// Containers ==================================================================

156
css/_variables.scss

@ -0,0 +1,156 @@
// United 4.3.1
// Bootswatch
//
// Color system
//
$white: #fff !default;
$gray-100: #f8f9fa !default;
$gray-150: #eeeeee !default;
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #AEA79F !default;
$gray-600: #868e96 !default;
$gray-700: #495057 !default;
$gray-800: #333 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #007bff !default;
$indigo: #6610f2 !default;
$purple: #772953 !default;
$pink: #e83e8c !default;
$red: #DF382C !default;
$orange: #E95420 !default;
$yellow: #EFB73E !default;
$green: #38B44A !default;
$teal: #20c997 !default;
$cyan: #17a2b8 !default;
$primary: $orange !default;
$secondary: $gray-500 !default;
$success: $green !default;
$info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: $gray-200 !default;
$dark: $purple !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: 200 !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;
// Fonts
$font-family-sans-serif: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$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 !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: $font-family-sans-serif;
$headings-line-height: 1.1 !default;
$headings-font-weight: 700;
//$headings-color: $cyan-darker !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($black,0.10) !default;
$navbar-dark-active-bg: rgba($black,0.25) !default;
$breadcrumb-bg: $gray-100;
$breadcrumb-margin-bottom: $spacer;
$jumbotron-bg: $gray-150;
$card-bg: $gray-150;
$well-bg: $gray-150;
// Tables
$table-dark-bg: $dark !default;
$table-dark-border-color: darken($dark, 5%) !default;
@import "bootstrap/css/_variables";

128
css/bootswatch.less

@ -1,128 +0,0 @@
// Bootswatch.less
// Swatch: United
// Version: 2.1.1
// -----------------------------------------------------
// TYPOGRAPHY
// -----------------------------------------------------
@import url(https://fonts.googleapis.com/css?family=Ubuntu);
// SCAFFOLDING
// -----------------------------------------------------
// NAVBAR
// -----------------------------------------------------
.navbar {
.brand a {color:inherit;}
.nav > li > a {
border-right: 1px solid rgba(0, 0, 0, 0.2);
border-left: 1px solid rgba(255, 255, 255, 0.1);
&:hover {
border-left: 1px solid rgba(0, 0, 0, 0.2);
}
}
.nav > .active > a,
.nav > .active > a:hover {
border-left: 1px solid rgba(0, 0, 0, 0.2);
}
.divider-vertical {
background-color: inherit;
border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.navbar-text {
padding: 9px 10px 11px;
line-height: 19px;
color: @white;
}
.navbar-search .search-query {
margin-bottom: 3px;
border: 1px solid darken(@navbarBackground, 15%);
}
}
@media (max-width: @navbarCollapseWidth) {
.navbar .nav-collapse {
.nav li > a {
color: @white;
border-left: 0px solid @orange;
border-right: 0px solid @orange;
&:hover {
background-color: rgba(0, 0, 0, 0.3) !important;
background-image: none;
}
}
.navbar-form,
.navbar-search {
border-top: 0px solid @orange;
border-bottom: 0px solid @orange;
.box-shadow(none);
}
.nav-header {
color: @grayLighter;
}
}
}
// NAV
// -----------------------------------------------------
.nav-tabs .open .dropdown-toggle,
.nav-pills .open .dropdown-toggle,
.nav > li.dropdown.open.active > a:hover {
border-right: 1px solid #C03D14;
border-left: 1px solid #E6633A;
}
// BUTTONS
// -----------------------------------------------------
.btn-primary {
.buttonBackground(lighten(@btnPrimaryBackground, 15%), @btnPrimaryBackground);
}
.btn-warning {
.buttonBackground(lighten(@yellow, 15%), @yellow);
}
// TABLES
// -----------------------------------------------------
// FORMS
// -----------------------------------------------------
// DROPDOWNS
// -----------------------------------------------------
// ALERTS, LABELS, BADGES
// -----------------------------------------------------
.alert {
text-shadow: none;
}
// MISC
// -----------------------------------------------------
.hero-unit {
border: 1px solid rgba(0,0,0,.05);
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
h1 {
line-height: 1.6em;
}
}
// MEDIA QUERIES
// -----------------------------------------------------

15
css/font.css

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

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

302
css/variables.less

@ -1,302 +0,0 @@
// Variables
// Swatch: United
// Version: 2.1.1
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
// -------------------------
@black: #000;
@grayDarker: #222;
@grayDark: #333;
@gray: #555;
@grayLight: #999;
@grayLighter: #ebebeb;
@white: #fff;
// Accent colors
// -------------------------
@blue: #19B6EE;
@blueDark: #0064cd;
@green: #38B44A;
@red: #DF382C;
@yellow: #EFB73E;
@orange: #DD4814;
@pink: #c3325f;
@purple: #772953;
// Scaffolding
// -------------------------
@bodyBackground: @white;
@textColor: @grayDark;
// Links
// -------------------------
@linkColor: @orange;
@linkColorHover: darken(@linkColor, 15%);
// Typography
// -------------------------
@sansFontFamily: 'Ubuntu', Tahoma, sans-serif;
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
@monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
@baseFontSize: 15px;
@baseFontFamily: @sansFontFamily;
@baseLineHeight: 22px;
@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; // 44px
@paddingSmall: 2px 10px; // 26px
@paddingMini: 1px 6px; // 24px
@baseBorderRadius: 4px;
@borderRadiusLarge: 5px;
@borderRadiusSmall: 3px;
// Tables
// -------------------------
@tableBackground: transparent; // overall background-color
@tableBackgroundAccent: #f9f9f9; // for striping
@tableBackgroundHover: #eeeeee; // 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: lighten(@purple, 15%);
@btnInfoBackgroundHighlight: @purple;
@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: @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.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: #eeeeee;
// Navbar
// -------------------------
@navbarCollapseWidth: 767px;
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
@navbarHeight: 40px;
@navbarBackgroundHighlight: #CE4213;
@navbarBackground: @orange;
@navbarBorder: darken(@navbarBackground, 5%);
@navbarText: @white;
@navbarLinkColor: @white;
@navbarLinkColorHover: @white;
@navbarLinkColorActive: @navbarLinkColorHover;
@navbarLinkBackgroundHover: rgba(0,0,0,.2);
@navbarLinkBackgroundActive: rgba(0,0,0,.2);
@navbarBrandColor: @navbarLinkColor;
// Inverted navbar
@navbarInverseBackground: @purple;
@navbarInverseBackgroundHighlight: lighten(@purple, 4%);
@navbarInverseBorder: darken(@navbarInverseBackground, 5%);
@navbarInverseText: @white;
@navbarInverseLinkColor: @white;
@navbarInverseLinkColorHover: @white;
@navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
@navbarInverseLinkBackgroundHover: rgba(0,0,0,.2);
@navbarInverseLinkBackgroundActive: @navbarInverseBackground;
@navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus: @white;
@navbarInverseSearchBorder: @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor: #eee;
@navbarInverseBrandColor: @navbarInverseLinkColor;
// Pagination
// -------------------------
@paginationBackground: #fff;
@paginationBorder: #ddd;
@paginationActiveBackground: #eeeeee;
// Hero unit
// -------------------------
@heroUnitBackground: @grayLighter;
@heroUnitHeadingColor: inherit;
@heroUnitLeadColor: inherit;
// Form states and alerts
// -------------------------
@warningText: #ECA918;
@warningBackground: lighten(@warningText, 40%);
@warningBorder: darken(spin(@warningBackground, -10), 3%);
@errorText: #DF382C;
@errorBackground: lighten(@errorText, 40%);
@errorBorder: darken(spin(@errorBackground, -10), 3%);
@successText: #38B44A;
@successBackground: lighten(@successText, 40%);
@successBorder: darken(spin(@successBackground, -10), 5%);
@infoText: @purple;
@infoBackground: lighten(@purple, 50%);
@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_bs4united_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_bsunited
// Langue: fr
// Date: 25-03-2020 11:48:27
// Items: 2
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// T
'theme_bs4united_description' => 'Ubuntu orange and unique font.',
'theme_bs4united_slogan' => 'Ubuntu orange and unique font',
);
?>

18
paquet.xml

@ -0,0 +1,18 @@
<paquet
prefix="theme_bs4united"
categorie="theme"
version="2.2.3"
etat="stable"
compatibilite="[3.2.0;*]"
logo="vignette.png"
>
<nom>United</nom>
<!-- Ubuntu orange and unique font -->
<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>United</nom>
<version>2.2.3</version>
<etat>stable</etat>
<auteur>Cedric</auteur>
<licence>GPL</licence>
<prefix>theme_bsunited</prefix>
<description>Ubuntu orange and unique font.</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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Loading…
Cancel
Save