HTMLify
style.css
Views: 7 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | @import url('https://fonts.googleapis.com/css?family=Lato&display=swap'); :root { --border-color: #e3e5e4; --background-color: #c3c7ca; --text-color: #34444f; } * { box-sizing: border-box; } body { background-color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 100vh; margin: 0; font-family: 'Lato', sans-serif; } .draggable-list { border: 1px solid var(--border-color); color: var(--text-color); padding: 0; list-style-type: none; } .draggable-list li { background-color: #fff; display: flex; flex: 1; } .draggable-list li:not(:last-of-type) { border-bottom: 1px solid var(--border-color); } .draggable-list .number { background-color: var(--background-color); display: flex; align-items: center; justify-content: center; font-size: 28px; height: 60px; width: 60px; } .draggable-list li.over .draggable { background-color: #eaeaea; } .draggable-list .person-name { margin: 0 20px 0 0; } .draggable-list li.right .person-name { color: #3ae374; } .draggable-list li.wrong .person-name { color: #ff3838; } .draggable { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px; flex: 1; } .check-btn { background-color: var(--background-color); border: none; color: var(--text-color); font-size: 16px; padding: 10px 20px; cursor: pointer; } .check-btn:active { transform: scale(0.98); } .check-btn:focus { outline: none; } |