Updated stylesheet for the tabs
Browse files
style.css
CHANGED
|
@@ -84,3 +84,49 @@
|
|
| 84 |
.item:active .rotate-svg {
|
| 85 |
transform: rotate(360deg);
|
| 86 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
.item:active .rotate-svg {
|
| 85 |
transform: rotate(360deg);
|
| 86 |
}
|
| 87 |
+
|
| 88 |
+
/* Style the tab buttons */
|
| 89 |
+
.tabs {
|
| 90 |
+
overflow: hidden;
|
| 91 |
+
border-bottom: 1px solid #ccc;
|
| 92 |
+
background-color: #f1f1f1;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.tabs button {
|
| 96 |
+
background-color: inherit;
|
| 97 |
+
float: left;
|
| 98 |
+
border: none;
|
| 99 |
+
outline: none;
|
| 100 |
+
cursor: pointer;
|
| 101 |
+
padding: 14px 16px;
|
| 102 |
+
transition: 0.3s;
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
/* Change background on hover */
|
| 106 |
+
.tabs button:hover {
|
| 107 |
+
background-color: #ddd;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/* Highlight the active tab */
|
| 111 |
+
.tabs button.active {
|
| 112 |
+
background-color: #ccc;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
.tab-content {
|
| 118 |
+
/* 1. Set the fixed dimensions */
|
| 119 |
+
width: 100%; /* Or a fixed px value like 500px */
|
| 120 |
+
height: 300px; /* This forces them all to be identical */
|
| 121 |
+
|
| 122 |
+
/* 2. Standard box sizing (includes padding in the 300px) */
|
| 123 |
+
box-sizing: border-box;
|
| 124 |
+
|
| 125 |
+
/* 3. Handle content that is too long */
|
| 126 |
+
overflow-y: auto; /* Adds a scrollbar ONLY if content exceeds 300px */
|
| 127 |
+
|
| 128 |
+
/* Styling from previous example */
|
| 129 |
+
display: none;
|
| 130 |
+
padding: 20px;
|
| 131 |
+
border: 1px solid #ccc;
|
| 132 |
+
}
|