/******************/ /* Root font-size */ /******************/ @media screen and (max-width: 500px) { html { font-size: 60%; } } @media screen and (min-width: 500px) and (max-width: 900px) { html { font-size: 80%; } } @media screen and (min-width: 900px) { html { font-size: 100%; } } /**************/ /* Header bar */ /**************/ .headerBar { display: flex; justify-content: space-between; background-color: #111111; box-shadow: 0 0.1rem 0.1rem grey; margin-bottom: 0.1rem; } .headerBar > button { display: flex; align-items: center; background-color: #111111; color: white; height: 6rem; font-size: 3rem; border: none; font-family: "DejaVu Serif"; transition: color 0.4s ease; } .headerBar > button:focus { background-color: #222222; } .headerBar > button.title, .headerBar > button.addTimer { letter-spacing: 0.5rem; padding: 0 2rem; } .headerBar > button:hover, .headerBar > button:hover { color: #CCCC88; border-color: #CCCC88; } /**********/ /* Timers */ /**********/ .timers { display: flex; flex-direction: column; font-size: 2rem; align-items: center; } .timer { display: flex; align-items: center; height: 10rem; position: relative; } @media screen and (min-width: 700px) { .timer { width: 70%; } } @media screen and (max-width: 700px) { .timer { width: 100%; } } .timer:nth-child(even) { background-color: #FAFAFA; } .timer.isRinging:hover { background-color: #FED5AE; } .timer button { background-color: rgba(0, 0, 0, 0); border: none; width: 10%; height: 100%; font-size: 2rem; padding: 0; position: relative; } .timer button.remove { color: #AA2222; } .timer:only-of-type button.remove { color: grey; } .timer .name { width: 50%; letter-spacing: 0.1rem; cursor: text; margin-left: 1rem; } .timer .time { width: 8rem; letter-spacing: 0.1rem; border-radius: 0; } .timer .time .text { cursor: text; } .timer .progressBar { background-color: darkgrey; position: absolute; left: 0; bottom: 0; height: 0.8rem; } .timer.isRunning .progressBar { background-color: #CDE4C2; } .timer.isRinging .progressBar { background-color: #FED5AE; } .timer:hover.isRinging .progressBar { top: 0; height: 100%; z-index: 1; opacity: 0; cursor: pointer; } .timer .edition.empty { color: #DDDDDD; } .timer .edition:not(.empty) { color: darkgrey; }