MozillaZine

Classic Menus on DP 1.6a1 (3D menubar)

Talk about add-ons and extension development.
dickvl

User avatar
 
Posts: 52386
Joined: July 18th, 2005, 3:25 am

Post Posted October 14th, 2005, 6:19 pm

Classic Menu didn't work on the latest nightlies (20051013) so I tried if I could make it work again.

With help from Greg S I have made a new version of menu.css.
See my next post for the new version.

I've added :
Code: Select all
menubar > menu {-moz-appearance: none !important;}
menupopup, popup {-moz-appearance: none !important;}


If you use the extension then menu.css is in this folder:
{BEFA1A69-E483-498A-B436-35EF33D33458}\chrome\skin
or add to userChrome.css
Last edited by dickvl on October 30th, 2005, 5:24 pm, edited 5 times in total.

dickvl

User avatar
 
Posts: 52386
Joined: July 18th, 2005, 3:25 am

Post Posted October 15th, 2005, 12:12 am

Code: Select all
.menu-accel,
 .menu-iconic-accel,
 .menu-text,
 .menu-iconic-text {
   margin-top: 1px !important;
}
.menu-iconic-left {
  margin-top: 1px !important;
  margin-bottom: 1px !important;
  min-width: 12px;
  -moz-margin-start: 0px;
  -moz-margin-end: 0px;
}
menubar > menu {
  -moz-appearance: none !important;
  border: 1px solid transparent !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
  -moz-padding-start: 1px;
  -moz-padding-end: 1px;
}
menubar > menu[_moz-menuactive="true"] {
  background-color: transparent !important;
  color: MenuText !important;
  border-top   : 1px solid ThreeDHighlight !important;
  border-right : 1px solid ThreeDShadow    !important;
  border-bottom: 1px solid ThreeDShadow    !important;
  border-left  : 1px solid ThreeDHighlight !important;
}
menubar > menu[_moz-menuactive="true"][open="true"] {
  background-color: transparent !important;
  color: MenuText !important;
  border-top   : 1px solid ThreeDShadow    !important;
  border-right : 1px solid ThreeDHighlight !important;
  border-bottom: 1px solid ThreeDHighlight !important;
  border-left  : 1px solid ThreeDShadow    !important;
  padding-top  : 0px !important;
  padding-bottom: 0px !important;
}

menupopup,
    popup {
  -moz-appearance: none !important;
  border: 2px solid !important;
  -moz-border-top-colors   : ThreeDLightShadow ThreeDHighlight !important;
  -moz-border-right-colors : ThreeDDarkShadow ThreeDShadow     !important;
  -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow     !important;
  -moz-border-left-colors  : ThreeDLightShadow ThreeDHighlight !important;
  padding  : 0px !important;
  min-width: 1px !important;
  background-color: Menu !important;
}
popup[type="autocomplete"],
 .autocomplete-history-popup {
  border-width: 1px !important;
  -moz-border-top-colors   : ThreeDDarkShadow !important;
  -moz-border-right-colors : ThreeDDarkShadow !important;
  -moz-border-bottom-colors: ThreeDDarkShadow !important;
  -moz-border-left-colors  : ThreeDDarkShadow !important;
  padding: 0px !important;
  background-color: -moz-Field !important;
}
menulist > menupopup,
 .menulist-menupopup {
  border-width: 1px !important;
  -moz-border-top-colors   : -moz-FieldText !important;
  -moz-border-right-colors : -moz-FieldText !important;
  -moz-border-bottom-colors: -moz-FieldText !important;
  -moz-border-left-colors  : -moz-FieldText !important;
  padding  : 0px !important;
  min-width: 0px !important;
  background-color: -moz-Field !important;
}
menupopup > menu > menupopup,
    popup > menu > menupopup {
  padding-top: 1px !important;
}
menuseparator {margin: -3px 3px -3px 0px !important;}

Return to Extension Development


Who is online

Users browsing this forum: Google [Bot] and 2 guests