aƱadidas propiedades flexbox align items y justify content a nav div
[salamandradevs.site/.git] / themes / droda / assets / css / main.css
index f67a0878cf0e5f7fecabb9b5efff98501e1bcb0f..3e3e54bb572621b2870cc64c20a15feeceb3f65a 100644 (file)
 
 * {
    box-sizing: border-box;
+   margin: 0;
+   padding: 0;
 }
 
 :root {
-   --bgColorDark: #242930;
+   --bgColorDark: #0e0e0e;
    --bgColorMidDark: #353b43;
    --bgColorLightDark: #4f5864;
    --bgColorLight: #D2D2D2;
    --globalScale: 1;
+   
 }
 
 h1 {
@@ -73,7 +76,6 @@ body {
       "main"
       "footer";
    height: 100%;
-   margin: 0;
 }
 
 aside {
@@ -98,20 +100,83 @@ aside .item {
 }
 
 nav {
+   display: flex;
+   justify-content: space-between;
+   align-items: center;
    grid-area: navbar;
+   background-color: var(--bgColorDark);
+   width: 100%;
+}
+
+nav div {
+   display: flex;
+   flex-flow: nowrap;
+   width: 100%;
+   align-items: center;
+   justify-content: start;
+}
+
+nav ul {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
-   justify-content: space-between;
+   justify-content: flex-end;
+   list-style-type: none;
    width: 100%;
-   padding: 0 2rem;
-   background-color: var(--bgColorLightDark);
+   height: 100%;
+   margin: 0;
+   padding: 0;
+   overflow: hidden;
 }
 
+.hover {
+   --c:linear-gradient(#1482c8 0 0); /* update the color here */
+
+   padding-bottom: .15em;
+   background: var(--c), var(--c);
+   background-size: .3em .1em;
+   background-position:50% 100%;
+   background-repeat: no-repeat;
+   transition: .3s linear, background-size .3s .2s linear;
+}
+
+.hover:hover {
+   background-size: 50% .1em;
+   background-position: 10% 100%, 90% 100%;
+}
+
+nav li {
+   display: flex;
+   align-items: center;
+   height: 100%;
+ }
+nav a {
+   display: block;
+   color: white;
+   text-align: center;
+   padding: 1rem 1.5rem;
+   text-decoration: none;
+ }
+
 main {
    grid-area: main;
    padding: 2rem;
    background-color: var(--bgColorMidDark);
+   background-image: url('../images/salamandra_margin.svg');
+   background-size: 10rem;
+   background-position-x: right;
+   background-position-y: bottom;
+   background-repeat: no-repeat;
+}
+
+/* Regla que aplica solo a firefox */
+@-moz-document url-prefix() {
+   main {
+      background-image: url('../images/salamandra.svg');
+      background-position-x: right 1rem;
+      background-position-y: bottom 1rem;
+   }
 }
 
 main hr {
@@ -146,6 +211,11 @@ main hr {
    padding: 0 0.3rem;
 }
 
+.content .highlight code {
+   white-space: pre-wrap;
+   overflow-x: auto;
+}
+
 footer {
    grid-area: footer;
    display: flex;
@@ -155,15 +225,7 @@ footer {
    background-color: var(--bgColorLightDark);
 }
 
-.bg-logo {
-  background-image: url('../images/salamandra.svg');
-  background-attachment: fixed;
-  background-size: cover;
-  background-position: center;
-}
-
 .greetings {
-   background-color: var(--bgColorMidDark);
    width: 80%;
    height: 80%;
    margin: 0 auto;