update
This commit is contained in:
@@ -51,7 +51,7 @@ a:hover {
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
|
||||
.link,
|
||||
a {
|
||||
color: lightblue;
|
||||
@@ -59,7 +59,7 @@ a:hover {
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
||||
|
||||
.supermesh-indicator,
|
||||
.no_print {
|
||||
display: none;
|
||||
@@ -304,4 +304,123 @@ hr {
|
||||
|
||||
#snackbar.show {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.ribbon {
|
||||
display: flex;
|
||||
background: linear-gradient(to bottom, #d0d8ec, #eef2fa);
|
||||
border-bottom: 1px solid #a2a9b9;
|
||||
padding: 10px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.ribbon-orb {
|
||||
width: 50px !important;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
background: url(assets/icon512_maskable.png);
|
||||
background-size: 50px 50px;
|
||||
background-position: center middle;
|
||||
border: 1px solid #a2a9b9;
|
||||
margin-right: 10px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.ribbon-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
margin-top: 1px;
|
||||
width: calc(100% - 60px);
|
||||
}
|
||||
|
||||
.ribbon-tabs {
|
||||
display: flex;
|
||||
background: #c8d4eb;
|
||||
border: 1px solid #a2a9b9;
|
||||
height: 26px;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
|
||||
.ribbon-tab {
|
||||
padding: 4px 15px;
|
||||
cursor: pointer;
|
||||
border-right: 1px solid #a2a9b9;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ribbon-tab.active {
|
||||
background-color: #eaf0fb;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ribbon-panel {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 10px 0;
|
||||
background-color: #c8d4eb;
|
||||
border: 1px solid #a2a9b9;
|
||||
}
|
||||
|
||||
.ribbon-button {
|
||||
width: 64px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.ribbon-button img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.ribbon-button .label {
|
||||
font-size: 12px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.ribbon-button.orange {
|
||||
background-color: orange;
|
||||
border-radius: 3px;
|
||||
padding: 2px;
|
||||
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.popup {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #fff;
|
||||
border: 2px solid #ccc;
|
||||
padding: 20px;
|
||||
z-index: 9999;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.popup button {
|
||||
margin-top: 10px;
|
||||
padding: 5px 15px;
|
||||
}
|
||||
|
||||
details {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
details[open] .ribbon-panel {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
details:not([open]) .ribbon-panel {
|
||||
display: none;
|
||||
}
|
||||
@@ -1006,10 +1006,15 @@ function SetPages() {
|
||||
return;
|
||||
}
|
||||
var a = document.createElement("a");
|
||||
a.className = "button " + PAGES[key].navcss;
|
||||
var img = document.createElement("img")
|
||||
var label = document.createElement("div")
|
||||
a.className = "ribbon-button";
|
||||
a.href = "#" + key;
|
||||
a.innerText = PAGES[key].Title;
|
||||
document.getElementById("appendApps").append(a);
|
||||
label.innerText = PAGES[key].Title;
|
||||
label.className = "label"
|
||||
img.src = PAGES[key].icon
|
||||
a.append(img, label)
|
||||
document.getElementById("appendApps2").append(a);
|
||||
});
|
||||
var a = document.createElement("a");
|
||||
a.className = "button btn7";
|
||||
|
||||
@@ -57,6 +57,43 @@
|
||||
</fieldset>
|
||||
</details>
|
||||
<!-- <button onclick="displayPost('index')">Ir a la pagina de inicio</button> -->
|
||||
<div class="ribbon">
|
||||
<div class="ribbon-orb"></div>
|
||||
|
||||
<div class="ribbon-content">
|
||||
<div class="ribbon-tabs">
|
||||
<div class="ribbon-tab active" data-tab="modulos">Modulos</div>
|
||||
<div class="ribbon-tab" data-tab="admin">Admin</div>
|
||||
</div>
|
||||
|
||||
<!-- Tab: Modulos -->
|
||||
<details id="tab-modulos" open>
|
||||
<summary hidden>Modulos</summary>
|
||||
<div class="ribbon-panel" id="appendApps2">
|
||||
<button class="ribbon-button" onclick="showMessage()">
|
||||
<img src="https://raw.githubusercontent.com/darealshinji/haiku-icons/refs/heads/master/svg/File_Person.svg">
|
||||
<div class="label">Personas</div>
|
||||
</button>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<!-- Tab: Admin -->
|
||||
<details id="tab-admin">
|
||||
<summary hidden>Admin</summary>
|
||||
<div class="ribbon-panel">
|
||||
<div class="ribbon-button orange">
|
||||
<img src="https://raw.githubusercontent.com/darealshinji/haiku-icons/refs/heads/master/svg/Settings.svg">
|
||||
<div class="label">Settings</div>
|
||||
</div>
|
||||
<div class="ribbon-button">
|
||||
<img src="https://raw.githubusercontent.com/darealshinji/haiku-icons/refs/heads/master/svg/Lock_Lock.svg">
|
||||
<div class="label">Security</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="appendApps">
|
||||
<!--<a class="button nav-supercafe nav-disabled" disabled>SuperCafé</a>
|
||||
<a class="button nav-comedor nav-disabled" disabled>Menú Comedor</a>
|
||||
|
||||
180
testing.html
Normal file
180
testing.html
Normal file
@@ -0,0 +1,180 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Office 2007 Ribbon</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Segoe UI, Tahoma, sans-serif;
|
||||
}
|
||||
|
||||
.ribbon {
|
||||
display: flex;
|
||||
background: linear-gradient(to bottom, #d0d8ec, #eef2fa);
|
||||
border-bottom: 1px solid #a2a9b9;
|
||||
padding: 10px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.ribbon-orb {
|
||||
width: 50px !important;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
background: url(assets/icon512_maskable.png);
|
||||
background-size: 50px 50px;
|
||||
background-position: center middle;
|
||||
border: 1px solid #a2a9b9;
|
||||
margin-right: 10px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.ribbon-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
margin-top: 1px;
|
||||
width: calc(100% - 60px);
|
||||
}
|
||||
|
||||
.ribbon-tabs {
|
||||
display: flex;
|
||||
background: #c8d4eb;
|
||||
border: 1px solid #a2a9b9;
|
||||
height: 26px;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
|
||||
.ribbon-tab {
|
||||
padding: 4px 15px;
|
||||
cursor: pointer;
|
||||
border-right: 1px solid #a2a9b9;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ribbon-tab.active {
|
||||
background-color: #eaf0fb;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ribbon-panel {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 10px 0;
|
||||
background-color: #c8d4eb;
|
||||
border: 1px solid #a2a9b9;
|
||||
}
|
||||
|
||||
.ribbon-button {
|
||||
width: 64px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.ribbon-button img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.ribbon-button .label {
|
||||
font-size: 12px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.ribbon-button.orange {
|
||||
background-color: orange;
|
||||
border-radius: 3px;
|
||||
padding: 2px;
|
||||
box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.popup {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #fff;
|
||||
border: 2px solid #ccc;
|
||||
padding: 20px;
|
||||
z-index: 9999;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.popup button {
|
||||
margin-top: 10px;
|
||||
padding: 5px 15px;
|
||||
}
|
||||
|
||||
details {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
details[open] .ribbon-panel {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
details:not([open]) .ribbon-panel {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<!-- Popup Message Box -->
|
||||
<div class="popup" id="popup">
|
||||
<div class="popup-content">
|
||||
<p>Button "Save" Clicked.</p>
|
||||
<button onclick="closePopup()">OK</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function showMessage() {
|
||||
document.getElementById("popup").style.display = "block";
|
||||
}
|
||||
|
||||
function closePopup() {
|
||||
document.getElementById("popup").style.display = "none";
|
||||
}
|
||||
|
||||
const tabs = document.querySelectorAll('.ribbon-tab');
|
||||
const detailTabs = {
|
||||
modulos: document.getElementById('tab-modulos'),
|
||||
admin: document.getElementById('tab-admin')
|
||||
};
|
||||
|
||||
tabs.forEach(tab => {
|
||||
tab.addEventListener('click', () => {
|
||||
const selected = tab.getAttribute('data-tab');
|
||||
|
||||
// Toggle details
|
||||
for (const [key, detailsEl] of Object.entries(detailTabs)) {
|
||||
if (key === selected) {
|
||||
detailsEl.setAttribute('open', '');
|
||||
} else {
|
||||
detailsEl.removeAttribute('open');
|
||||
}
|
||||
}
|
||||
|
||||
// Toggle tab active class
|
||||
tabs.forEach(t => t.classList.remove('active'));
|
||||
tab.classList.add('active');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user