Skip to content

Instantly share code, notes, and snippets.

@Tvangeste
Last active October 31, 2022 04:25
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save Tvangeste/5078078 to your computer and use it in GitHub Desktop.
Save Tvangeste/5078078 to your computer and use it in GitHub Desktop.
My qt-style.css
#.dsl_headwords
#{
# white-space: nowrap;
#}
#.gddictname
#{
# width: 50%;
# white-space: nowrap;
# text-overflow: ellipsis;
# overflow: hidden;
# display: block;
#}
body
{
/*line-height: 80%;*/
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: white;
font-family: TahomaPlus, Segoe UI, Palatino Linotype, Arial Unicode MS;
}
.gdarticle
{
margin-top: 0.1em;
margin-bottom: 0.4em;
padding: 5px;
border: 1px solid #d0dde2;
border-radius: 8px;
}
.gdactivearticle
{
border: 1px solid #3399FF;
}
.gdarticleseparator + script + .gdactivearticle .gddictname
{
border-top: 1px solid #3399FF;
}
.gdarticleseparator
{
display: none;
}
.gddictname
{
font-size: 12px;
font-weight: normal;
float: right;
border: 0px;
border-top-right-radius: 8px;
border-bottom-left-radius: 6px;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
padding-right: 0.4em;
color: #4480f8;
background: #E0E8F0;
-webkit-user-select: none;
user-select: none;
cursor: default;
}
.gdactivearticle .gddictname
{
font-size: 13px;
font-weight: normal;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
float: right;
border: 1px solid #3399FF;
color: #0066cc;
background: #deecf8;
}
.gddicticon
{
display: inline;
vertical-align: text-bottom;
float: right;
padding-right: 0em;
padding-left: 0.3em;
}
/* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > span:first-child .dsl_headwords,
.gdarticlebody > h3:first-child
{
margin-top: -3px;
display: inline-block;
}
.gdspellsuggestion
{
/* Add some vertical space before the article */
margin-top: 1.5em;
}
.dsl_ex
{
color: steelblue;
}
.dsl_stress
{
color: darkblue;
}
.dsl_stress_without_accent {
display:inline;
}
.dsl_stress_with_accent {
display: none;
}
.dsl_p .dsl_ex .dsl_lang
{
color: green;
}
::selection {
background:#cc0000;
color:#fff;
}
code::selection {
background: #333333;
}
.dsl_s_wav img, .lsa_play img, .forvo_play img[alt="Play"] {
display: none;
}
.dsl_s_wav a, .lsa_play td:nth-of-type(1) a, .forvo_play td:nth-of-type(1) a {
display: inline-block;
width: 17px;
height: 16px;
background: url('file:///control_play_lingvo.png') no-repeat center;
vertical-align: text-bottom;
-webkit-user-select: none;
user-select: none;
}
/* WARNING: hides all separators! */
#navToolbar::separator {
width: 0px;
}
/* Another way to hide specific separators */
#navToolbar #beforeOptionsSeparator, #navToolbar #beforeScanPopupSeparator, #navToolbar #afterScanPopupSeparator, #navToolbar #separatorBeforeZoom, #navToolbar #separatorBeforeSave {
background: rgba(0,0,0,0%);
width: 0px;
margin: -3px;
}
/* Hide various buttons in the toolbar: */
#navToolbar #menuButtonXX, #navToolbar #soundButtonXX, #navToolbar #backButton, #navToolbar #forwardButton, #navToolbar #zoomInButton, #navToolbar #zoomOutButton, #navToolbar #zoomBaseButton, #navToolbar #saveArticleButton, #navToolbar #printButton {
width: 0px;
height: 0px;
margin: -3px;
}
/* remove the main toolbar handle */
#navToolbar::handle, #dictionaryBar::handle {
image: none;
width: 0px;
margin-left: 1px;
}
#navToolbar #scanPopupButton {
margin-left: 5px;
}
/* Colored header for the "Found in Dictionaries:" pane */
#dictsPaneTitleBar {
background: lightblue;
margin: 2px;
}
/* Colored header for the History Pane */
#historyPaneTitleBar {
background: lightsteelblue;
margin: 2px;
}
/* Thin separators between the main UI and sidebars */
QMainWindow::separator {
width: 1px; /* when vertical */
height: 1px; /* when horizontal */
}
ScanPopup #goBackButtonAA,
/* ScanPopup #queryError, */
ScanPopup #goForwardButtonAA,
ScanPopup #wordListButtonXX,
ScanPopup #pronounceButtonAA,
ScanPopup #sendWordButtonXX
/* ScanPopup #showDictionaryBar, */
/* ScanPopup #pinButton */
{
width: 0px;
height: 0px;
margin: -4px;
}
/*
#historyList {
font-weight: bold;
}
#historyList::item {
background: black;
color: yellow;
}
#historyList::item:selected {
background: gray;
}
*/
/*
#historyList::item:alternate {
background: #EEEEEE;
color: black;
}
*/
/*
ScanPopup
{
min-width:50px;
}
*/
/*
MainWindow #dictsPane #dictsList
{
min-width:200px !important;
}
*/
/*
MainWindow #ArticleView
{
min-width: 50px;
}
*/
@TYZRPVX
Copy link

TYZRPVX commented Jun 7, 2018

I copy it to my computer, but can't take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment