Tone.js/examples/style/examples.css

347 lines
7.5 KiB
CSS
Raw Normal View History

2015-02-12 03:39:28 +00:00
/* FOR MOBILES */
2016-12-22 18:21:46 +00:00
@media (max-width: 750px) {
2015-02-12 03:39:28 +00:00
#TopBar #Homepage a {
font-size: 16px !important; }
2016-12-22 18:21:46 +00:00
#TopBar #Hamburger {
display: initial !important; }
2015-02-28 23:07:12 +00:00
2016-12-22 18:21:46 +00:00
#Sidebar {
display: none;
width: 100% !important; }
iframe {
width: 100% !important; } }
2015-06-26 05:23:05 +00:00
html, body {
padding: 0px;
margin: 0px;
2016-12-22 18:21:46 +00:00
height: calc(100% - 4px);
font-family: "Inconsolata", monospace; }
/**
*
* Example Home
*
*/
#Content.Example {
height: calc(100% - 44px);
width: calc(100% - 6px);
margin-bottom: 0px;
overflow: hidden;
left: 3px; }
#Content.Example #Sidebar {
background-color: white;
width: 280px;
position: absolute;
left: 0px;
top: 0px;
height: calc(100% - 3px);
border-right: 3px solid black;
overflow-y: scroll;
overflow-x: hidden;
z-index: 1; }
#Content.Example #Sidebar .Category {
background-color: black;
color: white;
width: calc(100% - 6px);
height: 25px;
line-height: 25px;
padding-left: 5px;
font-weight: 900; }
#Content.Example #Sidebar .Item {
line-height: 22px;
padding-left: 15px;
height: 22px;
width: 100%; }
#Content.Example #Sidebar .Item:last-child {
margin-bottom: 10px; }
#Content.Example #Sidebar.Open {
display: initial !important; }
#Content.Example iframe {
width: calc(100% - 286px);
border: 0px;
position: absolute;
top: 0px;
right: 0px;
height: 100%;
z-index: 0; }
#Content.Example #Source {
position: absolute;
bottom: 0px;
right: 0px;
width: 80px;
height: 40px;
background-color: black;
color: white;
opacity: 0.5;
cursor: pointer;
z-index: 0; }
#Content.Example #Source:before {
position: absolute;
width: 100%;
height: 100%;
content: "source";
text-align: center;
line-height: 40px; }
#Content.Example #Source:hover {
opacity: 1; }
#Content.Example #Source:hover:active {
background-color: white;
color: black; }
2015-02-12 03:39:28 +00:00
2015-06-26 05:23:05 +00:00
/**
*
* TOP BAR
*
*/
2015-02-12 03:39:28 +00:00
#TopBar {
background-color: black;
height: 35px;
2015-06-26 05:23:05 +00:00
margin: 3px;
2015-02-12 03:39:28 +00:00
position: relative;
2016-12-22 18:21:46 +00:00
width: calc(100% - 6px); }
#TopBar #TonejsLogo {
position: absolute;
top: 3px; }
2015-02-12 03:39:28 +00:00
#TopBar #Examples {
right: 10px;
top: 0px;
height: 35px;
line-height: 35px;
position: absolute;
width: 100px;
text-align: left; }
2015-02-12 03:39:28 +00:00
#TopBar #Examples a {
position: absolute;
font-size: 14px;
color: white;
text-transform: none;
text-decoration: none; }
2016-12-22 18:21:46 +00:00
#TopBar #Hamburger {
display: none;
width: 28px;
height: 28px;
position: absolute;
right: 10px;
top: 3.5px;
cursor: pointer; }
#TopBar #Hamburger span {
margin-top: 6px;
position: absolute;
width: 80%;
height: 3px;
left: 10%;
background-color: white; }
#TopBar #Hamburger span:nth-child(0) {
top: 0%; }
#TopBar #Hamburger span:nth-child(1) {
top: 25%; }
#TopBar #Hamburger span:nth-child(2) {
top: 50%; }
#TopBar #Hamburger:hover:active span {
background-color: #22DBC0; }
2015-02-12 03:39:28 +00:00
2015-02-28 23:07:12 +00:00
#MobileStart {
position: absolute;
width: 100%;
height: 100%;
z-index: 10000;
top: 0px;
left: 0px;
2015-12-06 00:46:28 +00:00
background-color: rgba(0, 0, 0, 0.8); }
2015-02-28 23:07:12 +00:00
#MobileStart #Button {
position: absolute;
left: 50%;
top: 50%;
2015-12-06 00:46:28 +00:00
background-color: #7F33ED;
2015-02-28 23:07:12 +00:00
color: white;
border-radius: 3px;
margin-top: -40px;
margin-left: -40px;
width: 80px;
height: 80px;
text-align: center;
line-height: 80px; }
2015-06-26 05:23:05 +00:00
#MobileStart #Button:hover {
background-color: #7F33ED;
color: white; }
#MobileStart #Button:hover:active {
background-color: #ED33CF;
color: #22DBC0; }
2015-02-12 03:39:28 +00:00
#Content {
2015-06-26 05:23:05 +00:00
position: absolute;
2016-12-22 18:21:46 +00:00
left: 0px;
width: 100%;
2015-06-26 05:23:05 +00:00
margin-bottom: 15px; }
#Content #Title {
height: 23px;
line-height: 23px;
font-size: 1.2em;
color: white;
width: calc(100% - 15px);
2015-06-26 05:23:05 +00:00
padding-left: 15px;
background-color: black; }
#Content #Explanation {
2015-02-20 05:59:19 +00:00
position: relative;
2015-06-26 05:23:05 +00:00
padding: 15px;
color: black;
font-size: 14px;
2015-02-20 05:59:19 +00:00
box-sizing: border-box;
2015-06-26 05:23:05 +00:00
border: 3px solid black;
border-top-width: 0px;
width: 100%; }
2015-06-27 21:25:01 +00:00
#Content #Explanation img {
width: 80%;
max-width: 700px;
margin-left: auto;
margin-right: auto;
display: block; }
#Content a {
color: black;
font-size: 14px;
font-weight: bold;
text-decoration: none; }
#Content a:hover {
color: #1EDF3E; }
#Content a:hover:active {
color: #ED33CF; }
2015-06-26 05:23:05 +00:00
#Content #DragContainer {
margin-left: 3px;
margin-top: 3px;
margin-bottom: 15px;
width: calc(100% - 3px);
height: 400px;
position: relative;
color: white; }
#Content .Slider.x {
position: relative;
height: 94px;
2015-02-12 03:39:28 +00:00
width: 100%;
2015-06-26 05:23:05 +00:00
margin-top: 3px; }
#Content .Slider.x .Axis {
top: 50%;
margin-top: -1.5px; }
#Content .Slider.y {
position: relative;
width: 94px;
height: 400px; }
#Content .Slider.y .Axis {
left: 50%;
margin-left: -1.5px; }
#Content .Dragger {
width: 90px;
height: 90px;
position: absolute;
background-color: black;
border-radius: 50%;
z-index: 1;
margin-top: -2px;
border: 2px solid white;
cursor: -webkit-grab; }
#Content .Dragger #Name {
2015-02-12 03:39:28 +00:00
width: 100%;
height: 100%;
2015-06-26 05:23:05 +00:00
position: relative;
2015-02-13 20:23:30 +00:00
text-align: center;
2015-06-26 05:23:05 +00:00
font-size: 12px;
line-height: 90px;
2015-02-13 20:23:30 +00:00
color: white; }
2015-06-26 05:23:05 +00:00
#Content .Dragger:hover {
background-color: #3833ED;
color: white; }
#Content .Dragger.is-pointer-down {
cursor: -webkit-grabbing;
background-color: #ED33CF; }
#Content .Dragger.is-pointer-down #Name {
color: #1EDF3E; }
#Content .Axis {
position: absolute;
background-color: black;
width: 3px;
height: 3px;
top: 3px;
left: 3px;
border-radius: 1.5px;
z-index: 0; }
#Content #xAxis {
width: calc(100% - 6px); }
#Content #yAxis {
height: calc(100% - 6px); }
#Content .Button {
2015-02-24 17:03:22 +00:00
width: 100%;
2015-06-26 05:23:05 +00:00
margin-top: 3px;
height: 90px;
background-color: black;
line-height: 90px;
color: white;
border-radius: 10px;
text-align: center;
cursor: pointer; }
#Content .Button:hover {
color: white;
background-color: #3833ED; }
#Content .Button:hover:active, #Content #Content .Button:hover:active.Active {
2015-06-26 05:23:05 +00:00
color: #22DBC0;
background-color: #ED33CF; }
2015-06-27 21:25:01 +00:00
#Content .Button.Toggle.Active {
box-sizing: border-box;
border: 3px solid black;
line-height: 84px;
color: black;
background-color: white; }
#Content .Transport {
width: 100%;
height: 30px;
background-color: black;
line-height: 30px;
color: white;
border-radius: 10px;
margin-top: 3px;
position: relative; }
#Content .Transport #Position {
width: 70px;
left: 50%;
margin-left: -35px;
text-align: left;
height: 100%;
position: absolute;
color: white; }
2015-06-27 21:25:01 +00:00
.Keyboard {
height: 100px;
width: 100%;
position: relative; }
2015-06-27 21:25:01 +00:00
code {
background-color: #ECECEC;
color: #333;
2015-06-27 21:25:01 +00:00
padding: 1px; }
#Loading {
z-index: 100000;
position: absolute;
background-color: rgba(140, 140, 140, 0.5);
width: 100%;
height: calc(100% - 37.5px);
top: 37.5px;
left: 0px;
opacity: 1;
2016-12-22 18:21:46 +00:00
transition: opacity 0.4s; }
2015-06-27 21:25:01 +00:00
#Loading #Text {
color: white;
position: absolute;
text-align: center;
top: 50%;
left: 50%;
width: 300px;
margin-left: -150px;
height: 60px;
margin-top: -30px;
line-height: 60px;
font-size: 42px; }
#Loading.Loaded {
pointer-events: none;
opacity: 0; }