sandboxels/style.css

417 lines
9.8 KiB
CSS
Raw Normal View History

2022-04-19 20:03:11 -04:00
html, body {
width: 100%;
height: 100%;
margin: 0;
}
/* Load the font PressStart2P-Regular.ttf */
@font-face {
font-family: 'Press Start 2P';
src: url('fonts/PressStart2P-Regular.ttf');
}
body {
font-family: 'Press Start 2P';
background-color: #000000;
color: #ffffff;
}
.pagetitle {
padding: 10px;
padding-bottom: 0px;
font-size: 0.75em;
position: absolute;
top: 0;
left: 0;
}
a {color: rgb(255, 0, 255);text-decoration: none;}
a:hover {color: rgb(255, 121, 255);}
a:active, a:hover:active {color: rgb(255, 179, 255);}
#gameDiv { /*game canvas*/
border: 1px solid #ffffff;
2022-11-16 19:18:57 -05:00
position: relative;
2022-04-19 20:03:11 -04:00
left: 50%;
transform: translate(-50%, -0%);
-webkit-touch-callout: none; /* iOS Safari */
2022-11-16 19:18:57 -05:00
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
2022-04-19 20:03:11 -04:00
margin-top: 15px;
2022-11-16 19:18:57 -05:00
}
#bottomInfoBox { /* place under the game canvas */
margin: 1.5em 50px 0px 50px;
font-family: 'Arial';
}
#bottomLeftBox {
float: left;
width: 50%;
text-align: left;
}
#bottomRightBox {
float: right;
width: 50%;
text-align: right;
}
table {
border-collapse: collapse;
width: 75%;
background-color: rgba(255, 255, 255, 0.125);
margin-left: auto;
margin-right: 0px;
}
/* alternating table row colors */
tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.0625);
}
th, td {
text-align: left;
padding: 8px;
border: 1px solid #9f9f9f;
}
kbd {
/* Look like a button */
display: inline-block;
padding: 0.2em 0.6em 0.3em;
font-size: 90%;
font-weight: 700;
color: rgb(255, 255, 255);
background-color: rgb(95, 95, 95);
border-radius: 0.2em;
border: 1px solid #000;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px rgba(0, 0, 0, 0.05);
font-family: 'Arial';
}
2022-04-19 20:03:11 -04:00
#infoParent, #modParent, #settingsParent, .menuParent {
display: none;
}
#infoScreen, #modManager, #settingsMenu, .menuScreen {
position: absolute;
2022-11-16 19:18:57 -05:00
border: 1px solid #ffffff;
2022-04-19 20:03:11 -04:00
left: 50%;
2022-11-16 19:18:57 -05:00
top: 5%;
transform: translate(-50%, 0%);
2022-04-19 20:03:11 -04:00
width: 95%;
height: 50%;
max-width: 700px;
padding: 10px;
background-color: rgb(31, 31, 31);
overflow-x: hidden;
}
2022-11-16 19:18:57 -05:00
#infoSearch, #modManagerUrl {
position: absolute;
bottom: 59.4%;
width: 95%;
max-width: 700px;
height: 50px;
left: 50%;
transform: translate(-50%, 198.5%);
background-color: rgb(66, 66, 66);
color: white;
font-size: 1.5em;
padding: 8px;
font-family: 'Press Start 2P';
}
#infoSearch:focus, #modManagerUrl:focus {
outline: none;
}
2022-04-19 20:03:11 -04:00
.menuTitle {
font-size: 1.5em;
text-decoration: underline;
}
.menuText {
margin-top: 5px;
line-height: 1.5em;
}
#infoText {
white-space: pre-wrap;
}
.XButton {
position: absolute;
right: 0px;
top: 0px;
font-size: 2em;
background-color: rgb(100, 33, 33);
padding:5px;
text-align:center;
border: 1px solid #ffffff;
}
.XButton:hover {
background-color: rgb(200, 33, 33);
}
/*#modManagerAdd {
position: absolute;
bottom: 25%;
right: 25%;
height: 50px;
width: 50px;
transform: translate(-25%, -25%);
background-color: rgb(0, 190, 32);
color: white;
font-size: 2em;
padding: 10px;
font-family: 'Press Start 2P';
}*/
#modManagerList {
margin-top: 20px;
}
#modManagerList li {
list-style-type: none;
position: relative;
}
#modManagerList li::before {
content: '•';
position: absolute;
left: -1.5em;
font-size: 1em;
font-family: 'Press Start 2P';
}
.removeModX {
color: red;
cursor: pointer;
}
.removeModX:hover {
color: rgb(255, 107, 107);
}
.infoLink {
color: rgb(116, 140, 221);
cursor: pointer;
text-decoration: underline;
}
button, input[type="submit"], input[type="reset"] {
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
}
.usingTab button:focus {
filter: brightness(75%);
outline: none;
}
#underBox {
2022-11-16 19:18:57 -05:00
position: relative;
2022-04-19 20:03:11 -04:00
left: 50%;
transform: translate(-50%, -0%);
margin-top: 10px;
width: 100%;
}
#controls button {
padding: 5px 10px;
border-radius: 5px;
font-size: 1em;
text-shadow: 0.5px 1px 4px #000000;
color: rgba(255, 255, 255, 0.75);
border: 1px solid #797979;
margin: 0px 5px 5px 5px;
font-variant: small-caps;
}
#controls button.bright {
text-shadow: 0.5px 1px 4px #ffffff;
color: rgba(0, 0, 0, 0.75);
}
/*Darken when active*/
#controls button:active, #controls button:active:hover {
filter: brightness(60%);
}
#controls button:hover {
filter: brightness(90%);
}
#controls button:disabled {
cursor: not-allowed;
}
#controls button[current="true"], #controls button[on="true"] {
border: 1px solid #ffffff;
filter: brightness(110%);
box-shadow: 0 5px 15px rgba(255, 255, 255, .4);
color: rgba(255, 255, 255, 1);
}
#controls button.bright[current="true"] {
color: rgba(0, 0, 0, 1);
}
#controls button[on="true"] {
border-color:lime;
color:lime;
}
#controls div {
display:block;
}
.stat {
margin-right: 25px;
margin-bottom: 5px;
float:right;
}
#stats {
2022-11-16 19:18:57 -05:00
margin: 0px 5px 0px 5px;
2022-04-19 20:03:11 -04:00
font-size: 0.75em;
2022-11-16 19:18:57 -05:00
height: 1.5em;
2022-04-19 20:03:11 -04:00
width:100%;
}
2022-11-23 20:42:14 -05:00
/* screen size < 800px */
@media screen and (max-width: 800px) { /* Mobile Styles */
2022-04-19 20:03:11 -04:00
.pagetitle {
font-size: 1em;
padding-left: 0.25em;
}
2022-11-16 19:18:57 -05:00
#bottomLeftBox, #bottomRightBox {
width: 100%;
margin: 1px;
text-align: left;
}
table {
width: 100%;
margin-left: 0px;
margin-right: 0px;
}
2022-04-19 20:03:11 -04:00
}
/* screen size > 1325px, h1::after {content:" Sandboxels"} */
@media screen and (min-width: 1325px) {
.pagetitle::after {content:" Sandboxels"}
}
#stat-pos, #stat-pixels, #stat-shift, #stat-tps, #stat-ticks, #stat-view {
float:left;
}
.categoryName {
font-size: 0.75em;
text-transform: uppercase;
margin-left: 5px;
vertical-align: middle;
}
#extraInfo {
margin:5px
}
#toolControls, #category-tools {
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
width: 100%;
}
2022-04-19 20:03:11 -04:00
/* Scrollbars */
2022-04-19 20:03:11 -04:00
#toolControls, #category-tools, #categoryControls, #elementControls {
scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.1);
scrollbar-width: thin;
}
2022-04-19 20:03:11 -04:00
@media screen and (max-width: 700px) {
#toolControls, #category-tools, #categoryControls, #elementControls {
2022-11-16 19:18:57 -05:00
margin-bottom: 5px !important;
2022-04-19 20:03:11 -04:00
}
}
2022-04-19 20:03:11 -04:00
#toolControls::-webkit-scrollbar, #category-tools::-webkit-scrollbar, #categoryControls::-webkit-scrollbar, #elementControls::-webkit-scrollbar {
width: 5px;
height: 8px;
background-color: rgba(255, 255, 255, 0.15);
}
#toolControls::-webkit-scrollbar-thumb, #category-tools::-webkit-scrollbar-thumb, #categoryControls::-webkit-scrollbar-thumb, #elementControls::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.25);
border-radius: 5px;
}
#toolControls::-webkit-scrollbar-track, #category-tools::-webkit-scrollbar-track, #categoryControls::-webkit-scrollbar-track, #elementControls::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.15);
border-radius: 10px;
}
#toolControls::-webkit-scrollbar-thumb:hover, #category-tools::-webkit-scrollbar-thumb:hover, #categoryControls::-webkit-scrollbar-thumb:hover, #elementControls::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.3);
}
#toolControls {
z-index: 3;
}
#category-tools {
z-index: 2;
}
2022-11-16 19:18:57 -05:00
2022-04-19 20:03:11 -04:00
#categoryControls {
margin-bottom: 5px;
background-color: rgba(255, 255, 255, 0.125);
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
width: 100%;
2022-11-16 19:18:57 -05:00
position: relative;
2022-04-19 20:03:11 -04:00
z-index: 1;
padding-bottom:1px;
}
#categoryControls button {
/* Borderless buttons */
border: none;
border-radius: 0;
padding-right: 8px;
margin: 0;
padding-top: 5px;
padding-bottom: 5px;
display: inline-block;
position: relative;
z-index:0;
}
#categoryControls button:not(:last-child) {
border-right: 1px solid rgba(255, 255, 255, 0.4);
}
#categoryControls button[current="true"] {
border: none;
background-color: rgba(255, 255, 255, 0.4);
}
.category {
2022-11-16 19:18:57 -05:00
margin-top:0.75em;
2022-04-19 20:03:11 -04:00
position:relative;
display:flex;
flex-direction: column;
flex-wrap:wrap;
text-align:center;
}
button, input { /*Disable double tap zoom on mobile devices*/
touch-action: manipulation;
}
select {
background-color: black;
vertical-align: middle;
margin-left: 5px;
margin-right: 5px;
border: white 0.5px solid;
border-radius: 20px;
padding: 0.5em;
color: white;
font-family: Arial, Helvetica, sans-serif;
}
.settingsButton {
background-color: black;
vertical-align: middle;
margin-left: 5px;
margin-right: 5px;
border: white 0.5px solid;
border-radius: 20px;
padding: 0.5em;
color: white;
font-family: Arial, Helvetica, sans-serif;
}
#canvasDiv {
position:relative;
2023-03-17 19:56:35 -04:00
overflow-x:hidden
2022-04-19 20:03:11 -04:00
}
#colorSelector {
position:absolute;
bottom:1em;
right:1em;
display: none;
}
.categoryButton.notify {
background-color: rgba(255, 0, 0, 0.25);
}
/* .elementButton.notify with a red glow */
.elementButton.notify {
-webkit-box-shadow: 0px 0px 15px 5px #FF0000;
box-shadow: 0px 0px 15px 5px #FF0000;
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
2022-07-24 19:05:56 -04:00
}
.setting-span {
display:block;padding-bottom:0.5em
2022-04-19 20:03:11 -04:00
}