@font-face { font-family: Cabin; src: url('/fonts/cabin.woff'); } body { font-family: Cabin; background: rgb(242, 242, 242); color: rgb(25, 25, 25); } *::selection { background: #ed6f50; color: white; } .content { display: flex; flex-wrap: wrap; max-width: 1440px; margin: auto; margin-top: 30px; background: rgb(246, 246, 246); padding: 5px; border-radius: 30px; } .category { position: relative; width: 50%; padding: 10px; box-sizing: border-box; } .category h2:active { background: rgb(230, 230, 230); } .category::after { content: ''; display: inline-block; position: absolute; right: 30px; top: 32px; width: 20px; height: 20px; background: url('/img/icon-dash.svg') no-repeat center; background-size: 14px; transition: transform 0.1s ease; pointer-events: none; } .category.is-open::after { transform: rotate(90deg); } h2 { margin: 0; font-weight: normal; background: white; border-radius: 30px; padding: 15px 20px; cursor: pointer; } ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; margin-top: 5px; margin-left: -5px; width: calc(100% + 10px); } .category:not(.is-open) ul { display: none; } .success-indicator { position: absolute; right: 70px; top: 33px; z-index: 1; pointer-events: none; } .success-indicator::before { content: ''; display: inline-block; position: absolute; left: -32px; width: 20px; height: 20px; background: url('/img/icon-success.svg') no-repeat center; background-size: 18px; top: 0; } .success-indicator.status-ok { color: #00c04b; } .success-indicator.status-warn { color: rgb(255, 201, 22); } .success-indicator.status-fail { color: #d1001f; } .success-indicator.status-warn::before { background-image: url('/img/icon-warn.svg'); background-size: 20px; } .success-indicator.status-fail::before { background-image: url('/img/icon-fail.svg'); background-size: 12px; } li { position: relative; width: 50%; background: white; padding: 10px 15px; padding-left: 45px; border-radius: 25px; box-sizing: border-box; border: 5px solid rgb(246, 246, 246); display: table; } li > span { display: table-cell; vertical-align: middle; } li > span small { display: block; margin-top: 2px; font-size: 12px; color: rgb(100, 100, 100); } li .time { color: rgb(100, 100, 100); font-size: 0.75em; text-align: right; padding-left: 15px; } li::before { content: ''; display: block; position: absolute; width: 22px; height: 22px; left: 11px; top: calc(50% - 10px); background: url('/img/icon-success.svg') no-repeat center; background-size: 16px; } li.status-fail::before { background-image: url('/img/icon-fail.svg'); background-size: 14px; } li.status-warn::before { background-image: url('/img/icon-warn.svg'); background-size: 22px; margin-top: -1px; } @media (max-width: 800px) { .category, .task { width: 100%; } } @media (min-width: 801px) { .category h2:hover { background: rgb(240, 240, 240); } }