Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

FF 7x. Decrease font size in search bar.

  • 3 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: cor-el

more options

I recently started using the new version of FF and gradually trying to customize it for myself. Now I am faced with such a problem. The font size in this field is too large.

My userChrome.css file already has some changes that I made to change the view. What do I need to add? I can only partially imagine what each entry in this file is responsible for.


/* TABS: height */
:root {
 --tab-toolbar-navbar-overlap: 0px !important; /* fix for full screen mode */
 --tab-min-height: 25px !important;
}
:root #tabbrowser-tabs {
 --tab-min-height: 25px !important;
}
#TabsToolbar {height: var(--tab-min-height) !important;}



#navigator-toolbox {
  display: flex;
  flex-direction: column;
}

#titlebar {
  order: 2;
}

#tabbrowser-tabs {
  --tab-min-height: 18px !important;
  margin-left: 0px !important;
  height: 15px !important;
}



:root[uidensity=compact] #urlbar,
:root[uidensity=compact] .searchbar-textbox {
  font-size: unset !important;
  min-height: 20px !important;
}

:root[uidensity=compact] #identity-box {
  max-height: 20px;
}

:root[uidensity=compact] #nav-bar .toolbarbutton-1 {
  padding: 0px !important;
}

/* Compatibility with auto-hide.css */
:root[uidensity=compact] #navigator-toolbox {
  --nav-bar-height: 20px !important;
}



#nav-bar {
  border-top: 0 !important;
}

toolbar#TabsToolbar
{
    -moz-appearance: none !important;
    background-color: #535556 !important;
}

I recently started using the new version of FF and gradually trying to customize it for myself. Now I am faced with such a problem. The font size in this field is too large. My userChrome.css file already has some changes that I made to change the view. What do I need to add? I can only partially imagine what each entry in this file is responsible for. ------------------------------------------------------------------------- <pre><nowiki>/* TABS: height */ :root { --tab-toolbar-navbar-overlap: 0px !important; /* fix for full screen mode */ --tab-min-height: 25px !important; } :root #tabbrowser-tabs { --tab-min-height: 25px !important; } #TabsToolbar {height: var(--tab-min-height) !important;} #navigator-toolbox { display: flex; flex-direction: column; } #titlebar { order: 2; } #tabbrowser-tabs { --tab-min-height: 18px !important; margin-left: 0px !important; height: 15px !important; } :root[uidensity=compact] #urlbar, :root[uidensity=compact] .searchbar-textbox { font-size: unset !important; min-height: 20px !important; } :root[uidensity=compact] #identity-box { max-height: 20px; } :root[uidensity=compact] #nav-bar .toolbarbutton-1 { padding: 0px !important; } /* Compatibility with auto-hide.css */ :root[uidensity=compact] #navigator-toolbox { --nav-bar-height: 20px !important; } #nav-bar { border-top: 0 !important; } toolbar#TabsToolbar { -moz-appearance: none !important; background-color: #535556 !important; } </nowiki></pre> -------------------------------------------------------------------------
첨부된 스크린샷

글쓴이 cor-el 수정일시

선택된 해결법

You need to add a unit (px).

#urlbar, .searchbar-textbox {
  font-size: 14px !important;
  min-height: 20px !important;
}
문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (3)

more options

You unset the font-size with this CSS code for Density:Compact.

:root[uidensity=compact] #urlbar,
:root[uidensity=compact] .searchbar-textbox {
  font-size: unset !important;
  min-height: 20px !important;
}

You need to set a specific font-size, maybe best is not to specify the uidensity.

#urlbar, .searchbar-textbox {
  font-size: 14px !important;
  min-height: 20px !important;
}

글쓴이 cor-el 수정일시

more options

Thanks for the answer! Does not work :( Even if I enter this:

root[uidensity=compact] #urlbar,
root[uidensity=compact] .searchbar-textbox {
 font-size: 8 !important;
 min-height: 20px !important;

}

more options

선택된 해결법

You need to add a unit (px).

#urlbar, .searchbar-textbox {
  font-size: 14px !important;
  min-height: 20px !important;
}