/*
 * BEGIN FLOCK GPL
 *
 * Copyright Flock Inc. 2005-2009
 * http://flock.com
 *
 * This file may be used under the terms of the
 * GNU General Public License Version 2 or later (the "GPL"),
 * http://www.gnu.org/licenses/gpl.html
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * END FLOCK GPL
 */

mecard[serviceName="Digg"] .service-header-container {
  background-color: #1b5790;
  background-image: url("chrome://flock/skin/services/digg/diggBackground.png");
  background-repeat: repeat-x;
  background-position: bottom left;
  border-bottom: 1px solid #ffffff;
}

/* Remove left "separator" border on "Post Link" button for Digg */
mecard[serviceName="Digg"] .post-link-button-container {
  border-left: 0;
}

/* Toggle favicon in tab based on the authentication state of the account */
serviceTab[serviceId="@flock.com/webservice/digg;1"] .favicon,
serviceStatusBar[serviceId="@flock.com/webservice/digg;1"] .fav-icon,
serviceStatusBarCondensed[serviceId="@flock.com/webservice/digg;1"] .fav-icon {
  list-style-image: url("chrome://flock/content/services/digg/faviconBW.png");
}

serviceTab[serviceId="@flock.com/webservice/digg;1"][isAuthenticated="true"] .favicon,
serviceStatusBar[serviceId="@flock.com/webservice/digg;1"][isAuthenticated="true"] .fav-icon,
serviceStatusBarCondensed[serviceId="@flock.com/webservice/digg;1"][isAuthenticated="true"] .fav-icon {
  list-style-image: url("chrome://flock/content/services/digg/favicon.png");
}

serviceTab[serviceId="@flock.com/webservice/digg;1"][selected="true"] {
  border-color: #1b5790;
}

#friendList[currentServiceId="@flock.com/webservice/digg;1"]
friendcard[serviceId="@flock.com/webservice/digg;1"] {
  display: -moz-box;
}

friendcard[serviceName="Digg"] .avatar-footer {
  list-style-image: url("chrome://flock/skin/services/digg/avatarFooterDigg.png");
}

mecard[serviceName="Digg"] notifier .meMessages,
mecard[serviceName="Digg"] notifier .meComments,
friendcard[serviceName="Digg"] .friendShout,
friendcard[serviceName="Digg"] .friendDiggs,
friendcard[serviceName="Digg"] .friendComments,
friendcard[serviceName="Digg"] .friendSubmissions,
friendcard[serviceName="Digg"] .friendFavorites,
friendcard[serviceName="Digg"] .friendGallery {
  list-style-image: url("chrome://flock/skin/services/digg/digg-matrix.png");
}

friendcard[serviceName="Digg"] .friendShareFlock {
  list-style-image: url("chrome://flock/skin/people/flockTellAFriend.png");
}

mecard[serviceName="Digg"] notifier .meMessages,
friendcard[serviceName="Digg"] .friendShout {
  -moz-image-region: rect(0px 68px 17px 51px);
}

friendcard[serviceName="Digg"] .friendDiggs {
  -moz-image-region: rect(0px 17px 17px 0px);
}

mecard[serviceName="Digg"] notifier .meComments,
friendcard[serviceName="Digg"] .friendComments {
  -moz-image-region: rect(0px 51px 17px 34px);
}

friendcard[serviceName="Digg"] .friendSubmissions {
  -moz-image-region: rect(0px 85px 17px 68px);
}

friendcard[serviceName="Digg"] .friendFavorites {
  -moz-image-region: rect(0px 102px 17px 85px);
}

friendcard[serviceName="Digg"] .friendGallery {
  -moz-image-region: rect(0px 119px 17px 102px);
}

/* :::::: Digg icon Customization :::::: */

#digg-button {
  list-style-image: url("chrome://flock/skin/services/digg/diggToolbar.png");
  -moz-image-region: rect(0 22px 32px 0);
}
#digg-button:hover {
  -moz-image-region: rect(50px 22px 82px 0);
}
#digg-button:active {
  -moz-image-region: rect(100px 22px 132px 0);
}
#digg-button[disabled="true"] {
  -moz-image-region: rect(150px 22px 182px 0);
}
#digg-button[on="true"] {
  -moz-image-region: rect(200px 22px 232px 0);
}
#digg-button[on="true"]:hover {
  -moz-image-region: rect(250px 22px 282px 0);
}
#digg-button[on="true"]:active {
  -moz-image-region: rect(300px 22px 332px 0);
}

toolbar[iconsize="small"] #digg-button,
#PersonalToolbar #digg-button {
  list-style-image: url("chrome://flock/skin/services/digg/diggToolbar-small.png");
  -moz-image-region: rect(0px 17px 16px 0px);
}
toolbar[iconsize="small"] #digg-button:hover,
#PersonalToolbar #digg-button:hover {
  -moz-image-region: rect(37px 17px 53px 0px);
}
toolbar[iconsize="small"] #digg-button:active,
#PersonalToolbar #digg-button:active {
  -moz-image-region: rect(75px 17px 91px 0px);
}
toolbar[iconsize="small"] #digg-button[disabled="true"],
#PersonalToolbar #digg-button[disabled="true"] {
  -moz-image-region: rect(112px 17px 128px 0px);
}
toolbar[iconsize="small"] #digg-button[on="true"],
#PersonalToolbar #digg-button[on="true"] {
  -moz-image-region: rect(150px 17px 167px 0px);
}
toolbar[iconsize="small"] #digg-button[on="true"]:hover,
#PersonalToolbar #digg-button[on="true"]:hover {
  -moz-image-region: rect(187px 17px 204px 0px);
}
toolbar[iconsize="small"] #digg-button[on="true"]:active,
#PersonalToolbar #digg-button[on="true"]:active {
  -moz-image-region: rect(225px 17px 242px 0px);
}

#urlbar-container + #digg-button {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(0px 22px 22px 0px);
  padding: 0px !important; /* BC: This is creating that space around the mail button when connected to the urlbar & go button */
  margin: 0px;
}
#urlbar-container + #digg-button:hover {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(50px 22px 72px 0px);
}
#urlbar-container + #digg-button:hover:active {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(100px 22px 122px 0px);
}
#urlbar-container + #digg-button[disabled="true"] {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(150px 22px 172px 0px);
}
#urlbar-container + #digg-button[disabled="true"]:hover:active {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(150px 22px 172px 0px);
}
#urlbar-container + #digg-button[on="true"] {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(200px 22px 222px 0px);
}
#urlbar-container + #digg-button[on="true"]:hover:active {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(250px 22px 272px 0px);
}
#urlbar-container + #digg-button[on="true"]:hover {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(250px 22px 272px 0px);
}
toolbar[mode="full"] #urlbar-container + #digg-button {
  min-width: 0;
}
toolbar:not([mode="text"]) #urlbar-container + #digg-button > label {
  display: none !important;
}

#urlbar-container + #mail-button + #digg-button {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(0px 22px 22px 1px);
  padding: 0px !important; /* BC: This is creating that space around the mail button when connected to the urlbar & go button */
  margin: 0px;
}
#urlbar-container + #mail-button + #digg-button:hover {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(50px 22px 72px 1px);
}
#urlbar-container + #mail-button + #digg-button:hover:active {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(100px 22px 122px 1px);
}
#urlbar-container + #mail-button + #digg-button[disabled="true"] {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(150px 22px 172px 1px);
}
#urlbar-container + #mail-button + #digg-button[disabled="true"]:hover:active {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(150px 22px 172px 1px);
}
#urlbar-container + #mail-button + #digg-button[on="true"] {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(200px 22px 222px 1px);
}
#urlbar-container + #mail-button + #digg-button[on="true"]:hover:active {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(250px 22px 272px 1px);
}
#urlbar-container + #mail-button + #digg-button[on="true"]:hover {
  list-style-image: url("chrome://flock/skin/services/digg/digg-urlicon.png");
  -moz-image-region: rect(250px 22px 272px 1px);
}
toolbar[mode="full"] #urlbar-container + #mail-button + #digg-button {
  min-width: 0;
}
toolbar:not([mode="text"]) #urlbar-container + #mail-button + #digg-button > label {
  display: none !important;
}

/* :::::: Mail Button Customization :::::: */

#urlbar-container + #digg-button + #mail-button {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(0px 222px 22px 201px);
  padding: 0px !important; /* BC: This is creating that space around the mail button when connected to the urlbar & go button */
  margin: 0px;
}
#urlbar-container + #digg-button + #mail-button:hover {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(50px 222px 72px 201px);
}
#urlbar-container + #digg-button + #mail-button:hover:active {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(100px 222px 122px 201px);
}
#urlbar-container + #digg-button + #mail-button[disabled="true"],
#urlbar-container + #digg-button + #mail-button[disabled="true"]:active {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(150px 222px 172px 201px);
}
#urlbar-container + #digg-button + #mail-button[on="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(200px 222px 172px 201px);
}
toolbar[mode="full"] #urlbar-container + #digg-button + #mail-button {
  min-width: 0;
}
toolbar:not([mode="text"]) #urlbar-container + #digg-button + #mail-button > label {
  display: none !important;
}

/* :::::: Go Button Customization :::::: */
#urlbar-container + #digg-button + #go-button {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(0px 271px 22px 250px);
  padding: 0px;
}
#urlbar-container + #digg-button + #go-button:hover {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(50px 271px 72px 250px);
}
#urlbar-container + #digg-button + #go-button:hover:active {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(100px 271px 122px 250px);
}
#urlbar-container + #digg-button + #go-button[disabled="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(150px 271px 172px 250px);
}
#urlbar-container + #digg-button + #go-button[on="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(200px 271px 172px 250px);
}
toolbar:not([mode="text"]) #urlbar-container + #digg-button + #go-button > label {
  display: none !important;
}

#urlbar-container + #digg-button + #mail-button + #go-button {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(0px 271px 22px 250px);
  padding: 0px;
}
#urlbar-container + #digg-button + #mail-button + #go-button:hover {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(50px 271px 72px 250px);
}
#urlbar-container + #digg-button + #mail-button + #go-button:hover:active {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(100px 271px 122px 250px);
}
#urlbar-container + #digg-button + #mail-button + #go-button[disabled="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(150px 271px 172px 250px);
}
#urlbar-container + #digg-button + #mail-button + #go-button[on="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(200px 271px 172px 250px);
}
toolbar:not([mode="text"]) #urlbar-container + #digg-button + #mail-button + #go-button > label {
  display: none !important;
}

#urlbar-container + #mail-button + #digg-button + #go-button {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(0px 271px 22px 250px);
  padding: 0px;
}
#urlbar-container + #mail-button + #digg-button + #go-button:hover {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(50px 271px 72px 250px);
}
#urlbar-container + #mail-button + #digg-button + #go-button:hover:active {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(100px 271px 122px 250px);
}
#urlbar-container + #mail-button + #digg-button + #go-button[disabled="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(150px 271px 172px 250px);
}
#urlbar-container + #mail-button + #digg-button + #go-button[on="true"] {
  list-style-image: url("chrome://browser/skin/urlicons.png");
  -moz-image-region: rect(200px 271px 172px 250px);
}
toolbar:not([mode="text"]) #urlbar-container + #mail-button + #digg-button + #go-button > label {
  display: none !important;
}

/* :::::: Digg popup :::::: */

#diggPopup {
  font-family: Arial, Helvetica, sans-serif;
%ifdef XP_WIN
  -moz-appearance: none;
%endif
}

#diggPopup .diggContent {
  padding: 6px 10px;
  color: #333333;
}

#diggPopup #topContent {
  border-bottom: 1px solid #CCCCCC;
}

#diggPopup #middleContent {
  border-bottom: 1px solid #CCCCCC;
}

#diggPopup #middleContent label,
#topStoryContent label.storyLink {
  cursor: pointer;
  margin-left: 0px;
}

#diggPopup #topStoryContent {
  padding-bottom: 1px;
}

#diggPopup #middleContent label:hover,
#diggPopup #topStoryContent label.storyLink:hover {
  text-decoration: underline;
}

#topStoryContent label.popularStory {
  background-color: #FFCC66;
}

#diggPopup #topStoryContentTitle {
  font-weight: bold;
  margin-left: 0px;
}

#diggIt {
  list-style-image: url("chrome://flock/skin/services/digg/digg-matrix.png");
  -moz-image-region: rect(0px 17px 17px 0px);
  color: #333333 !important;
  margin-left: 0px;
}

#diggIt:not([disabled="true"]) {
  cursor: pointer;
}

#diggIt:not([disabled="true"]):hover {
  text-decoration: underline;
}

#diggIt label {
  margin-left: 5px;
}

/* Overlay the rating box in myworld to show only when ratings are valid */
mediaquery[svc="digg"] .ratingBox {
  display: -moz-box;
}

/* Always show meta titles for Digg in consume mode */
#mediabar[mode="consume"] photo[svcShortName="digg"] label[anonid="mediaTitle"] {
  display: -moz-box;
}

#mediabar photo[svcShortName="digg"][mediaType="2"] .mediaTypeIcon {
  display: -moz-box;
  -moz-image-region: rect(0px 16px 16px 0px);
}

#mediabar photo[svcShortName="digg"][mediaType="3"] .mediaTypeIcon {
  display: -moz-box;
  -moz-image-region: rect(0px 36px 16px 20px);
}

/* Don't show default triangle play button for Digg video items */
#mediabar photo[svcShortName="digg"][mediaType="3"] vbox[anonid="playButton"] {
  display: none;
}

serviceDiscoveryButton[svcShortName="digg"] image {
  list-style-image: url("chrome://flock/skin/services/common/large-service-icon-matrix.png");
  -moz-image-region: rect(61px 125px 114px 0px);
}
