Bladeren bron

autoprefixer

ouidade 3 jaren geleden
bovenliggende
commit
031c99278f

File diff suppressed because it is too large
+ 2855 - 0
web/themes/custom/eql/css-compiled/prefixed/styles.css


+ 57 - 0
web/themes/custom/eql/css-compiled/styles.css

@@ -413,6 +413,63 @@ a {
           .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline a:after {
             display: block;
             content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)"  fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
+    @media (max-width: 375px) {
+      .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child {
+        display: grid;
+        grid-template-columns: 1fr;
+        grid-template-rows: repeat(4, auto); }
+        .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-images {
+          display: none; }
+        .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-accroche {
+          grid-column: 2 /span 3;
+          grid-row: 2 / span 2;
+          font-size: 5rem;
+          font-weight: 900;
+          color: #009ee3;
+          line-height: 6.9rem;
+          margin-top: 2rem;
+          margin-bottom: 5rem;
+          width: fit-content; }
+          .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-accroche p {
+            margin-top: 4rem;
+            margin-bottom: 0; }
+          .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-accroche span {
+            background-color: white; }
+        .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-title {
+          grid-column: 4;
+          grid-row: 2;
+          margin-top: 3rem; }
+          .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-title h2 {
+            background-color: white; }
+            .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-title h2 a {
+              color: #e1000f;
+              font-weight: 900;
+              text-transform: uppercase;
+              font-family: "Source Code Pro";
+              display: table;
+              margin: 0px auto 0px auto; }
+        .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline {
+          grid-column: 2;
+          grid-row: 4;
+          max-width: 70%;
+          min-width: fit-content;
+          height: 1.5rem;
+          padding: 0.4rem 1rem;
+          font-size: 0.8rem;
+          margin-bottom: 2.5rem;
+          background-color: white;
+          border: 2px solid #009ee3;
+          list-style: none;
+          text-align: center !important; }
+          .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline a {
+            display: inline-flex;
+            text-transform: uppercase;
+            font-weight: 700;
+            color: #009ee3;
+            align-items: center; }
+            .path-frontpage .block-region-content .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline a:after {
+              display: block;
+              content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)"  fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); } }
   .path-frontpage .block-region-content .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca {
     grid-area: presentation;
     grid-column: 3 /span 4;

+ 1 - 1
web/themes/custom/eql/eql.libraries.yml

@@ -1,7 +1,7 @@
 global-css:
   css:
     theme:
-       css-compiled/styles.css: {}
+       css-compiled/prefixed/styles.css: {}
 global-js:
   js:
     scripts/main.js: {}

BIN
web/themes/custom/eql/images/ko.jpg


+ 5 - 2
web/themes/custom/eql/package.json

@@ -4,7 +4,8 @@
   "description": "",
   "main": "index.js",
   "scripts": {
-    "sass": "node-sass -w scss -o css-compiled"
+    "sass": "node-sass -w scss -o css-compiled",
+    "prefix": "postcss ./css-compiled/styles.css --use autoprefixer -d ./css-compiled/prefixed/"
   },
   "repository": {
     "type": "git",
@@ -14,5 +15,7 @@
   "license": "ISC",
   "devDependencies": {
     "node-sass": "^6.0.1"
-  }
+  },
+  "browserslist": "last 4 versions"
+
 }

+ 83 - 0
web/themes/custom/eql/scss/pages/_home.scss

@@ -104,6 +104,89 @@
                     }
                 }
             }
+            @media (max-width: 375px){ 
+                .node-type-static{
+                    div:first-child{
+                        display: grid;
+                        grid-template-columns: 1fr ;
+                        grid-template-rows: repeat(4, auto);
+                        .field--name-field-images{
+                            display: none;
+    
+                        }
+                        .field--name-field-accroche{
+                            grid-column: 2 /span 3;
+                            grid-row: 2 / span 2;
+                            font-size: 5rem;                        
+                            font-weight: 900;
+                            color: $blue-light;
+                            line-height: 6.9rem;
+                            margin-top: 2rem;
+                            margin-bottom: 5rem;
+                            width: fit-content;
+                            p{
+                                margin-top: 4rem;
+                                margin-bottom: 0;
+    
+                            }
+    
+                            span {
+                                background-color: $white;
+    
+                            }
+    
+                        }
+                        .field--name-title{
+                            grid-column: 4;
+                            grid-row: 2;
+                            margin-top: 3rem;
+            
+                            h2{ 
+                                
+                                background-color: $white;
+                                a{
+                                    color: #e1000f;
+                                    font-weight: 900;
+                                    text-transform: uppercase;
+                                    font-family: "Source Code Pro";
+                                    display: table;
+                                    margin: 0px auto 0px auto;
+                                    
+                                    // background-color: $white;
+                                }
+                            }
+                        }
+                        .links.inline{
+                            grid-column: 2;
+                            grid-row: 4;
+                            max-width: 70%;
+                            min-width: fit-content;
+                            height: 1.5rem;
+                            padding: 0.4rem 1rem;
+                            font-size: 0.8rem;
+                            margin-bottom: 2.5rem;
+                            background-color: $white;
+                            border: 2px solid $blue-light;  
+                            list-style: none;
+                            text-align: center !important;
+            
+                            a{
+                                display: inline-flex;
+                                text-transform: uppercase;
+                                font-weight: 700;
+                                color: $blue-light;
+                                align-items: center;
+                                &:after{
+                                    display: block;
+                                    content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)"  fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
+            
+                                }
+                            }
+                        }
+                    }
+                }
+
+            }
         }
 
         // bouton déposer candidature

Some files were not shown because too many files changed in this diff