Skip to content

Commit

Permalink
Se crearon estilos para section
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Cox committed Jan 31, 2024
1 parent fbef834 commit d3ff06e
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 19 deletions.
103 changes: 93 additions & 10 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}

body.dark-theme {
--main-color: blue;
--title-color: #eff3f5;
--text-color: #c8cdd0;
--light-text-color: #a0a7ac;
Expand All @@ -37,6 +36,7 @@ body.dark-theme {
html {
font-size: 18px;
font-family: var(--font-family);
text-wrap: balance;
}

body {
Expand Down Expand Up @@ -79,16 +79,33 @@ a {
}
}

button {
background-color: var(--main-color);
color: white;
border: 0.088rem solid var(--main-color);
border-radius: 100vw;
padding: 0.6rem 1rem;

&:hover {
background-color: var(--hover-color);
border-color: var(--hover-color);
color: white;
cursor: pointer;
}
}

/* <HEADER */
header {
/* background-color: lightcoral; */
background-color: var(--container-color);
grid-area: header;
background-color: lightcoral;
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--pg);
border-bottom: 1px solid var(--border-color);
box-shadow: var(--container-shadow);
background-color: var();

nav {
display: flex;
Expand Down Expand Up @@ -120,19 +137,85 @@ nav button::before {

/* <MAIN */
main {
background-color: bisque;
/* background-color: bisque; */
grid-area: main;
padding: var(--pg);
width: 100dvw;
}

textarea {
width: 100%;
margin: 1.4rem auto;
resize: none;
border: none;
border-radius: 8px;
padding: 0.8rem;
background-color: var(--container-color);
width: 100%;
margin: 1.4rem auto;
resize: none;
border: none;
border-radius: 8px;
padding: 0.8rem;
background-color: var(--container-color);
box-shadow: var(--container-shadow);
color: inherit;
}

.btn-group {
display: flex;
justify-content: end;
gap: 1.2rem;

button {
&:nth-child(1) {
background-color: transparent;
color: var(--main-color);
&:hover {
background-color: var(--hover-color);
color: white;
}
}
}
}
/* </MAIN */

/* <SECTION */
section {
grid-area: section;
padding: var(--pg);
min-height: 300px;
}

section > div {
background-color: var(--container-color);
height: 100%;
padding: var(--pg);
border-radius: 8px;
}

.content-a > div {
display: grid;
place-content: center;
text-align: center;

.bi-exclamation-octagon-fill {
color: white;
background-color: red;
width: fit-content;
margin: 0 auto;
border-radius: 100vw;
outline: 0.375rem solid rgba(255, 0, 0, 0.288);
padding: 0.4rem 0.7rem;
font-size: xx-large;
margin-bottom: 2rem;
}
}

.content-b > div {
.mensaje-encriptado-content {
background-color: var(--border-color);
padding: 1rem;
border-radius: 8px;
margin: 1rem auto;
}

.copy-btn-content {
display: flex;
justify-content: end;
}
}
/* </SECTION */
20 changes: 11 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="shortcut icon" href="#" type="image/x-icon">
</head>

<body>
<body class="dark-theme">
<header>
<div class="logo">
<h1>txt</h1>
Expand Down Expand Up @@ -51,14 +51,16 @@ <h2>Ningún mensaje fue encontrado</h2>
</section>
<section class="content-b">
<div>
<h2>content B section</h2>
<div class="mensaje-encriptado-content">### #### #### #### ####</div>
</div>
<div class="copy-btn-content">
<button title="Copiar mensaje">
<i class="bi bi-floppy-fill"></i>
Copiar
</button>
<div>
<h2>content B section</h2>
<div class="mensaje-encriptado-content">### #### #### #### ####</div>
</div>
<div class="copy-btn-content">
<button title="Copiar mensaje">
<i class="bi bi-floppy-fill"></i>
Copiar
</button>
</div>
</div>
</section>
<footer>
Expand Down

0 comments on commit d3ff06e

Please sign in to comment.