Spaces:
Runtime error
Runtime error
| /* Windows 95 CSS Customizations */ | |
| @font-face { | |
| font-family: "R95 Sans Serif 12pt"; | |
| src: url("https://cdn.jsdelivr.net/gh/React95/R95-Sans-serif@main/sources/12pt/R95%20Sans%20serif%2012pt.ttf") format("truetype"); | |
| } | |
| * { | |
| font-family: "R95 Sans Serif 12pt", sans-serif ; | |
| } | |
| /* Textbox Component */ | |
| .input-container { | |
| padding: 2px ; | |
| font-size: 1rem ; | |
| border-style: solid ; | |
| border-width: 2px ; | |
| border-color: rgb(132, 133, 132) rgb(254, 254, 254) rgb(254, 254, 254) rgb(132, 133, 132) ; | |
| line-height: 1.5 ; | |
| } | |
| .input-container::before { | |
| position: absolute ; | |
| left: 0px ; | |
| top: 0px ; | |
| content: "" ; | |
| width: calc(100% - 4px) ; | |
| height: calc(100% - 4px) ; | |
| border-style: solid ; | |
| border-width: 2px ; | |
| border-color: rgb(10, 10, 10) rgb(223, 223, 223) rgb(223, 223, 223) rgb(10, 10, 10) ; | |
| pointer-events: none ; | |
| box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px inset ; | |
| } | |
| /* Number component */ | |
| input[type="number"] { | |
| left: 0px ; | |
| top: 0px ; | |
| content: "" ; | |
| border-style: solid ; | |
| border-width: 2px ; | |
| border-color: rgb(10, 10, 10) rgb(223, 223, 223) rgb(223, 223, 223) rgb(10, 10, 10) ; | |
| pointer-events: none ; | |
| box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px inset ; | |
| } | |
| input[type="number"]::-webkit-inner-spin-button, | |
| input[type="number"]::-webkit-outer-spin-button { | |
| -webkit-appearance: none ; | |
| margin: 0 ; | |
| } | |
| /* Slider styling */ | |
| .slider_input_container { | |
| display: flex ; | |
| align-items: center ; | |
| background: #c0c0c0 ; | |
| padding: 5px 0 ; | |
| border: 2px solid #000000 ; | |
| box-shadow: 1px 1px 0px white inset, -1px -1px 0px #808080 inset ; | |
| position: relative ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| .min_value, .max_value { | |
| padding: 0 5px ; | |
| } | |
| input[type="range"] { | |
| appearance: none ; | |
| width: 100% ; | |
| height: 18px ; | |
| background: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| position: relative ; | |
| margin: 10px 0 15px ; | |
| } | |
| input[type="range"]:focus { | |
| outline: none ; | |
| } | |
| /* Track styling */ | |
| input[type="range"]::-webkit-slider-runnable-track { | |
| width: 100% ; | |
| height: 2px ; | |
| box-sizing: border-box ; | |
| background: black ; | |
| border-right: 1px solid #808080 ; | |
| border-bottom: 1px solid #808080 ; | |
| box-shadow: 1px 0 0 white, 1px 1px 0 white, 0 1px 0 white, -1px 0 0 #808080, | |
| -1px -1px 0 #808080, 0 -1px 0 #808080, -1px 1px 0 white, 1px -1px #808080 ; | |
| } | |
| input[type="range"]::-moz-range-track { | |
| width: 100% ; | |
| height: 2px ; | |
| box-sizing: border-box ; | |
| background: black ; | |
| border-right: 1px solid #808080 ; | |
| border-bottom: 1px solid #808080 ; | |
| box-shadow: 1px 0 0 white, 1px 1px 0 white, 0 1px 0 white, -1px 0 0 #808080, | |
| -1px -1px 0 #808080, 0 -1px 0 #808080, -1px 1px 0 white, 1px -1px #808080 ; | |
| } | |
| /* Slider thumb styling - triangular shape */ | |
| input[type="range"]::-webkit-slider-thumb { | |
| -webkit-appearance: none ; | |
| width: 21px ; | |
| height: 21px ; | |
| background-color: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| transform: translateY(-5px) ; | |
| cursor: pointer ; | |
| position: relative ; | |
| z-index: 2 ; | |
| background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3e%3cpath fill='%23c0c0c0' stroke='%23000' d='M4,1 h12 v14 l-6,5 l-6,-5 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23FFF' d='M5,2 h10 v12 l-5,4 l-5,-4 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23808080' d='M15,2 v12 l-5,4 l-5,-4 v-12'%3e%3c/path%3e%3c/svg%3e") ; | |
| background-repeat: no-repeat ; | |
| background-position: center ; | |
| } | |
| input[type="range"]::-moz-range-thumb { | |
| width: 21px ; | |
| height: 21px ; | |
| background-color: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| border-radius: 0 ; | |
| cursor: pointer ; | |
| position: relative ; | |
| z-index: 2 ; | |
| background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3e%3cpath fill='%23c0c0c0' stroke='%23000' d='M4,1 h12 v14 l-6,5 l-6,-5 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23FFF' d='M5,2 h10 v12 l-5,4 l-5,-4 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23808080' d='M15,2 v12 l-5,4 l-5,-4 v-12'%3e%3c/path%3e%3c/svg%3e") ; | |
| background-repeat: no-repeat ; | |
| background-position: center ; | |
| } | |
| /* Tick marks for the slider */ | |
| .slider_input_container::after { | |
| content: ""; | |
| position: absolute; | |
| left: 48px; | |
| right: 26px; | |
| bottom: 8px; | |
| height: 6px; | |
| background-image: | |
| repeating-linear-gradient( | |
| to right, | |
| #000000, | |
| #000000 1px, | |
| transparent 1px, | |
| transparent 10% | |
| ); | |
| pointer-events: none; | |
| } | |
| /* Dropdown options styling */ | |
| div[id^="dropdown-options"] { | |
| background-color: white ; | |
| border: 2px solid #000000 ; | |
| box-shadow: 1px 1px 0px white inset, -1px -1px 0px #808080 inset ; | |
| border-radius: 0 ; | |
| margin-top: 1px ; | |
| max-height: 200px ; | |
| overflow-y: auto ; | |
| } | |
| div[id^="dropdown-options"] div { | |
| padding: 2px 4px ; | |
| } | |
| div[id^="dropdown-options"] div:hover, | |
| div[id^="dropdown-options"] div.selected { | |
| background-color: #000080 ; | |
| color: white ; | |
| } | |
| /* Scrollbars */ | |
| ::-webkit-scrollbar { | |
| width: 16px; | |
| height: 16px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #c0c0c0; | |
| border: 1px solid #000000; | |
| box-shadow: inset 1px 1px 0px white, inset -1px -1px 0px #808080; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #c0c0c0; | |
| border: 1px solid #000000; | |
| box-shadow: inset 1px 1px 0px white, inset -1px -1px 0px #808080; | |
| } | |
| ::-webkit-scrollbar-button { | |
| display: block; | |
| background: #c0c0c0; | |
| border: 1px solid #000000; | |
| box-shadow: inset 1px 1px 0px white, inset -1px -1px 0px #808080; | |
| width: 16px; | |
| height: 16px; | |
| } | |
| ::-webkit-scrollbar-button:vertical:start:decrement { | |
| background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points='8,4 4,8 12,8' fill='black'/></svg>"); | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| } | |
| ::-webkit-scrollbar-button:vertical:end:increment { | |
| background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points='8,12 4,8 12,8' fill='black'/></svg>"); | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| } | |
| /* Windows 95 checkboxes and radio buttons */ | |
| input[type="checkbox"], input[type="radio"] { | |
| appearance: none ; | |
| width: 13px ; | |
| height: 13px ; | |
| background: white ; | |
| border: 1px solid black ; | |
| box-shadow: inset -1px -1px 0px white, inset 1px 1px 0px #808080 ; | |
| } | |
| input[type="checkbox"]:checked { | |
| background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13'><path d='M2,6 L5,9 L11,3' stroke='black' stroke-width='2' fill='none'/></svg>") no-repeat center ; | |
| } | |
| input[type="radio"] { | |
| border-radius: 50% ; | |
| } | |
| input[type="radio"]:checked { | |
| background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13'><circle cx='6.5' cy='6.5' r='3.5' fill='black'/></svg>") no-repeat center ; | |
| } | |
| /* Windows 95 buttons additional styling */ | |
| button { | |
| text-align: center ; | |
| position: relative ; | |
| } | |
| button:active { | |
| padding-top: 2px ; | |
| padding-left: 2px ; | |
| padding-bottom: 0px ; | |
| padding-right: 0px ; | |
| } | |
| /* File input custom styling */ | |
| input[type="file"] { | |
| background-color: white ; | |
| border: 2px solid #000000 ; | |
| box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px white ; | |
| } | |
| /* Focus outlines */ | |
| *:focus { | |
| outline: 1px dotted black ; | |
| } | |
| /* Progress bars */ | |
| progress { | |
| appearance: none ; | |
| height: 16px ; | |
| background: white ; | |
| border: 2px solid #000000 ; | |
| box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px white ; | |
| } | |
| progress::-webkit-progress-bar { | |
| background: white ; | |
| } | |
| progress::-webkit-progress-value { | |
| background: #000080 ; | |
| } | |
| .icon-button-wrapper { | |
| box-shadow: var(--block-label-shadow); | |
| border: var(--block-label-border-width) solid var(--block-label-border-color); | |
| border-top: none; | |
| border-left: none; | |
| border-radius: var(--block-label-radius); | |
| background: var(--block-label-background-fill); | |
| pointer-events: none; | |
| color: var(--block-label-text-color); | |
| font-weight: var(--block-label-text-weight); | |
| font-size: var(--block-label-text-size); | |
| line-height: var(--line-sm); | |
| } | |
| .icon-button-wrapper button { | |
| background: none; | |
| } | |