Browse Source

Theme sketchy avec un look a la main pour les protos et mockup

master v1.0.0
Cerdic 1 year ago
commit
4bd53c403e
  1. 497
      css/_bootswatch.scss
  2. 254
      css/_variables.scss
  3. 54
      css/theme.scss
  4. 19
      lang/paquet-theme_bs4sketchy_fr.php
  5. 17
      paquet.xml
  6. BIN
      vignette.png

497
css/_bootswatch.scss

@ -0,0 +1,497 @@
// Sketchy 4.3.1
// Bootswatch
// Variables ===================================================================
$web-font-path: "https://fonts.googleapis.com/css?family=Neucha|Cabin+Sketch&display=swap" !default;
@import url($web-font-path);
$border-radius-sketchy: 255px 25px 225px 25px/25px 225px 25px 255px;
$border-radius-lg-sketchy: 555px 25px 15px 25px/25px 5px 35px 555px;
$border-radius-sm-sketchy: 255px 25px 225px 25px/25px 225px 25px 255px;
// Navbar ======================================================================
.navbar {
border-width: 2px;
border-style: solid;
border-radius: 25px 25px 55px 5px/5px 55px 25px 25px;
&.bg-light {
border-color: $gray-800;
}
&.fixed-top {
border-radius: 0 25px 225px 0/25px 0 25px 255px;
border-width: 0 0 2px 0;
}
&.fixed-bottom {
border-radius: 255px 25px 0 25px/25px 225px 25px 0;
border-width: 2px 0 0 0;
}
&-brand {
font-family: $headings-font-family;
font-weight: normal;
text-decoration: none;
}
}
// Buttons =====================================================================
.btn {
border-radius: $border-radius-sketchy;
text-decoration: none;
&-lg {
border-radius: $border-radius-lg-sketchy;
}
&-sm {
border-radius: $border-radius-sm-sketchy;
}
}
// Typography ==================================================================
button, input, optgroup, select, textarea {
font-family: $font-family-sans-serif;
}
blockquote {
border-radius: 15px 27px 25px 25px/25px 25px 305px 635px;
}
// Tables ======================================================================
table {
th,
td {
background-color: #fff;
}
}
.table-bordered {
background-color: $gray-800;
border-collapse: separate;
border-spacing: 0;
border-radius: 5px 25px 5px 25px/25px 5px 25px 5px;
overflow: hidden;
th,
td {
border-radius: 5px 5px 25px 4px/5px 4px 3px 5px;
}
.table-success,
.table-success:hover {
td, th {
background-color: $success;
color: $white;
}
}
.table-info,
.table-info:hover {
td, th {
background-color: $info;
color: $white;
}
}
.table-warning,
.table-warning:hover {
td, th {
background-color: $warning;
color: $white;
}
}
.table-danger,
.table-danger:hover {
td, th {
background-color: $danger;
color: $white;
}
}
}
.table-dark {
th,
td,
&.table-hover .table-active:hover > th,
&.table-hover .table-active:hover > td {
background-color: $gray-800;
}
}
// Forms =======================================================================
input,
.form-control,
.input-group-text,
.custom-file-label {
border-radius: $border-radius-sketchy;
}
.formulaire_spip {
border: 2px solid $gray-800;
border-radius: $border-radius-lg-sketchy;
}
textarea,
textarea.form-control,
select,
select.form-control {
border-radius: $border-radius-lg-sketchy !important;
}
[type="checkbox"] {
position: relative;
appearance: none;
width: 0;
height: 0;
border: none;
cursor: pointer;
&:before {
content: "";
position: absolute;
left: -1.2em;
top: -0.9em;
display: inline-block;
width: 15px;
height: 16px;
border: 2px solid $gray-800;
border-radius: 2px 8px 2px 4px / 5px 3px 5px 3px;
}
&:checked:after {
content: "x";
position: absolute;
left: -0.64em;
top: -0.48em;
font-size: 1.5rem;
line-height: 0.5;
color: $gray-800;
}
&:disabled {
&:before {
border: 2px solid $gray-500;
}
}
}
[type="radio"] {
position: relative;
appearance: none;
width: 0;
height: 0;
border: none;
cursor: pointer;
&:before {
content: "";
position: absolute;
left: -1.2em;
top: -0.9em;
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid $gray-800;
border-radius: 50% 45% 40% 50% / 40% 50% 50% 45%;
}
&:checked:before {
background-color: $gray-800;
}
&:disabled {
&:before {
border: 2px solid $gray-500;
}
}
}
.form-check-label {
padding-left: 2.5rem;
}
.form-check-inline {
[type="checkbox"] {
&:before {
left: 0;
top: 0;
}
&:after {
left: 0.14em;
top: 0.12em;
}
}
[type="radio"] {
&:before {
left: 0;
top: 0;
}
}
.form-check-label {
padding-left: 1rem;
padding-right: 1rem;
}
}
// Navs ========================================================================
.dropdown-menu {
border-radius: 555px 25px 25px 25px/25px 25px 25px 555px;
overflow: hidden;
}
.dropdown-divider {
border-top-width: 2px;
}
.list-group {
background-color: $gray-800;
border: 2px solid $gray-800;
border-radius: 45px 15px 35px 5px/15px 5px 15px 65px;
overflow: hidden;
&-item {
border-left: none;
border-right: none;
border-top: 2px solid $gray-800;
border-radius: 255px 5px 225px 5px/25px 225px 25px 255px;
&:first-child {
border-top: none;
}
&:last-child {
border-bottom: none;
}
}
}
.nav-pills .nav-link, {
border-radius: $border-radius-sketchy;
}
.nav-link,
.page-link,
.list-group-item,
.dropdown-item {
text-decoration: none;
}
.nav-tabs {
.nav-link {
border-radius: 45px 15px 225px 5px/25px 225px 25px 255px;
}
}
.breadcrumb {
border: 2px solid $gray-800;
border-radius: $border-radius-sketchy;
}
.pagination {
.page-link {
border-radius: 425px 255px 25px 25px/25px 25px 5px 25px;
}
}
// Indicators ==================================================================
.progress {
border: 2px solid $gray-800;
}
.badge {
border-radius: $border-radius-sm-sketchy;
&-pill {
border-radius: 7rem 8rem 8rem 8rem / 4rem 5rem 6rem 6rem;
}
&-warning {
color: $white;
}
}
.alert {
border-radius: $border-radius-sketchy;
&-dismissible {
.close {
color: transparent;
&:before {
right: 1rem;
top: 0.8rem;
}
}
&.alert-success {
border-color: $success;
&,
.alert-link,
.close:before {
color: $success;
}
}
&.alert-info {
border-color: $info;
&,
.alert-link,
.close:before {
color: $info;
}
}
&.alert-warning {
border-color: $warning;
&,
.alert-link,
.close:before {
color: $warning;
}
}
&.alert-danger {
border-color: $danger;
&,
.alert-link,
.close:before {
color: $danger;
}
}
}
}
// Progress bars ===============================================================
.progress {
border-radius: $border-radius-sm-sketchy;
}
// Containers ==================================================================
.card {
border-radius: 5px 5px 5px 5px/25px 25px 25px 5px;
&-outline {
&-primary,
&-success,
&-info,
&-warning,
&-danger {
border-width: 2px;
}
}
&-header {
border-bottom-width: 2px;
border-color: inherit;
&:first-child {
border-radius: 3px 3px 0 0/23px 23px 0 0;
}
}
&-footer {
border-top-width: 2px;
}
}
.jumbotron {
border: 2px solid $gray-800;
border-radius: $border-radius-lg-sketchy;
}
.toast {
border-radius: 10px 10px 15px 5px/5px 15px 5px 15px;
&-header {
font-family: $headings-font-family;
}
}
.modal {
&-content {
border-radius: 15px 5px 5px 25px/5px 25px 25px 5px;
}
}
.popover {
padding: 0;
border-radius: 45px 85px 15px 25px/15px 10px 35px 555px;
&-title {
border-bottom: 2px solid $gray-800;
}
&.popover-left::before,
&.bs-tether-element-attached-right::before {
right: -13px;
}
&.popover-top::before,
&.bs-tether-element-attached-bottom::before {
bottom: -13px;
}
&.popover-bottom::before,
&.bs-tether-element-attached-top::before {
top: -13px;
}
&.popover-right::before,
&.bs-tether-element-attached-left::before {
left: -13px;
}
}
.tooltip {
&-inner {
border-radius: $border-radius-sm-sketchy;
}
}
pre {
border: 2px solid $gray-800;
border-radius: 15px 5px 5px 25px/5px 25px 25px 5px;
}
.close,
.close:hover,
.close:focus,
.close:active {
opacity: 1;
&:before {
position: absolute;
content: "X";
color: $gray-800;
}
}
.img {
&-thumbnail {
border-radius: $border-radius-sketchy;
}
}

254
css/_variables.scss

@ -0,0 +1,254 @@
// Sketchy 4.3.1
// Bootswatch
//
// Color system
//
$white: #fff !default;
$gray-100: #f8f9fa !default;
$gray-200: #f7f7f9 !default;
$gray-300: #dee2e6 !default;
$gray-400: #ccc !default;
$gray-500: #aaa !default;
$gray-600: #868e96 !default;
$gray-700: #555 !default;
$gray-800: #333 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #007bff !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #e83e8c !default;
$red: #dc3545 !default;
$orange: #fd7e14 !default;
$yellow: #ffc107 !default;
$green: #28a745 !default;
$teal: #20c997 !default;
$cyan: #17a2b8 !default;
$primary: $gray-800 !default;
$secondary: $gray-700 !default;
$success: $green !default;
$info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: $white !default;
$dark: $gray-700 !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
$yiq-contrasted-threshold: 200 !default;
$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;
// 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: #FCFCFC !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-decoration: underline !default;
// Components
$border-width: 2px !default;
$border-radius: 25px !default;
$border-radius-lg: 35px !default;
$border-radius-sm: 15px !default;
// Fonts
$font-family-sans-serif: 'Neucha', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
$font-family-base: $font-family-sans-serif !default;
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
$font-size-lg: $font-size-base * 1.2 !default;
$font-size-sm: $font-size-base * .866 !default;
$line-height-base: 1.5 !default;
$font-weight-base: 700 !default;
$headings-font-family: 'Cabin Sketch', cursive !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-line-height: 1.1 !default;
$headings-font-weight: 700;
$blockquote-small-color: $gray-800 !default;
// Tables
$table-accent-bg: $gray-400 !default;
$table-hover-bg: $white !default;
$table-border-width: 2px !default;
$table-border-color: $gray-800 !default;
// Forms
$input-border-color: $gray-800 !default;
$input-focus-border-color: $input-border-color !default;
// Dropdowns
$dropdown-border-color: $gray-800 !default;
$dropdown-divider-bg: $gray-800 !default;
$dropdown-link-hover-color: $white !default;
$dropdown-link-hover-bg: $gray-800 !default;
// Navs
$nav-tabs-border-color: $gray-800 !default;
$nav-tabs-link-hover-border-color: $gray-800 !default;
$nav-tabs-link-active-color: $gray-800 !default;
$nav-tabs-link-active-border-color: $gray-800 !default;
// Navbar
$navbar-dark-color: $white !default;
$navbar-dark-hover-color: $white !default;
$navbar-dark-toggler-border-color: $white !default;
$navbar-light-color: $gray-800 !default;
$navbar-light-hover-color: $gray-800 !default;
$navbar-light-active-color: $gray-800 !default;
$navbar-light-toggler-border-color: $gray-800 !default;
// Pagination
$pagination-border-color: $gray-800 !default;
$pagination-hover-color: $white !default;
$pagination-hover-bg: $gray-800 !default;
$pagination-hover-border-color: $gray-800 !default;
$pagination-disabled-color: $gray-400 !default;
$pagination-disabled-border-color: $gray-800 !default;
// Jumbotron
$jumbotron-bg: transparent !default;
// Cards
$card-border-width: 2px !default;
$card-border-color: $gray-800 !default;
// Popovers
$popover-border-color: $gray-800 !default;
// Badges
$badge-padding-y: 0.5em !default;
$badge-padding-x: 1.2em !default;
// Toasts
$toast-border-width: 2px !default;
$toast-border-color: $gray-800 !default;
$toast-header-color: $gray-800 !default;
$toast-header-border-color: $toast-border-color !default;
// Modals
$modal-content-border-color: $gray-800 !default;
$modal-header-border-color: $gray-800 !default;
// Progress bars
$progress-bg: $white !default;
$progress-bar-bg: $gray-400 !default;
// List group
$list-group-border-color: $gray-800 !default;
$list-group-hover-bg: $gray-300 !default;
$list-group-active-color: $white !default;
$list-group-active-bg: $gray-800 !default;
$list-group-action-color: $gray-800 !default;
// Breadcrumbs
$breadcrumb-bg: $white !default;
$breadcrumb-divider-color: $gray-800 !default;
$breadcrumb-active-color: $gray-800 !default;
// Close
$close-color: $white !default;
$close-text-shadow: none !default;
$code-color: $gray-600;
@import "bootstrap/css/_variables";

54
css/theme.scss

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

19
lang/paquet-theme_bs4sketchy_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_bs4simplex
// Langue: fr
// Date: 17-04-2020 16:50:04
// Items: 2
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// T
'theme_bs4sketchy_description' => 'A hand-drawn look for mockups and mirth',
'theme_bs4sketchy_slogan' => 'A hand-drawn look for mockups and mirth',
);
?>

17
paquet.xml

@ -0,0 +1,17 @@
<paquet
prefix="theme_bs4sketchy"
categorie="theme"
version="1.0.0"
etat="stable"
compatibilite="[3.2.0;["
logo="vignette.png"
>
<nom>Sketchy</nom>
<auteur>Cedric</auteur>
<licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GPL 3</licence>
<utilise nom="spiprv2" compatibilite="[2.2.0;[" />
</paquet>

BIN
vignette.png

After

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

Loading…
Cancel
Save