mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
507 lines
9.2 KiB
CSS
507 lines
9.2 KiB
CSS
/**
|
|
* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
**/
|
|
|
|
body {
|
|
background: #fff;
|
|
color: #222;
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
min-width: 975px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.title {
|
|
color: #dd4b39;
|
|
font-size: 20px;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.button {
|
|
background-color: #f5f5f5;
|
|
background-image: linear-gradient(top, #f5f5f5, #f1f1f1);
|
|
background-image: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: 2px;
|
|
-webkit-border-radius: 2px;
|
|
color: #444;
|
|
cursor: default;
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
height: 27px;
|
|
line-height: 27px;
|
|
margin-right: 16px;
|
|
min-width: 54px;
|
|
padding: 0 8px;
|
|
text-align: center;
|
|
transition: all 0.218s;
|
|
-webkit-transition: all 0.218s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
div.button:hover {
|
|
background-color: #f8f8f8;
|
|
background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
|
|
background-image: -moz-linear-gradient(top,#f8f8f8,#f1f1f1);
|
|
background-image: -ms-linear-gradient(top,#f8f8f8,#f1f1f1);
|
|
background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);
|
|
background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
|
|
border: 1px solid #c6c6Cc;
|
|
box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
|
|
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
|
|
color: #222;
|
|
transition: all 0.0s;
|
|
-webkit-transition: all 0.0s;
|
|
}
|
|
|
|
div.button:active {
|
|
background-color: #f6f6f6;
|
|
background-image: -webkit-linear-gradient(top, #f6f6f6, #f1f1f1);
|
|
background-image: linear-gradient(top, #f6f6f6, #f1f1f1);
|
|
border: 1px solid #c6c6c6;
|
|
box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
-webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
color: #333;
|
|
}
|
|
|
|
div.button.blue {
|
|
background-color: #4d90fe;
|
|
background-image: -webkit-linear-gradient(top, #4d90fe, #4787ed);
|
|
background-image: linear-gradient(top, #4d90fe, #4787ed);
|
|
border: 1px solid #3079ed;
|
|
color: #fff;
|
|
}
|
|
|
|
input[type=text] {
|
|
background-color: #fff;
|
|
border: 1px solid #d9d9d9;
|
|
border-top: 1px solid #c0c0c0;
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
border-radius: 1 px;
|
|
-webkit-border-radius: 1px;
|
|
color: #333;
|
|
display: inline-block;
|
|
height: 29px;
|
|
line-height: 27px;
|
|
padding-left: 8px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
input[type=text]:hover {
|
|
border: 1px solid #b9b9b9;
|
|
border-top: 1px solid #a0a0a0;
|
|
box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
-webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
input[type=text]:focus {
|
|
border: 1px solid #4d90fe;
|
|
box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
|
|
-webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
|
|
outline: none;
|
|
}
|
|
|
|
#modal-shield {
|
|
background: #fff;
|
|
bottom: 0;
|
|
filter: alpha(opacity=75);
|
|
left: 0;
|
|
opacity: 0.75;
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
transition: all 0.218s;
|
|
-webkit-transition: all 0.218s;
|
|
z-index: 99;
|
|
}
|
|
|
|
.modal-dialog {
|
|
background: white;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
|
-webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
|
height: auto;
|
|
left: 50%;
|
|
margin-left: -256px;
|
|
opacity: 0.0;
|
|
outline: 1px solid rgba(0,0,0,0.2);
|
|
overflow: hidden;
|
|
padding: 30px 42px;
|
|
position: fixed;
|
|
right: auto;
|
|
top: 72px;
|
|
transform: scale(1.05);
|
|
-webkit-transform: scale(1.05);
|
|
transition: all 0.218s;
|
|
-webkit-transition: all 0.218s;
|
|
width: 512px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.modal-dialog.visible {
|
|
opacity: 1.0;
|
|
transform: scale(1.0);
|
|
-webkit-transform: scale(1.0);
|
|
}
|
|
|
|
.modal-dialog h1 {
|
|
color: #222;
|
|
font-family: inherit;
|
|
font-size: 16px;
|
|
font-style: inherit;
|
|
font-weight: normal;
|
|
line-height: 24px
|
|
margin: 0;
|
|
margin-bottom: 1em;
|
|
padding: 0;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
.modal-dialog .close-button {
|
|
background: url('../img/x.png') center no-repeat;
|
|
cursor: default;
|
|
filter: alpha(opacity=70);
|
|
height: 44px;
|
|
opacity: 0.7;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
width: 44px;
|
|
}
|
|
|
|
.modal-dialog .close-button:hover {
|
|
filter: alpha(opacity=100);
|
|
opacity: 1;
|
|
}
|
|
|
|
.prompt label {
|
|
display: block;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.prompt input[type=text] {
|
|
width: 100%;
|
|
}
|
|
|
|
input[type=text].form-error{
|
|
border: 1px solid #dd4b39;
|
|
}
|
|
|
|
.error-message{
|
|
color: #dd4b39;
|
|
padding: 0px;
|
|
}
|
|
|
|
.offline {
|
|
margin-bottom: 10px;
|
|
margin-top: -15px;
|
|
}
|
|
|
|
.offline div.text {
|
|
color: #999;
|
|
font-size: 14px;
|
|
margin-left: 24px;
|
|
margin-top: -18px;
|
|
position: absolute;
|
|
}
|
|
|
|
.offline .loader {
|
|
background-color: #999;
|
|
border-color: #999;
|
|
border-radius: 50%;
|
|
-webkit-border-radius: 50%;
|
|
display: block;
|
|
height: 19px;
|
|
position: relative;
|
|
width: 19px;
|
|
}
|
|
|
|
.offline .loader .bolt {
|
|
background: url('../img/offline_lightning.png') center no-repeat;
|
|
height: 14px;
|
|
left: 50%;
|
|
margin-left: -4px;
|
|
margin-top: -7px;
|
|
position: absolute;
|
|
top: 50%;
|
|
transition: opacity 0.218s linear 0.44s;
|
|
-webkit-transition: opacity 0.218s linear 0.44s;
|
|
width: 8px;
|
|
}
|
|
|
|
.tooltip {
|
|
background: #2d2d2d;
|
|
box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
|
|
-webkit-box-shadow: 0px 1px 4px rgba(0,0,0,0.2);
|
|
box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
color: #FFF;
|
|
display: block;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
height: 29px;
|
|
line-height: 29px;
|
|
margin-left: 85px;
|
|
opacity: 0.0;
|
|
outline: 1px solid rgba(255,255,255,0.5);
|
|
padding: 0 10px;
|
|
position: absolute;
|
|
text-align: center;
|
|
top: 30px;
|
|
transition: opacity 0.13s;
|
|
-webkit-transition: opacity 0.13s;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.tooltip.visible {
|
|
opacity: 1.0;
|
|
}
|
|
|
|
.tooltip .pointer {
|
|
border-left: 5px solid transparent;
|
|
border-bottom: 5px solid #2d2d2d;
|
|
border-right: 5px solid transparent;
|
|
border-top: transparent;
|
|
display: block;
|
|
font-size: 0px;
|
|
height: 0;
|
|
left: 24px;
|
|
line-height: 0px;
|
|
margin: 0 0 0 -5px;
|
|
outline: none;
|
|
position: absolute;
|
|
top: -5px;
|
|
width: 0;
|
|
}
|
|
|
|
#file1-container,
|
|
#file2-container {
|
|
float: left;
|
|
position: relative;
|
|
}
|
|
|
|
.input-container {
|
|
float: left;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.input-container form {
|
|
opacity: 0;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.input-container form input {
|
|
opacity: 0;
|
|
}
|
|
|
|
.input-container .form-cover {
|
|
left: 0px;
|
|
position: absolute;
|
|
top: 0px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.input-container .form-cover.file-name {
|
|
font-size: 16px;
|
|
left: 100px;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
#arrow-container {
|
|
float: left;
|
|
height: 575px;
|
|
margin-top: 36px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
width: 40px;
|
|
}
|
|
|
|
#arrow-container.arrow-edit {
|
|
opacity: 0;
|
|
}
|
|
|
|
#arrow-container .arrow {
|
|
background: url('../img/arrow-right.png') center no-repeat;
|
|
background-size: auto 95px;
|
|
height: 16px;
|
|
opacity: 0;
|
|
}
|
|
|
|
#arrow-container .undo {
|
|
background: url('../img/undo.svg') right no-repeat;
|
|
height: 16px;
|
|
opacity: 0;
|
|
}
|
|
|
|
#arrow-container .visible {
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
}
|
|
|
|
#plus-container {
|
|
display: none;
|
|
float: left;
|
|
height: 575px;
|
|
margin-right: 2px;
|
|
margin-top: 36px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
width: 16px;
|
|
z-index: 10;
|
|
}
|
|
|
|
#plus-container div {
|
|
border: 1px solid #999;
|
|
color: #999;
|
|
font-size: 18px;
|
|
height: 14px;
|
|
opacity: 0;
|
|
text-align: center;
|
|
width: 14px;
|
|
}
|
|
|
|
#plus-container div.plus,
|
|
#plus-container div.minus {
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
}
|
|
|
|
#plus-container div.plus:after {
|
|
content: "+";
|
|
}
|
|
|
|
#plus-container div.minus:after {
|
|
content: "-";
|
|
}
|
|
|
|
.file-diff,
|
|
textarea {
|
|
background: #fafafa;
|
|
border: 1px solid #999;
|
|
float: left;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
height: 585px;
|
|
line-height: 16px;
|
|
margin-bottom: 10px;
|
|
margin-top: 10px;
|
|
overflow: auto;
|
|
white-space: nowrap;
|
|
width: 455px;
|
|
}
|
|
|
|
div.button.edit,
|
|
div.button.done{
|
|
float: right;
|
|
}
|
|
|
|
.file-diff div {
|
|
float: left;
|
|
min-height: 16px;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.file-diff div.collapsed-num {
|
|
background: #ddf;
|
|
color: #000;
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
text-align: center;
|
|
}
|
|
|
|
.file-diff div.collapsed-num a {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.file-diff div.collapsed-num a:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.file-diff div.blank {
|
|
background: #eee;
|
|
}
|
|
|
|
#file2-container .file-diff div.ins,
|
|
#file2-container .file-diff div.del {
|
|
background: #dfd;
|
|
}
|
|
|
|
#file1-container .file-diff div.del,
|
|
#file1-container .file-diff div.ins {
|
|
background: #fee;
|
|
}
|
|
|
|
.file-diff div.blank.del,
|
|
.file-diff div.blank.ins {
|
|
display: none;
|
|
}
|
|
|
|
.file-diff div div.lineNum {
|
|
border-right: 1px solid #999;
|
|
float: left;
|
|
text-align: center;
|
|
width: 35px;
|
|
}
|
|
|
|
.file-diff div div.text,
|
|
.file-diff div div.left-text {
|
|
position: absolute;
|
|
left: 36px;
|
|
}
|
|
|
|
.file-diff div span {
|
|
float: left;
|
|
position: relative;
|
|
}
|
|
|
|
.file-diff div span.ins {
|
|
background: #9f9;
|
|
}
|
|
|
|
.file-diff div span.del {
|
|
background: #faa;
|
|
}
|
|
|
|
#file1-container .file-diff div span.ins {
|
|
display: none;
|
|
}
|
|
|
|
#file2-container .file-diff div span.del {
|
|
display: none;
|
|
}
|
|
|
|
#file1-container .file-diff div.fix,
|
|
#file2-container .file-diff div.fix {
|
|
background: none;
|
|
}
|
|
|
|
#file1-container .file-diff div.fix span.del {
|
|
background: none;
|
|
}
|
|
|
|
#file2-container .file-diff div.fix span.ins {
|
|
display: none;
|
|
}
|
|
|
|
#file2-container .file-diff div.fix span.del {
|
|
display: block;
|
|
background: none;
|
|
}
|
|
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
br.clear {
|
|
clear: both;
|
|
}
|