From 449201652d5ee1d15b46988bd538b6ae50fcb70c Mon Sep 17 00:00:00 2001 From: poka Date: Mon, 25 Nov 2019 21:28:28 +0100 Subject: [PATCH] Change CSS stuff in home page and products page, remove style= in twig template for style.css --- public/css/products.css | 82 +++++++++++++ public/css/style.css | 111 +++++++++++++++++- public/models/readRecords.php | 2 +- public/models/readRecords2.php | 2 +- public/uploads/default.png | Bin src/Gmarche/views/index.twig | 34 +++--- src/Product/views/admin/products/index.twig | 86 +------------- src/Product/views/admin/recherches/index.twig | 86 +------------- 8 files changed, 216 insertions(+), 187 deletions(-) create mode 100644 public/css/products.css mode change 100644 => 100755 public/uploads/default.png diff --git a/public/css/products.css b/public/css/products.css new file mode 100644 index 0000000..870b7c9 --- /dev/null +++ b/public/css/products.css @@ -0,0 +1,82 @@ +.container_main { + background-color: #2E2E2E; +} +.tableau { + width:100%; + background-color: white; + table-layout: fixed; + border-collapse: collapse; + /* border-spacing: 1px; // pour contrer les style de base */ +} +/* Entête */ +.tableau th { + border-spacing: 0; + border-collapse: collapse; + padding: 0rem; + text-align: center; + border-left: lightgray 1px solid; + background-color:#999690; + color:#fff; +} +.tableau .colonne_image { + padding: 0; !important; +} +.tableau td { + border-bottom: solid 1px black; + border-left: lightgray 1px solid; + padding-left: 0.7rem; +} +.align_droite { + + text-align: right; + padding-right: 2rem; +} +.breadcrumb { + font-size: 1rem; +} + +.toggle_radio { + position: relative; + background: rgba(0,0,0,.1); + margin: -3px auto 4px 10px; + overflow: hidden; + padding: 0 !important; + border-radius: 50px; + height: 28px; + width: 215px; +} +.toggle_radio > * { + float: left; +} +.toggle_radio input[type=radio]{ + display: none; +} +.toggle_radio label{ + color: rgba(0,0,0,.9); + z-index: 0; + display: block; + width: 100px; + height: 20px; + margin: 3px 3px; + border-radius: 50px; + cursor: pointer; + z-index: 1; + text-align: center; +} +.toggle_option_slider{ + width: 100px; + height: 20px; + position: absolute; + top: 4px; + border-radius: 50px; + transition: all .4s ease; +} + +#first_toggle:checked ~ .toggle_option_slider{ + background: rgba(0,0,0,.3); + left: 3px; +} +#second_toggle:checked ~ .toggle_option_slider{ + background: rgba(0,0,0,.3); + left: 109px; +} diff --git a/public/css/style.css b/public/css/style.css index c6653e5..c53aa18 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -19,10 +19,18 @@ btn-custom { -webkit-font-smoothing: antialiased; } +#logo_home { + width:30rem; + margin: 0 auto; + margin-bottom: 10px; + text-align: center; +} + img { max-width: 100%; height: auto; } + #la_page { text-align: center; width: 1174px; @@ -30,6 +38,7 @@ img { height:auto; margin-left: auto; margin-right: auto; + opacity:0.9; } #la_page a { @@ -58,6 +67,7 @@ li { background-size: 100% auto; font-family: Bree Serif, Arial, sans-serif; font-size: 14px; + opacity:0.97; } header.header { width: 389px; @@ -98,7 +108,20 @@ header.header img { } .container { font-family: Arial, sans-serif; + height:auto; width:28rem; + text-align:center;border: 0px } + +.row { + width:28rem; + margin-left: -5.1rem; +} + +.home_map { + font-size:1.2rem; + font-weight:bold; +} + .profil_user { height: 400px; width: 900px; @@ -169,7 +192,7 @@ header.header img { } body.loading .loadingPubkey { - overflow: hidden; + overflow: hidden; display: block; } @@ -268,3 +291,89 @@ body.loading .loadingPubkey { } } + +/* Fix products.css */ + + +.container_main { + background-color: #2E2E2E; +} +.tableau { + width:100%; + background-color: white; + table-layout: fixed; + border-collapse: collapse; + /* border-spacing: 1px; // pour contrer les style de base */ +} +/* Entête */ +.tableau th { + border-spacing: 0; + border-collapse: collapse; + padding: 0rem; + text-align: center; + border-left: lightgray 1px solid; + background-color:#999690; + color:#fff; +} +.tableau .colonne_image { + padding: 0; !important; +} +.tableau td { + border-bottom: solid 1px black; + border-left: lightgray 1px solid; + padding-left: 0.7rem; +} +.align_droite { + + text-align: right; + padding-right: 2rem; +} +.breadcrumb { + font-size: 1rem; +} + +.toggle_radio { + position: relative; + background: rgba(0,0,0,.1); + margin: -3px auto 4px 10px; + overflow: hidden; + padding: 0 !important; + border-radius: 50px; + height: 28px; + width: 215px; +} +.toggle_radio > * { + float: left; +} +.toggle_radio input[type=radio]{ + display: none; +} +.toggle_radio label{ + color: rgba(0,0,0,.9); + z-index: 0; + display: block; + width: 100px; + height: 20px; + margin: 3px 3px; + border-radius: 50px; + cursor: pointer; + z-index: 1; + text-align: center; +} +.toggle_option_slider{ + width: 100px; + height: 20px; + position: absolute; + top: 4px; + border-radius: 50px; + transition: all .4s ease; +} + +#first_toggle:checked ~ .toggle_option_slider{ + background: rgba(0,0,0,.3); + left: 3px; +} +#second_toggle:checked ~ .toggle_option_slider{ + background: rgba(0,0,0,.3); + left: 109px; +} diff --git a/public/models/readRecords.php b/public/models/readRecords.php index ebef6c6..474c6d1 100644 --- a/public/models/readRecords.php +++ b/public/models/readRecords.php @@ -67,7 +67,7 @@ if (file_exists($imagep) && $row['image']) { $data .= ''; } else { - $data .= ''; + $data .= ''; } $data .= ''.$vendeur_format.''; $data .= ''.$cle_pub_format.''; diff --git a/public/models/readRecords2.php b/public/models/readRecords2.php index 109ce08..c6e9cb8 100644 --- a/public/models/readRecords2.php +++ b/public/models/readRecords2.php @@ -59,7 +59,7 @@ if (file_exists($imagep) && $row['image']) { $data .= ''; } else { - $data .= ''; + $data .= ''; } $data .= ''.$vendeur_format.''; $data .= ''.$pubkeyShort.'...'; diff --git a/public/uploads/default.png b/public/uploads/default.png old mode 100644 new mode 100755 diff --git a/src/Gmarche/views/index.twig b/src/Gmarche/views/index.twig index 37e89a4..86b5299 100644 --- a/src/Gmarche/views/index.twig +++ b/src/Gmarche/views/index.twig @@ -4,9 +4,9 @@ Ğ1-Marché : Régions {% if page > 1 %}, page {{ page }} {% endif %} {% endblock %} {% block body %} -
- -
+
+ +
    @@ -42,69 +42,69 @@ 'region-84': { value: "Auvergne-Rhône-Alpes", href: "france/auvergne-rhone-alpes", - tooltip: {content: "Auvergne-Rhône-Alpes"} + tooltip: {content: " Auvergne-Rhône-Alpes"} }, 'region-53': { value: "Bretagne", href: "france/bretagne", - tooltip: {content: "Bretagne"} + tooltip: {content: "Bretagne"} }, 'region-27': { value: "Bourgogne-Franche-Comté", href: "france/bourgogne-franche-comte", - tooltip: {content: "Bourgogne-Franche-Comté"} + tooltip: {content: "Bourgogne-Franche-Comté"} }, 'region-24': { value: "Centre-Val de Loire", href: "france/centre-val-de-loire", - tooltip: {content: "Centre-Val de Loire"} + tooltip: {content: "Centre-Val de Loire"} }, 'region-94': { value: "Corse", href: "france/corse", - tooltip: {content: "Corse"} + tooltip: {content: "Corse"} }, 'region-44': { value: "Grand-Est", href: "france/grand-est", - tooltip: {content: "Grand-Est"} + tooltip: {content: "Grand-Est"} }, 'region-32': { value: "Hauts-de-France", href: "france/hauts-de-france", - tooltip: {content: "Hauts-de-France"} + tooltip: {content: "Hauts-de-France"} }, 'region-11': { value: "Ile-de-France", href: "france/ile-de-france", - tooltip: {content: "Ile-de-France"} + tooltip: {content: "Ile-de-France"} }, 'region-28': { value: "Normandie", href: "france/normandie", - tooltip: {content: "Normandie"} + tooltip: {content: "Normandie"} }, 'region-75': { value: "Nouvelle-Aquitaine", href: "france/nouvelle-aquitaine", - tooltip: {content: "Nouvelle-Aquitaine"} + tooltip: {content: "Nouvelle-Aquitaine"} }, 'region-76': { value: "Occitanie", href: "france/occitanie", - tooltip: {content: "Occitanie"} + tooltip: {content: "Occitanie"} }, 'region-52': { value: "Pays de la Loire", href: "france/pays-de-la-loire", - tooltip: {content: "Pays de la Loire"} + tooltip: {content: "Pays de la Loire"} }, 'region-93': { value: "Provence-Alpes-Côte d'Azur", href: "france/provence-alpes-cote-d-azur", - tooltip: {content: "Provence-Alpes-Côte d'Azur"} + tooltip: {content: "Provence-Alpes-Côte d'Azur"} } } }); -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/Product/views/admin/products/index.twig b/src/Product/views/admin/products/index.twig index f418154..0990c7e 100644 --- a/src/Product/views/admin/products/index.twig +++ b/src/Product/views/admin/products/index.twig @@ -2,91 +2,11 @@ {% extends 'layout.twig' %} {% block title "Ğ1-Marché - Produits" %} + {% block body %} - + -
    +