Sketchy/css/main.less

228 lines
3.6 KiB
Plaintext
Raw Normal View History

2014-02-04 15:02:41 +00:00
@import 'fonts';
2014-02-01 18:18:29 +00:00
html, body {
margin: 0;
font-size: 10px;
2014-02-04 15:02:41 +00:00
overflow: hidden;
2014-02-01 18:18:29 +00:00
}
*::-moz-focus-inner {
border: none;
}
*:focus {
outline: none;
}
2014-02-04 15:02:41 +00:00
.hidden {
display: none;
visibility: none;
}
2014-02-02 20:16:28 +00:00
div#container {
position: absolute;
}
2014-02-01 18:18:29 +00:00
canvas {
2014-02-02 20:16:28 +00:00
position: absolute;
top: 0;
left: 0;
2014-02-01 18:18:29 +00:00
}
2014-02-04 15:02:41 +00:00
.separator {
display: block;
height: 4.8rem;
width: 0.1rem;
&.long {
background: url('imgs/div_line_lg_black.png');
}
&.small {
background: url('imgs/div_line_sm_black.png');
}
&.left {
float: left;
}
&.right {
float: right;
}
&.menu {
position: relative;
left: -3rem;
}
}
.overlay {
z-index: 9999;
position: absolute;
left: 0;
top: 5.3rem;;
}
button {
-moz-appearance: none;
z-index: 1;
position: relative;
border: none;
}
2014-02-05 13:02:07 +00:00
.picker {
width: 30rem;
height: 30rem;
position: absolute;
left: 50%;
top: 50%;
margin-top: -15rem;
margin-left: -15rem;
#closePicker {
width: 2rem;
height: 2rem;
border: 1px solid rgb(227, 227, 227);
border-radius: 50%;
position: absolute;
top: 1rem;
left: 27rem;
}
}
2014-02-04 15:02:41 +00:00
2014-02-01 18:18:29 +00:00
header {
width: 100%;
2014-02-04 15:02:41 +00:00
height: 5.3rem;
background: url('imgs/header_bg_black.png');
button {
width: 5rem;
2014-02-01 18:18:29 +00:00
height: 5rem;
2014-02-04 15:02:41 +00:00
}
.menu {
background: url('imgs/menu.png') -12px center no-repeat;
float: left;
&:active {
background: url('imgs/menu.png') -12px center no-repeat, url('imgs/bg_overlay_pressed_1.png') left no-repeat;
}
}
.save {
background: url('imgs/download.png') center center no-repeat;
float: right;
&:active {
background: url('imgs/download.png') center center no-repeat, url('imgs/bg_overlay_pressed_2.png') center center;
}
}
#title {
color: white;
font-size: 11pt;
font-family: 'MozTT-Regular';
float: left;
margin: 1.5rem 0;
2014-02-01 18:18:29 +00:00
position: relative;
2014-02-04 15:02:41 +00:00
left: -2rem;
}
}
#menu {
height: 100%;
width: 15rem;
background: #262626;
2014-02-06 13:00:58 +00:00
display: table;
2014-02-04 15:02:41 +00:00
position: absolute;
left: -15rem;
top: 5rem;
color: white;
font-family: 'MozTT-Light';
font-size: 8pt;
2014-02-05 13:02:07 +00:00
transition: left 0.2s ease-out;
2014-02-06 13:00:58 +00:00
border-collapse: collapse;
overflow: hidden;
2014-02-04 15:02:41 +00:00
&.pulled {
left: 0;
2014-02-05 13:02:07 +00:00
transition: left 0.2s ease-out;
2014-02-04 15:02:41 +00:00
}
2014-02-05 13:02:07 +00:00
button[id^='set'], p, .bottom button {
2014-02-04 15:02:41 +00:00
background: none;
display: block;
width: 75%;
color: white;
text-align: left;
margin: 1rem 2.5rem;
font-family: 'MozTT-Light';
font-size: 8pt;
padding: 0 0.6rem;
2014-02-05 13:02:07 +00:00
cursor: pointer;
2014-02-04 15:02:41 +00:00
}
span {
float: right;
font-size: 7pt;
}
div[role='slider'] {
width: 60%;
float: right;
margin: 0 2rem 0 0;
div {
overflow: visible;
button {
margin-top: -3.4rem;
left: 0%;
}
}
}
2014-02-05 13:02:07 +00:00
hr {
clear: both;
padding: 0.7rem 0;
margin-bottom: 0.7rem;
border: none;
border-bottom: 1px solid rgba(255,255,255,0.3);
}
*[class^='icon'] {
2014-02-04 15:02:41 +00:00
display: block;
margin: 1rem 0.5rem;
2014-02-05 13:02:07 +00:00
&:nth-of-type(2) {
padding-top: 0.5rem;
}
2014-02-04 15:02:41 +00:00
&:before {
content: '';
background-size: 2rem;
width: 2rem;
height: 2rem;
display: block;
float: left;
margin: -0.3rem 0.5rem 0 0;
}
}
2014-02-05 13:02:07 +00:00
.icon-settings:before {
background-image: url('imgs/settings.png');
}
.icon-clear:before {
background-image: url('imgs/clear.png');
}
.icon-undo:before {
background-image: url('imgs/undo.png');
}
.icon-redo:before {
background-image: url('imgs/redo.png');
}
2014-02-04 15:02:41 +00:00
.options {
display: block;
margin-top: 1rem;
2014-02-01 18:18:29 +00:00
}
2014-02-05 13:02:07 +00:00
.bottom {
2014-02-06 13:00:58 +00:00
display: table-row;
vertical-align: bottom;
2014-02-05 13:02:07 +00:00
button {
margin-left: 3.5rem;
}
}
2014-02-01 18:18:29 +00:00
}