gecko/browser/base/content/tabview/tabview.css
Michael Yoshitaka Erlewine f59d44241d Bug 575851: Are You Experienced? The New Tab Experience
- refine the use of the "active group item", with differential styling, and not clearing when we enter the tab view
- set the active group item in other cases, like when we drag out groups, when we resize or move a group, or when a group is a drop target
2010-08-08 20:27:47 -04:00

455 lines
7.9 KiB
CSS

html {
overflow: hidden;
/* image-rendering: -moz-crisp-edges; */
}
body {
font-family: Tahoma, sans-serif !important;
padding: 0px;
color: rgba(0,0,0,0.4);
font-size: 12px;
line-height: 16px;
margin: 0 auto;
}
#content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#bg {
background: -moz-linear-gradient(top,#C4C4C4,#9E9E9E);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -999999;
}
/* Tab Styling
----------------------------------*/
.tab {
position: absolute;
padding: 4px 6px 6px 4px;
border: 1px solid rgba(230,230,230,1);
background-color: rgba(245,245,245,1);
overflow: visible !important;
-moz-border-radius: 0.4em;
-moz-box-shadow: inset rgba(255, 255, 255, 0.6) 0 0 0 2px;
cursor: pointer;
}
.tab canvas,
.cached-thumb {
border: 1px solid rgba(0,0,0,0.2);
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
.thumb {
position: relative;
width: 100%;
height: 100%;
}
.thumb-shadow {
position: absolute;
border-bottom: 5px solid rgba(0,0,0,0.05);
margin-right: -12px;
bottom: 2px;
width: 94.5%;
}
.favicon {
position: absolute;
background-color: rgba(245,245,245,1);
-moz-border-radius-bottomright: 0.4em;
-moz-box-shadow:
inset rgba(255, 255, 255, 0.6) 0 -2px 0px,
inset rgba(255, 255, 255, 0.6) -2px 0px 0px;
padding: 4px 6px 6px 4px;
top: 4px;
left: 4px;
border-right: 1px solid rgba(0,0,0,0.2);
border-bottom: 1px solid rgba(0,0,0,0.2);
height: 17px;
width: 17px;
}
.favicon img {
border: none;
width: 16px;
height: 16px;
}
.close {
position: absolute;
top: 6px;
right: 6px;
width: 16px;
height: 16px;
/* background is set in platform.css */
opacity: 0.2;
cursor: pointer;
}
.close:hover {
opacity: 1.0;
}
.expander {
position: absolute;
bottom: 6px;
right: 6px;
width: 16px;
height: 16px;
background: url(chrome://global/skin/icons/resizer.png) no-repeat;
opacity: 0.2;
}
.expander:hover {
opacity: 1.0;
}
.favicon img:hover, .close img:hover, .expander img:hover {
opacity: 1;
border: none;
}
.tab-title {
position: absolute;
top: 100%;
text-align: center;
width: 94.5%;
white-space: nowrap;
overflow: hidden;
}
.stacked {
padding: 0;
}
.stacked .tab-title {
display: none;
}
.stacked .thumb-shadow {
display: none;
}
.stacked .thumb {
-moz-box-shadow: rgba(0,0,0,.2) 1px 1px 6px;
}
.stack-trayed .tab-title {
display: block !important;
text-shadow: rgba(0,0,0,1) 1px 1px 2px;
color: #EEE;
font-size: 11px;
}
.stack-trayed .thumb {
-moz-box-shadow: none !important;
}
.focus {
-moz-box-shadow: rgba(54,79,225,1) 0px 0px 5px -1px !important;
}
.front .tab-title, .front .close, .front .favicon, .front .expander, .front .thumb-shadow {
display: none;
}
.front .focus {
-moz-box-shadow: none !important;
}
/* Tab GroupItem
----------------------------------*/
.tabInGroupItem {
border: none;
-moz-box-shadow: none !important;
}
.groupItem {
position: absolute;
/* float: left; */
cursor: move;
border: 1px solid rgba(230,230,230,1);
background-color: rgba(248,248,248,1);
-moz-border-radius: 0.4em;
-moz-box-shadow:
inset rgba(255, 255, 255, 0.6) 0 0 0 2px,
rgba(0,0,0,0.2) 1px 1px 4px;
}
.groupItem.activeGroupItem {
-moz-box-shadow:
rgba(0,0,0,0.6) 1px 1px 8px;
}
.phantom {
border: 1px solid rgba(190,190,190,1);
}
.overlay {
background-color: rgba(0,0,0,.7) !important;
-moz-box-shadow: 3px 3px 8px rgba(0,0,0,.5);
-moz-border-radius: 0.4em;
/*
border: 1px solid rgba(230,230,230,1);
background-color: rgba(248,248,248,1);
-moz-box-shadow:
rgba(0,0,0, .3) 2px 2px 8px,
inset rgba(255, 255, 255, 0.6) 0 0 0 2px; */
}
/* InfoItems
----------------------------------*/
.info-item {
position: absolute;
cursor: move;
border: 1px solid rgba(230,230,230,1);
background-color: rgba(248,248,248,1);
-moz-border-radius: 0.4em;
-moz-box-shadow:
inset rgba(255, 255, 255, 0.6) 0 0 0 2px,
rgba(0,0,0, .2) 1px 1px 4px;
}
.intro {
margin: 10px;
}
/* Trenches
----------------------------------*/
.guideTrench, .visibleTrench, .activeVisibleTrench {
position: absolute;
}
.guideTrench {
z-index: -101;
opacity: 0.9;
border: 1px dashed rgba(0,0,0,.12);
border-bottom: none;
border-right: none;
-moz-box-shadow: 1px 1px 0 rgba(255,255,255,.15);
}
.visibleTrench {
z-index: -103;
opacity: 0.05;
}
.activeVisibleTrench {
z-index: -102;
opacity: 0;
}
.activeVisibleTrench.activeTrench {
opacity: 0.45;
}
.visibleTrench.border, .activeVisibleTrench.border {
background-color: red;
}
.visibleTrench.guide, .activeVisibleTrench.guide {
background-color: blue;
}
/* Other
----------------------------------*/
.newTabButton {
width: 16px;
height: 15px;
bottom: 10px;
left: 10px;
position: absolute !important;
cursor: pointer;
opacity: .3;
background-image: url(chrome://browser/skin/tabview/new-tab.png);
z-index: 99999;
}
.newTabButton:hover {
opacity: 1;
}
.newTabButtonAlt {
position: absolute;
cursor: pointer;
z-index: 99999;
border: none;
-moz-border-radius: 4px;
font-size: 50px;
line-height: 50px;
height: 57px !important;
width: 70px !important;
margin-top: 4px !important;
text-align: center;
background-color: #888888;
-moz-box-shadow: inset 0px 0px 5px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.3);
}
.newTabButtonAlt > span {
color: #909090;
text-shadow: 0px 0px 7px rgba(0,0,0,.4), 0 -1px 0 rgba(255,255,255,.6);
font-weight: bold;
}
.active {
-moz-box-shadow: 5px 5px 4px rgba(0,0,0,.5);
}
.acceptsDrop {
-moz-box-shadow: 2px 2px 10px -1px rgba(0,0,0,.6);
}
.titlebar {
font-size: 12px;
line-height: 18px;
height: 18px;
}
input.name {
background: transparent;
border: 1px solid transparent;
color: #999;
margin: 3px 0px 0px 3px;
padding: 1px;
background-image: url(chrome://browser/skin/tabview/edit-light.png);
padding-left: 20px;
}
input.name:hover {
border: 1px solid #ddd;
}
input.name-locked:hover {
border: 1px solid transparent !important;
cursor: default;
}
input.name:focus {
color: #555;
}
input.defaultName {
font-style: italic !important;
background-image-opacity: .1;
color: transparent;
}
input.defaultName:hover {
color: #CCC;
}
.title-container {
cursor: text;
}
.title-shield {
position: absolute;
margin: 3px 0px 0px 3px;
padding: 1px;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 10;
}
.transparentBorder {
border: 1px solid transparent !important;
}
.stackExpander {
position: absolute;
opacity: .4;
cursor: pointer;
}
.stackExpander:hover {
opacity: .7 !important;
}
/* Resizable
----------------------------------*/
.resizer {
background-image: url(chrome://global/skin/icons/resizer.png);
position: absolute;
bottom: 6px;
right: 6px;
opacity: .2;
}
.iq-resizable { }
.iq-resizable-handle {
position: absolute;
font-size: 0.1px;
z-index: 99999;
display: block;
}
.iq-resizable-disabled .iq-resizable-handle, .iq-resizable-autohide .iq-resizable-handle {
display: none;
}
.iq-resizable-se {
cursor: se-resize;
width: 12px;
height: 12px;
right: 1px;
bottom: 1px;
}
/* Utils
----------------------------------*/
.front {
z-index: 999999 !important;
-moz-border-radius: 0 !important;
-moz-box-shadow: none !important;
-moz-transform: none !important;
image-rendering: -moz-crisp-edges;
}
/* Feedback
----------------------------------*/
.bottomButton {
position: absolute;
bottom: 0px;
width: 100px;
height: 20px;
line-height: 20px;
z-index: 99999 !important;
background-color: blue;
text-align: center;
color: white;
background-color: #9E9E9E;
-moz-box-shadow: 0px 0px 4px rgba(0,0,0,.3), inset 0px 1px 0px rgba(255,255,255,.4);
}
.bottomButton:hover {
cursor: pointer;
background-color: #A5A5A5;
-moz-box-shadow: 0px 0px 5px rgba(0,0,0,.6), inset 0px 1px 0px rgba(255,255,255,.4);
}