Skip to content

Commit 77c1b55

Browse files
committed
Desplegable responsivo
1 parent e8b3263 commit 77c1b55

File tree

7 files changed

+63
-12
lines changed

7 files changed

+63
-12
lines changed

docs/assets/output.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,29 @@ video {
638638
.btn-resp-menu:hover {
639639
--bg-opacity: 1;
640640
background-color: #2d3748;
641-
background-color: rgba(45, 55, 72, var(--bg-opacity))
641+
background-color: rgba(45, 55, 72, var(--bg-opacity));
642+
}
643+
644+
.btn-resp-desplegable {
645+
display: block;
646+
padding-top: 0.5rem;
647+
padding-bottom: 0.5rem;
648+
padding-left: 1rem;
649+
padding-right: 1rem;
650+
--text-opacity: 1;
651+
color: #4a5568;
652+
color: rgba(74, 85, 104, var(--text-opacity));
653+
margin-top: 0.25rem;
654+
margin-bottom: 0.25rem;
655+
}
656+
657+
.btn-resp-desplegable:hover {
658+
--bg-opacity: 1;
659+
background-color: #667eea;
660+
background-color: rgba(102, 126, 234, var(--bg-opacity));
661+
--text-opacity: 1;
662+
color: #fff;
663+
color: rgba(255, 255, 255, var(--text-opacity));
642664
}
643665

644666
@media (min-width: 640px) {

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
<app-root></app-root>
1616

1717

18-
<script src="runtime-es2015.0811dcefd377500b5b1a.js" type="module"></script><script src="runtime-es5.0811dcefd377500b5b1a.js" nomodule defer></script><script src="polyfills-es5.1a3c78b07cd6f16c6e9a.js" nomodule defer></script><script src="polyfills-es2015.1f913f16a2d346cc8bdc.js" type="module"></script><script src="main-es2015.7bf4c47ba72342d8858c.js" type="module"></script><script src="main-es5.7bf4c47ba72342d8858c.js" nomodule defer></script></body>
18+
<script src="runtime-es2015.0811dcefd377500b5b1a.js" type="module"></script><script src="runtime-es5.0811dcefd377500b5b1a.js" nomodule defer></script><script src="polyfills-es5.1a3c78b07cd6f16c6e9a.js" nomodule defer></script><script src="polyfills-es2015.1f913f16a2d346cc8bdc.js" type="module"></script><script src="main-es2015.6ded8e80d228bf1f5a4f.js" type="module"></script><script src="main-es5.6ded8e80d228bf1f5a4f.js" nomodule defer></script></body>
1919
</html>

docs/main-es2015.7bf4c47ba72342d8858c.js renamed to docs/main-es2015.6ded8e80d228bf1f5a4f.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main-es5.7bf4c47ba72342d8858c.js renamed to docs/main-es5.6ded8e80d228bf1f5a4f.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/components/navBar/desplegable/desplegable.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<button *ngIf="isOpen" (click)="isOpen = false" tabindex="-1" class="fixed inset-0 h-full w-full bg-gray-900 opacity-50 cursor-default"></button>
1010

1111
<div *ngIf="isOpen" class="absolute right-0 mt-2 py-1 w-48 bg-white rounded-lg shadow-xl ">
12-
<a href="#" class="block py-2 px-4 text-gray-700 hover:bg-indigo-500 hover:text-white my-1" >Sobre mi</a>
13-
<a href="#" class="block py-2 px-4 text-gray-700 hover:bg-indigo-500 hover:text-white my-1" >Configuracón</a>
14-
<a href="#" class="block py-2 px-4 text-gray-700 hover:bg-indigo-500 hover:text-white my-1" >Salir</a>
12+
<a href="#" class="btn-resp-desplegable text-gray-700" >Sobre mi</a>
13+
<a href="#" class="btn-resp-desplegable text-gray-700" >Configuracón</a>
14+
<a href="#" class="btn-resp-desplegable text-gray-700" >Salir</a>
1515
</div>
1616
</div>
1717

@@ -25,8 +25,8 @@
2525
</div>
2626

2727
<div class=" mt-2 py-1">
28-
<a href="#" class="block py-2 px-4 text-gray-700 hover:bg-indigo-500 hover:text-white my-1" >Sobre mi</a>
29-
<a href="#" class="block py-2 px-4 text-gray-700 hover:bg-indigo-500 hover:text-white my-1" >Configuracón</a>
30-
<a href="#" class="block py-2 px-4 text-gray-700 hover:bg-indigo-500 hover:text-white my-1" >Salir</a>
28+
<a href="#" class="btn-resp-desplegable text-gray-400 rounded" >Sobre mi</a>
29+
<a href="#" class="btn-resp-desplegable text-gray-400 rounded" >Configuracón</a>
30+
<a href="#" class="btn-resp-desplegable text-gray-400 rounded" >Salir</a>
3131
</div>
3232
</div>

src/assets/output.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,29 @@ video {
638638
.btn-resp-menu:hover {
639639
--bg-opacity: 1;
640640
background-color: #2d3748;
641-
background-color: rgba(45, 55, 72, var(--bg-opacity))
641+
background-color: rgba(45, 55, 72, var(--bg-opacity));
642+
}
643+
644+
.btn-resp-desplegable {
645+
display: block;
646+
padding-top: 0.5rem;
647+
padding-bottom: 0.5rem;
648+
padding-left: 1rem;
649+
padding-right: 1rem;
650+
--text-opacity: 1;
651+
color: #4a5568;
652+
color: rgba(74, 85, 104, var(--text-opacity));
653+
margin-top: 0.25rem;
654+
margin-bottom: 0.25rem;
655+
}
656+
657+
.btn-resp-desplegable:hover {
658+
--bg-opacity: 1;
659+
background-color: #667eea;
660+
background-color: rgba(102, 126, 234, var(--bg-opacity));
661+
--text-opacity: 1;
662+
color: #fff;
663+
color: rgba(255, 255, 255, var(--text-opacity));
642664
}
643665

644666
@media (min-width: 640px) {

tailwind.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@
88

99

1010
.btn-resp-menu:hover {
11-
@apply bg-gray-800
11+
@apply bg-gray-800;
1212
}
1313

14+
.btn-resp-desplegable {
15+
@apply block py-2 px-4 text-gray-700 my-1;
16+
}
17+
18+
.btn-resp-desplegable:hover {
19+
@apply bg-indigo-500 text-white;
20+
}
1421

1522
@screen sm {
1623
.btn-resp-menu {

0 commit comments

Comments
 (0)