mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 05:00:13 -10:00
430 lines
7.4 KiB
CSS
430 lines
7.4 KiB
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/* Generic rules */
|
|
|
|
/**
|
|
* "Fixes" the Box Model.
|
|
* @see http://www.paulirish.com/2012/box-sizing-border-box-ftw/
|
|
*/
|
|
*, *:before, *:after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "Lucida Grande", sans-serif;
|
|
font-size: 12px;
|
|
background: #fbfbfb;
|
|
}
|
|
|
|
button {
|
|
/* Resetting default <button> font properties; eg. strangely enough, FF mac
|
|
wants to use Helvetica/12px whatever we define for parent elements */
|
|
font-family: "Lucida Grande", sans-serif;
|
|
font-size: 1em;
|
|
}
|
|
|
|
img {
|
|
border: none;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-family: "Open Sans", sans-serif;
|
|
color: #666;
|
|
}
|
|
|
|
/* Helpers */
|
|
|
|
/**
|
|
* Clearfix impl. for modern browsers
|
|
* 1. The space content is one way to avoid an Opera bug when the
|
|
* contenteditable attribute is included anywhere else in the document.
|
|
* Otherwise it causes space to appear at the top and bottom of elements
|
|
* that are clearfixed.
|
|
* 2. The use of `table` rather than `block` is only necessary if using
|
|
* `:before` to contain the top-margins of child elements.
|
|
*/
|
|
.cf:before,
|
|
.cf:after {
|
|
content: " "; /* 1 */
|
|
display: table; /* 2 */
|
|
}
|
|
|
|
.cf:after {
|
|
clear: both;
|
|
}
|
|
|
|
.hide {
|
|
/**
|
|
* Force the display: none as it can conflict with other display.
|
|
* You usually want to avoid !important statements as much as
|
|
* possible. In this case, it makes sense as it's unlikely we want a
|
|
* class to undo the hide feature.
|
|
*/
|
|
display: none !important;
|
|
}
|
|
|
|
.visually-hidden {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.tc {
|
|
text-align: center;
|
|
}
|
|
|
|
.full-width {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Buttons */
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
background: #a5a;
|
|
border: none;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
padding: .3em .6em;
|
|
border: 1px solid transparent;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
font-size: .9em;
|
|
text-align: center;
|
|
}
|
|
|
|
button.btn {
|
|
/* for some reason, buttons respond differently to setting padding than
|
|
regular links */
|
|
padding: .3em .3em .3em .5em;
|
|
}
|
|
|
|
.btn-large {
|
|
/* Dimensions from spec
|
|
* https://people.mozilla.org/~dhenein/labs/loop-link-spec/#call-start */
|
|
padding: .5em;
|
|
font-size: 18px;
|
|
height: auto;
|
|
}
|
|
|
|
.btn-large + .btn-chevron {
|
|
padding: 1rem;
|
|
height: 100%; /* match full height of button */
|
|
}
|
|
|
|
/*
|
|
* Left / Right padding elements
|
|
* used to center components
|
|
* */
|
|
.flex-padding-1 {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
.btn-info {
|
|
background-color: #0096dd;
|
|
border: 1px solid #0095dd;
|
|
}
|
|
|
|
.btn-info:hover {
|
|
background-color: #008acb;
|
|
border: 1px solid #008acb;
|
|
}
|
|
|
|
.btn-info:active {
|
|
background-color: #006b9d;
|
|
border: 1px solid #006b9d;
|
|
}
|
|
|
|
.btn-success,
|
|
.btn-success + .btn-chevron {
|
|
background-color: #74bf43;
|
|
border: 1px solid #74bf43;
|
|
}
|
|
|
|
.btn-success:hover,
|
|
.btn-success + .btn-chevron:hover {
|
|
background-color: #6cb23e;
|
|
border: 1px solid #6cb23e;
|
|
}
|
|
|
|
.btn-success:active,
|
|
.btn-success + .btn-chevron:active {
|
|
background-color: #64a43a;
|
|
border: 1px solid #64a43a;
|
|
}
|
|
|
|
.btn-warning {
|
|
background-color: #f0ad4e;
|
|
}
|
|
|
|
.btn-error,
|
|
.btn-error + .btn-chevron {
|
|
background-color: #d74345;
|
|
border: 1px solid #d74345;
|
|
}
|
|
|
|
.btn-error:hover,
|
|
.btn-error + .btn-chevron:hover {
|
|
background-color: #c53436;
|
|
border: 1px solid #c53436;
|
|
}
|
|
|
|
.btn-error:active,
|
|
.btn-error + .btn-chevron:active {
|
|
background-color: #ae2325;
|
|
border: 1px solid #ae2325;
|
|
}
|
|
|
|
.btn-chevron {
|
|
width: 26px;
|
|
height: 26px;
|
|
border-top-right-radius: 2px;
|
|
border-bottom-right-radius: 2px;
|
|
}
|
|
|
|
/* Groups together a button and a chevron */
|
|
.button-group-chevron {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
/* Groups together a button-group-chevron
|
|
* and the dropdown menu */
|
|
.button-chevron-menu-group {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex: 1;
|
|
}
|
|
|
|
.button-group-chevron .btn {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
flex: 2;
|
|
}
|
|
|
|
.btn + .btn-chevron,
|
|
.btn + .btn-chevron:hover,
|
|
.btn + .btn-chevron:active {
|
|
border-left: 1px solid rgba(255,255,255,.4);
|
|
background-image: url("../img/dropdown-inverse.png");
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: 10px;
|
|
}
|
|
|
|
@media (min-resolution: 2dppx) {
|
|
.btn-chevron {
|
|
background-image: url(../img/[email protected]);
|
|
background-position: center;
|
|
background-size: 10px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
.disabled, button[disabled] {
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
width: 100%;
|
|
align-content: space-between;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button-group .btn {
|
|
flex: 1;
|
|
border-bottom-right-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
/* Alerts */
|
|
.alert {
|
|
background: #eee;
|
|
padding: .2em 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.alert p.message {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.alert.alert-error {
|
|
background: #f99;
|
|
border: 1px solid #f77;
|
|
}
|
|
|
|
.alert.alert-warning {
|
|
background: #fcf8e3;
|
|
border: 1px solid #fbeed5;
|
|
}
|
|
|
|
.alert .close {
|
|
position: relative;
|
|
top: -.2em;
|
|
right: -1em;
|
|
}
|
|
|
|
/* Misc */
|
|
|
|
.close {
|
|
float: right;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
line-height: 1em;
|
|
color: #000;
|
|
opacity: .2;
|
|
}
|
|
|
|
.close:before {
|
|
/* \2716 is unicode representation of the close button icon */
|
|
content: '\2716';
|
|
}
|
|
|
|
.btn.close {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Transitions */
|
|
.fade-out {
|
|
transition: opacity 0.5s ease-in;
|
|
opacity: 0;
|
|
}
|
|
|
|
.icon,
|
|
.icon-small,
|
|
.icon-audio,
|
|
.icon-video {
|
|
background-size: 20px;
|
|
background-repeat: no-repeat;
|
|
vertical-align: top;
|
|
background-position: 80% center;
|
|
}
|
|
|
|
.icon-small {
|
|
background-size: 10px;
|
|
}
|
|
|
|
.icon-video {
|
|
background-image: url("../img/video-inverse-14x14.png");
|
|
}
|
|
|
|
.icon-audio {
|
|
background-image: url("../img/[email protected]");
|
|
}
|
|
|
|
@media (min-resolution: 2dppx) {
|
|
.icon-video {
|
|
background-image: url("../img/[email protected]");
|
|
}
|
|
|
|
.icon-audio {
|
|
background-image: url("../img/[email protected]");
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Platform specific styles
|
|
* The UI should match the user OS
|
|
* Specific font sizes for text paragraphs to match
|
|
* the interface on that platform.
|
|
*/
|
|
|
|
.inverse {
|
|
color: #fff;
|
|
}
|
|
|
|
.light {
|
|
color: rgba(51, 51, 51, .5);
|
|
}
|
|
|
|
.mac p,
|
|
.windows p,
|
|
.linux p {
|
|
line-height: 16px;
|
|
}
|
|
|
|
.windows {
|
|
font-family: 'Segoe';
|
|
}
|
|
|
|
.windows p {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.windows h1 {
|
|
font-family: 'Segoe Bold';
|
|
}
|
|
|
|
.mac {
|
|
font-family: 'Lucida Grande';
|
|
}
|
|
|
|
.mac p {
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.mac h1 {
|
|
font-family: 'Lucida Grande Bold';
|
|
}
|
|
|
|
.linux {
|
|
/* XXX requires fallbacks */
|
|
font-family: 'Ubuntu', sans-serif;
|
|
}
|
|
|
|
.linux p {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.linux h1 {
|
|
font-family: 'Ubuntu Bold';
|
|
}
|
|
|
|
/* Web panel */
|
|
|
|
.info-panel {
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
padding: 20px 0;
|
|
border: 1px solid #e7e7e7;
|
|
box-shadow: 0 2px 0 rgba(0, 0, 0, .03);
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.info-panel h1 {
|
|
font-size: 1.2em;
|
|
font-weight: 700;
|
|
padding: 20px 0;
|
|
text-align: center;
|
|
margin: 0;
|
|
}
|
|
|
|
.info-panel h4 {
|
|
color: #aaa;
|
|
text-align: center;
|
|
font-weight: 300;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Logos */
|
|
|
|
.firefox-logo {
|
|
background: transparent url(../img/firefox-logo.png) no-repeat center center;
|
|
background-size: contain;
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 0px auto; /* horizontal block centering */
|
|
}
|