jsoneditor/app/web/app.css

293 lines
4.4 KiB
CSS
Raw Normal View History

2012-04-21 19:28:28 +08:00
body, html {
font-family: arial, sans-serif;
font-size: 11pt;
2012-04-21 19:28:28 +08:00
width: 100%;
height: 100%;
margin: 0;
padding: 0;
2012-04-21 19:28:28 +08:00
overflow: hidden;
2012-04-21 19:28:28 +08:00
}
span.header-light {
color: gray;
2012-04-21 19:28:28 +08:00
}
#header {
width: 100%;
height: 40px;
/* TODO
overflow: hidden;
*/
background: #4D4D4D url('img/header_background.png');
color: white;
2012-04-21 19:28:28 +08:00
}
#logo {
height: 32px;
margin: 4px 10px;
border: none;
}
#menu {
position: absolute;
top: 5px;
right: 15px;
font-size: 11pt;
}
#menu ul {
list-style: none;
margin: 0;
padding: 0;
clear: both;
}
#menu ul li {
color: #e6e6e6;
background: none;
border: none;
border-right: 1px solid #737373;
height: 30px;
padding: 0;
margin: 0;
float: left;
position: relative;
text-decoration: none;
}
#menu ul li:first-child {
border-left: 1px solid #737373;
}
#menu ul li:hover {
color: white;
background-color: #737373;
}
#menu ul li ul {
display: none;
}
#menu ul li:hover > ul {
display: block;
}
#menu ul li ul {
position: absolute;
top: 30px;
left: 0;
z-index: 999;
background: #f5f5f5;
border: 1px solid lightgray;
box-shadow: 0 0 15px rgba(128, 128, 128, 0.5);
}
#menu ul li ul li {
color: #737373;
background: none;
border: none;
margin: 0;
padding: 0;
}
#menu ul li ul li:first-child {
border-left: none;
}
#menu ul li ul li:hover {
background-color: white;
}
#menu a {
padding: 6px 10px;
display: block;
cursor: pointer;
text-decoration: none;
color: white;
}
#menu ul li ul li a {
color: #737373;
width: 80px;
}
#openMenuButton {
font-size: 75%;
margin-left: 2px;
}
#menu #open {
cursor: default;
}
/* TODO: enable the menu with keys (when openMenuButton is active) */
2012-04-21 19:28:28 +08:00
#auto {
width: 100%;
height: 100%;
margin: -40px 0 -24px 0;
padding: 40px 0 24px 0;
2012-05-30 16:47:46 +08:00
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
2012-04-21 19:28:28 +08:00
overflow: hidden;
2012-04-21 19:28:28 +08:00
}
#contents {
width: 100%;
height: 100%;
overflow: hidden;
2012-04-21 19:28:28 +08:00
}
#jsonformatter, #jsoneditor {
height: 100%;
width: 400px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
2012-04-21 19:28:28 +08:00
}
#jsonformatter {
float: left;
padding: 15px 0 15px 15px;
}
#jsoneditor {
float: left;
padding: 15px 15px 15px 0;
}
2012-04-21 19:28:28 +08:00
#splitter {
text-align: center;
float: left;
height: 100%;
padding: 15px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#splitter #buttons {
margin: 0 0 15px 0;
}
#splitter #toEditor {
margin: 40px 0 0 0 ;
}
2013-03-09 05:05:57 +08:00
#splitter #toCode {
margin: 20px 0 0 0 ;
}
#splitter #drag {
font-size: 32px;
color: lightgray;
border-radius: 3px;
min-width: 24px;
cursor: col-resize;
2012-04-21 19:28:28 +08:00
}
#splitter #drag:hover,
#splitter #drag.active {
color: gray;
background-color: #f5f5f5;
}
2012-04-21 19:28:28 +08:00
#footer {
width: 100%;
height: 23px;
font-size: 10pt;
2012-04-21 19:28:28 +08:00
overflow: hidden;
color: #BFBFBF;
border-top: 1px solid lightgray;
text-align: center;
background-color: #F5F5F5;
2012-04-21 19:28:28 +08:00
}
#footer-inner {
margin: 4px;
2012-04-21 19:28:28 +08:00
}
a.header {
color: white;
text-decoration: none;
2012-04-21 19:28:28 +08:00
}
a.footer {
color: #BFBFBF;
text-decoration: none;
2012-04-21 19:28:28 +08:00
}
a.footer:hover {
color: red;
text-decoration: underline;
2012-04-21 19:28:28 +08:00
}
#ad {
float: right;
right: 15px;
padding: 15px 0 15px 0;
position: relative;
2012-04-21 19:28:28 +08:00
}
#chromeAppInfo {
line-height: normal;
padding: 0 5px 20px 5px;
}
div.error, div.notification {
border-radius: 2px;
padding: 5px;
margin: 5px;
box-shadow: 0 0 15px rgba(128, 128, 128, 0.5);
/* TODO: add some transition effect */
}
div.error {
color: red;
background-color: #FFC0CB;
border: 1px solid red;
}
div.notification {
color: #1a1a1a;
background-color: #FFFFAB;
border: 1px solid #e6d600;
}
pre.error {
margin: 0 0 10px 0;
white-space: pre-wrap;
font-family: droid sans mono, monospace, courier new, courier, sans-serif;
font-size: 10pt;
}
a.error {
color: red;
font-size: 8pt;
2012-04-21 19:28:28 +08:00
}
button.convert {
cursor: default;
padding: 2px;
}
div.convert-right, div.convert-left {
width: 24px;
height: 24px;
margin: 0;
}
div.convert-right {
background: url('lib/jsoneditor/img/jsoneditor-icons.png') -0 -48px;
}
div.convert-left {
background: url('lib/jsoneditor/img/jsoneditor-icons.png') -24px -48px;
2012-04-21 19:28:28 +08:00
}