Spaces:
Runtime error
Runtime error
| body { | |
| font-family: monospace; | |
| text-align: center; | |
| padding: 20px; | |
| box-sizing: border-box; | |
| background-color: #f5f5f5; | |
| } | |
| h1 { | |
| margin-bottom: 13px; | |
| color: #373737; | |
| } | |
| .instructions { | |
| margin-bottom: 40px; | |
| } | |
| .instructions p { | |
| line-height: 0.5; | |
| } | |
| #grid { | |
| margin: 0 auto; | |
| border-collapse: collapse; | |
| } | |
| #grid td { | |
| width: 30px; | |
| height: 30px; | |
| border: 1px solid #000; | |
| cursor: pointer; | |
| } | |
| /* Darker shade of grey for 2nd and 4th beat */ | |
| #grid td:nth-child(-n+9), | |
| #grid td:nth-child(n+18):nth-child(-n+25) | |
| { | |
| background-color: #c7c7c7; | |
| } | |
| #grid td.darkened::before { | |
| content: ""; | |
| display: block; | |
| position: absolute; | |
| top: 0px; | |
| right: 0px; | |
| bottom: 0px; | |
| left: 0px; | |
| /* Black overlay with 30% opacity */ | |
| background-color: rgba(0, 0, 0, 0.3); | |
| /* Makes sure you can still interact with the cell beneath */ | |
| pointer-events: none; | |
| z-index: 1; | |
| } | |
| #grid td { | |
| position: relative; | |
| } | |
| #grid .activated { | |
| background-color: #606060 ; | |
| } | |
| #grid .deactivated { | |
| background-color: #E9E9E9; | |
| } | |
| #grid .row-title { | |
| font-weight: lighter; | |
| text-align: left; | |
| padding: 20px; | |
| background-color: #f5f5f5; | |
| } | |
| #grid th { | |
| padding-right: 20px; | |
| font-weight: normal; | |
| } | |
| .button { | |
| border-radius: 3px; | |
| border: 1px solid transparent; | |
| background-color: #e4e4e4; | |
| font-family: monospace; | |
| border-color: #000; | |
| } | |
| .clear-div { | |
| margin-bottom: 25px; | |
| } | |
| #emptyMessage { | |
| display: none; | |
| margin-top: 10px; | |
| font-style: italic; | |
| } | |
| .generation-div { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| flex-direction: column; | |
| gap: 15px; | |
| margin-top: 25px; | |
| margin-bottom: 5px; | |
| } | |
| .checkbox-div { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| } | |
| .checkbox { | |
| margin: 0px; | |
| margin-right: 0px; | |
| vertical-align: middle; | |
| } | |
| .button:hover{ | |
| background-color: #d4d4d4; | |
| } | |
| .button:active{ | |
| outline: none; | |
| background: transparent; | |
| border: 1px solid rgb(0, 0, 0); | |
| } | |
| #generate:disabled { | |
| background-color: #d4d4d4; | |
| color: #888; | |
| border: 1px solid #aaa; | |
| cursor: not-allowed; | |
| } | |
| #generate:disabled:hover { | |
| background-color: #d4d4d4; | |
| color: #888; | |
| border: 1px solid #aaa; | |
| } | |
| #grid .label-row { | |
| text-align: center; | |
| font-weight: bold; | |
| background-color: #f5f5f5; | |
| } | |
| /*Drums*/ | |
| #midivisualizer svg rect.note[data-is-drum="true"]{ | |
| fill: #b19b85; | |
| } | |
| /*Bass*/ | |
| #midivisualizer svg rect.note[data-instrument="1"]{ | |
| fill: #A5A1A0; | |
| } | |
| /*Piano*/ | |
| #midivisualizer svg rect.note[data-instrument="2"]{ | |
| fill: #a4a893; | |
| } | |
| /*Strings*/ | |
| #midivisualizer svg rect.note[data-instrument="3"]{ | |
| fill: #8e9aa2; | |
| } | |
| #midivisualizer svg rect.note.active { | |
| fill:rgb(61, 61, 61); | |
| } | |
| #midiplayer { | |
| margin-top: 10px; | |
| } | |
| .icon-container { | |
| display: flex; | |
| justify-content: center; | |
| gap: 20px; | |
| margin-bottom: 40px; | |
| } | |
| .info, .github, .paper { | |
| display: inline-block; | |
| position: relative; | |
| cursor: pointer; | |
| } | |
| .fa-square-github, .fa-file-lines, .fa-circle-info { | |
| transition: color 0.3s; | |
| cursor: pointer; | |
| font-size: 20px; | |
| color: #373737; | |
| } | |
| .fa-file-lines { | |
| font-size: 18.5px; | |
| } | |
| .fa-circle-info { | |
| font-size: 19.5px; | |
| animation: pulse 1s ease-in-out 6; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.3); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| } | |
| } | |
| .fa-square-github:hover, .fa-file-lines:hover, .fa-circle-info:hover { | |
| color: #676767; | |
| } | |
| .info-text { | |
| display: none; | |
| position: absolute; | |
| top: 150%; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| background-color: #333; | |
| color: white; | |
| padding: 20px; | |
| border-radius: 5px; | |
| white-space: normal; | |
| z-index: 10; | |
| margin-bottom: 5px; | |
| width: 600px; | |
| word-wrap: break-word; | |
| text-align: left; | |
| } | |
| .info-text::before { | |
| content: ''; | |
| position: absolute; | |
| top: -5px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 0; | |
| height: 0; | |
| border-left: 10px solid transparent; | |
| border-right: 10px solid transparent; | |
| border-bottom: 10px solid #333; | |
| } | |
| .info:hover .info-text, .fa-circle-info:hover + .info-text { | |
| display: block; | |
| } | |
| .info-text li { | |
| margin-bottom: 10px; | |
| } | |
| .table-container { | |
| overflow-x: auto; | |
| } | |