@import url("chrome://yasearch/skin/yasearch.css");
@import url("chrome://browser/skin/bookmarks/addBookmark.css");
@import url("chrome://browser/skin/places/bookmarkProperties.css");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

html|a {
  -moz-binding: url("chrome://yasearch/content/bookmarks/bookmarks.xbl#links-tooltips");
}

#yasearch-bookmark-grid {
  font-size: 105%;
}

.small-text,
html|*.small-text,
#yasearch-bookmarks-tags vbox[anonid="tags-cloud-container"] {
  font-size: 95%;
}

#yasearch-bookmarks-add-dialog[yaEnabledPanelName="livewindow"] {
  color: #000;
  background-color: #fff;
}

#yasearch-bookmarks-add-dialog[yaEnabledPanelName="livewindow"][yaShowLiveCheckbox="true"] hbox.dialog-button-box {
  -moz-binding: url("chrome://yasearch/content/bookmarks/bookmarks.xbl#extra-dialog-button-box") !important;
}

#yasearch-bookmarks-add-dialog[yaEnabledPanelName="livewindow"] spacer[anonid="spacer"] {
  display: none;
}

#yasearch-bookmarks-add-dialog[yaShowLiveCheckbox="false"] html|div#yasearch-livewindow-friends-block,
#yasearch-bookmarks-add-dialog[yaShowLiveCheckbox="true"] html|*.on-journal-create {
  display: none;
}

hbox.dialog-button-box checkbox[anonid="dont-show-again"] {
  margin-left: 9px;
  padding-left: 0;
}

#yasearch-bookmarks-add-dialog[yaEnabledPanelName="livewindow"] button[dlgtype="accept"],
#yasearch-bookmarks-add-dialog[yaEnabledPanelName="livewindow"] button[dlgtype="cancel"] {
  display: none;
}

#yasearch-bookmarks-add-dialog:not([yaEnabledPanelName="livewindow"]) button[dlgtype="extra1"] {
  display: none;
}

#yasearch-bookmarks-tags {
  -moz-binding: url("chrome://yasearch/content/bookmarks/bookmarks.xbl#tags-container") !important;
}

#yasearch-bookmarks-folder {
  -moz-box-flex: 5;
}

#yasearch-bookmarks-newfolder-deck[selectedIndex="1"],
#yasearch-bookmarks-newfolder-deck[selectedIndex="1"] #yasearch-bookmarks-newfolder {
  -moz-box-flex: 5;
}

#yaru-settings-checkbox {
  margin-left: 0;
  margin-right: 0;
  -moz-margin-end: 0.25em;
}

#yaru-settings-checkbox + image {
  list-style-image: url("../images/yaru.png");
  -moz-image-region: rect(0px 13px 16px 3px);
}

radio {
  margin-top: 0; margin-bottom: 0; margin-right: 0;
  padding: 0;
}

radiogroup[yaHasClubs="true"] > html|div,
radiogroup[yaHasClubs="false"] #yaru-settings-communities-menulist {
  display: none;
}

radiogroup deck hbox label {
  margin: 0; padding: 0;
}

textbox[empty="true"] {
  color: GrayText;
}

row[id|="yaru-settings-container"] {
  color: #000;
  background-color: #fff;
  padding: 0.5em 0 0.8em 0;
}

#yaru-settings-container-1 > vbox> html|div {
  position: relative;
}

#yaru-settings-container-1 > vbox > html|div > html|div {
  position: absolute;
  top: 0; right: 0;
}

#yaru-settings-container-2 {
  padding: 0 0 0.2em 0;
}

row[id|="yaru-settings-container"] > * + * {
  margin-right: 0.7em;
}

#yaru-settings-container-1 {
  margin-top: 1em;
  -moz-border-radius-topleft: 4px;
  -moz-border-radius-topright: 4px;
}

#yaru-settings-container-1[yaCollapsed="true"] {
  -moz-border-radius: 4px;
}

#yaru-settings-container-3 {
  -moz-border-radius-bottomleft: 4px;
  -moz-border-radius-bottomright: 4px;
}

#yaru-settings-container-1:not([yaCollapsed="true"]) *[yaShowOnCollapsed] {
  display: none;
}

#yaru-settings-informer-deck > html|div {
  margin: 0; padding: 0;
}

#yaru-settings-informer-deck[selectedIndex="4"] > html|div,
#yaru-settings-informer-deck[selectedIndex="5"] > html|div {
  color: #7f7f7f;
}

#yaru-settings-informer-deck[selectedIndex="5"][yaHiddenIndex|="5"] {
  visibility: hidden;
}

#yaru-settings-container-1:not([yaCollapsed="true"]) #yaru-settings-informer-deck[selectedIndex="5"][yaHiddenIndex|="5"] {
  display: none;
}

#yaru-settings-container-2[yaCollapsed="true"],
#yaru-settings-container-3[yaCollapsed="true"] {
  height: 0;
  overflow: hidden;
}

hbox[onclick],
label.action-link,
#yasearch-livewindow-firends-links hbox > label[href] {
  cursor: pointer;
}

label.action-link {
  border-bottom: 1px dotted;
  color: #464540;
  margin: 0;
  padding: 0;
}

hbox.bg-arrow-up,
hbox.bg-arrow-dn {
  padding-right: 12px;
  background: url("chrome://yasearch/skin/browser-icons/arrows/arrow-dn.gif") 100% 55% no-repeat;
}

hbox.bg-arrow-up {
  background-image: url("chrome://yasearch/skin/browser-icons/arrows/arrow-up.gif");
}

#yasearch-bookmark-grid:not([yayaruState|="HAS"]) hbox[class|="bg-arrow"] {
  display:none !important;
}

#yaru-settings-refresh-link {
  padding-right: 12px;
  background: url("chrome://yasearch/skin/browser-icons/reload/reload.png") 100% 40% no-repeat;
}

#yasearch-bookmark-grid[yayaruState="REQUEST"]  #yaru-settings-refresh-link {
  background-image: url("chrome://yasearch/skin/browser-icons/reload/reload.gif");
}

#yasearch-bookmark-grid[yayaruState="REQUEST"] #yaru-settings-refresh-link label:last-child {
  display:none !important;
}

#yasearch-bookmark-grid:not([yayaruState="REQUEST"]) #yaru-settings-refresh-link label:first-child {
  display:none !important;
}

#yasearch-bookmark-grid[yayaruState|="HAS"] #yaru-settings-refresh-link {
  display:none !important;
}

#yaru-settings-communities-menulist {
  min-width: 15em;
  max-width: 30em;
}

#yasearch-bookmarks-tags > hbox html|div {
  text-align: left;
  padding: 0;
  margin:0 7px 3px 5px;
  color: #464540;
}
#yasearch-bookmarks-tags html|div html|span {
  cursor: pointer;
  padding: 0 .1em;
  border-bottom: 1px dotted;
}
#yasearch-bookmarks-tags html|div html|span:hover { color: blue; border-bottom: 1px dotted blue; }
#yasearch-bookmarks-tags html|div html|span[disabled="true"] { color: #888; }

html|a {
  text-decoration: underline;
}

#yasearch-livewindow-grid > rows > row > vbox {
  padding: 0 10px;
  font-size: 1.1em;
}

#yasearch-livewindow-grid html|h3 {
  margin: 0.5em 0 0.3em 0; padding: 0;
  font-weight: normal;
}

html|div#yasearch-livewindow-post {
  margin: 0.6em -10px;
  padding: 0 10px;
  background-color: #fffb81;
  border: 1px solid #c3bea1;
  -moz-border-radius: 3px;
}

html|div#yasearch-livewindow-post > html|h3 {
  margin-bottom: 0;
}

html|ul#yasearch-livewindow-post-props {
  margin: 0;
  padding: 0 0 0.6em 0;
  list-style-type: none;
}

html|ul#yasearch-livewindow-post-props > html|li {
  margin: 0.6em 0;
  padding: 0;
}

html|ul#yasearch-livewindow-post-props > html|li:before {
  content: "\2014\00A0";
}

#yasearch-livewindow-deck {
  margin: 0 0 0.5em 0;
  width: 100%;
}

#yasearch-livewindow-deck > html|div:first-child {
  color: #7f7f7f;
  text-align: center;
}

#yasearch-livewindow-deck[selectedIndex="0"] image.throbber {
  list-style-image: url("chrome://yasearch/skin/browser-icons/throbber/throbber.gif");
  opacity: 0.6;
}

#yasearch-livewindow-deck > html|div:first-child,
#yasearch-livewindow-deck > html|div.yaru-error {
  text-align: center;
}

#yasearch-livewindow-firends-links {
  margin-top: 0.1em;
  width: 100%;
  max-width: 37em;
}

#yasearch-livewindow-firends-links hbox {
  margin: 0 0.5em 0.8em 0.5em;
  white-space: nowrap;
  overflow: hidden;
}

#yasearch-livewindow-firends-links hbox.friend-login {
  margin-left: 0;
  font-weight: bold;
}

#yasearch-livewindow-firends-links row:last-child hbox {
  margin-bottom: 0;
}

#yasearch-livewindow-firends-links hbox label {
  margin: 0 !important;
  padding: 0 !important;
}

hbox.friend-login label:first-child {
  color: red !important;
}

hbox.friend-url label {
  text-decoration: underline;
}

#yasearch-livewindow-firends-links hbox {
  -moz-binding: url("chrome://yasearch/content/bookmarks/bookmarks.xbl#links-tooltips-and-crop") !important;
}