css
unknown
css
5 months ago
5.0 kB
17
Indexable
body { background-color: #2F3136; color: #c9d1d9; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow: hidden; /* Prevents scroll jumps */ } .container { width: 80%; max-width: 1000px; padding: 20px; background-color: #212529; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25); position: relative; overflow: hidden; /* Prevents content from pushing container upwards */ } h1 { text-align: center; color: #c9c9c9; } /* table */ table { width: 100%; border-collapse: collapse; margin-top: 10px; } /* Default td */ td { border-bottom: 1px solid #30363d; } /* Default th */ th { background-color: #2a2c30; cursor: pointer; color: #c9d1d9; font-weight: 600; border-bottom: 1px solid #30363d; text-align: left; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid #30363d; } /* Category Search */ select { width: 50%; padding: 12px; background-color: #21262d; border: 1px solid #30363d; color: #c9d1d9; border-radius: 8px; cursor: pointer; transition: background-color 0.3s; } select:hover, select:focus { background-color: #30363d; outline: none; } .dropdown { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; } /* Reset Button */ button { padding: 12px; background-color: #21262d; border: 1px solid #30363d; color: #c9d1d9; border-radius: 8px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #30363d; } /* Row hover darker */ .item-row:hover { background-color: #1c1e20; cursor: pointer; } /* Desc row & its dropdown */ tbody tr:nth-child(even) { background-color: #212529; } .description { text-align: center; margin-bottom: 20px; color: #8b949e; } .description-row { display: none; height: 0; overflow: hidden; transition: height 0.4s ease, opacity 0.4s ease; opacity: 0; } .description-row.expanded { height: auto; opacity: 1; transition: height 0.4s ease, opacity 0.4s ease; } .description-row td { padding: 15px 20px; border-top: 1px solid #30363d; border-bottom: 1px solid #30363d; } body > .container { position: relative; transform: translateY(0); transition: transform 0.4s ease-in-out; } .description-box { background-color: #2b2f36; padding: 15px 0px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); color: #c9d1d9; font-style: normal; font-size: 14px; line-height: 1.6; text-align: left; transition: all 0.3s ease; width: 100%; margin: 10px 0; } .item-row:hover { border-bottom: 1px solid #30363d; } /* Hover effect to enhance interactivity */ .item-row:hover .description-box { background-color: #3b4148; /* Change background on hover for emphasis */ } /* Center the description content horizontally */ .description-row td { padding: 0; } /* Left side arrow .th & .td & "Button" */ .thead { width: 50%; } .blank-head { border-top-left-radius: 10px; width: 10px; } .toggle-button { background-color: transparent; border: none; font-size: 16px; transition: transform 0.4s ease; } .toggle-button.rotate { transform: rotate(90deg); } .toggle-button:hover { color: #21262d; } /* Number .th & .td & number */ .num-header{ text-align: center; width: 80px; max-width: 80px; } .numbertd { max-width: 10ch; text-align: center; vertical-align: middle; padding: 0; } .number { font-size: 16px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: white; background-color: #404249; padding: 2px 4px; border-radius: 5px; white-space: nowrap; display: inline-block; } /* Price .th & .td*/ .sortable { width: 60px; text-align: center; } .price { text-align: center; } .sortable:hover { color: #fff47e4e; } /* Product .th & td */ .name-header { padding-left: 20px; text-align: left; } .prod-name { padding-left: 20px; text-align: left; } /* Link .th & .td */ .link-header { padding-left: 15px; text-align: left; width: 270px; max-width: 300px; } .link { padding-left: 15px; text-align: left; } /* Category .th & .td */ .category-header { padding-left: 15px; text-align: left; width: 90px; max-width: 100px; } .category { padding-left: 15px; text-align: left; } /* Date .th & .td */ .date-header { padding-left: 10px; padding-right: 10px; text-align: left; width: 105px; max-width: 105px; border-top-right-radius: 10px; } .date-added { padding-left: 10px; text-align: left; max-width: 87px; }
Editor is loading...
Leave a Comment