RESTRUCT Split style into several files
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>
Thu, 20 Jun 2019 07:01:08 +0000 (09:01 +0200)
committerLorenzo Tilve <ltilve@igalia.com>
Tue, 4 Feb 2020 08:42:15 +0000 (09:42 +0100)
src/app.js
src/app.scss [deleted file]
src/styles/app.scss [new file with mode: 0644]
src/styles/landscape.scss [new file with mode: 0644]
src/styles/main.scss [new file with mode: 0644]
src/styles/portrait.scss [new file with mode: 0644]
src/styles/svg.scss [new file with mode: 0644]

index c62f79e..7c9b244 100644 (file)
@@ -5,4 +5,4 @@ console.log('Arrancada la aplicación compilando CSS y SaSS');
 
 /* CSS */
 // import 'bootstrap/dist/css/bootstrap.min.css';
-import './app.scss';
+import './styles/app.scss';
diff --git a/src/app.scss b/src/app.scss
deleted file mode 100644 (file)
index 40d2929..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-@media (orientation: portrait) {
-
-    html {
-        background-image: url('./images/vertical_background.png');
-    }
-
-    body {
-        .item {
-            flex-basis: 33%;
-        }
-    }
-}
-
-@media (orientation: landscape) {
-
-    html {
-        background-image: url('./images/horizontal_background.png');
-    }
-
-    body {
-        .item {
-            flex-basis: 25%;
-        }
-    }
-}
-
-html {
-    height: 100%;
-    background-size: cover;
-}
-
-body {
-    font-size: 1.2rem;
-    font-family: Arial;
-    color: #999999;
-    margin: 5%;
-
-    svg {
-        path,
-        polygon,
-        linearGradient,
-        rect {
-            fill: #00ADDC !important;
-        }
-
-        circle {
-            fill: none !important;
-        }
-
-        text {
-            display: none !important;
-        }
-    }
-
-    .parent {
-        display: flex;
-        flex-direction: row;
-        flex-wrap: wrap;
-        justify-content: flex-start;
-        align-items: flex-start;
-        height: 100%;
-
-        .item {
-            .name {
-                width: 100%;
-                text-align: center;
-                text-transform: uppercase;
-                margin-top: -20%;
-            }
-        }
-    }
-}
\ No newline at end of file
diff --git a/src/styles/app.scss b/src/styles/app.scss
new file mode 100644 (file)
index 0000000..f986a37
--- /dev/null
@@ -0,0 +1,4 @@
+@import "main.scss";
+@import "svg.scss";
+@import "portrait.scss";
+@import "landscape.scss";
\ No newline at end of file
diff --git a/src/styles/landscape.scss b/src/styles/landscape.scss
new file mode 100644 (file)
index 0000000..39ac270
--- /dev/null
@@ -0,0 +1,12 @@
+@media (orientation: landscape) {
+
+    html {
+        background-image: url('../images/horizontal_background.png');
+    }
+
+    body {
+        .item {
+            flex-basis: 25%;
+        }
+    }
+}
\ No newline at end of file
diff --git a/src/styles/main.scss b/src/styles/main.scss
new file mode 100644 (file)
index 0000000..226509e
--- /dev/null
@@ -0,0 +1,29 @@
+html {
+    height: 100%;
+    background-size: cover;
+}
+
+body {
+    font-size: 1.2rem;
+    font-family: Arial;
+    color: #999999;
+    margin: 5%;
+
+    .parent {
+        display: flex;
+        flex-direction: row;
+        flex-wrap: wrap;
+        justify-content: flex-start;
+        align-items: flex-start;
+        height: 100%;
+
+        .item {
+            .name {
+                width: 100%;
+                text-align: center;
+                text-transform: uppercase;
+                margin-top: -20%;
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/src/styles/portrait.scss b/src/styles/portrait.scss
new file mode 100644 (file)
index 0000000..a4eb732
--- /dev/null
@@ -0,0 +1,12 @@
+@media (orientation: portrait) {
+
+    html {
+        background-image: url('../images/vertical_background.png');
+    }
+
+    body {
+        .item {
+            flex-basis: 33%;
+        }
+    }
+}
\ No newline at end of file
diff --git a/src/styles/svg.scss b/src/styles/svg.scss
new file mode 100644 (file)
index 0000000..eddbbe5
--- /dev/null
@@ -0,0 +1,18 @@
+body {
+    svg {
+        path,
+        polygon,
+        linearGradient,
+        rect {
+            fill: #00ADDC !important;
+        }
+
+        circle {
+            fill: none !important;
+        }
+
+        text {
+            display: none !important;
+        }
+    }
+}
\ No newline at end of file