Post by BeaniCraft on Sept 19, 2024 6:11:23 GMT -8
[Chris]
Also, are we referring to the spinner arrows (which increment/decrement the numbers like in the table WYSIWYG dialog) or the dropdown arrows on the jQuery-ui selectMenu elements (e.g., 'actions')?
If it is the former, then that would usually not be stylable via CSS since it is encapsulated within the control's shadow-root. Unless it explicitly exposes a parts list to the host element, that part would be hidden from CSS's reach. The browser could also expose the shadow element through proprietary means such as ::-webkit-inner-spin-button [1][2], but that would not be consistent across all browsers and platforms and allow only specific stylings through (i.e., background-color unsupported but can hide or set mouse cursor state on hover)
The jQuery-UI version included with Proboards (jQuery-UI version 1.8.13) does not have a spinner widget because that was not added until v1.9. This is likely why the native controls were used in this case. Therefore, they are not as customizable as the jQuery-ui selectMenus (e.g., 'actions') when compared to their native browser select menu counterpart.
So as of now, the things that have been changed are:
What I was trying to change was both of those, but from the looks of it, I will just have to stick with the dropdown buttons and call it a day.
Also, would it be possible to change the border of those spinner widgets to be the same color of the text boxes?
Here's the raw CSS of all of the changes, just in case it helps.
Perhaps a summary of all the CSS added thus far would help since the forum link is unknown or unfriendly, and some things were done behind the scenes.
Also, are we referring to the spinner arrows (which increment/decrement the numbers like in the table WYSIWYG dialog) or the dropdown arrows on the jQuery-ui selectMenu elements (e.g., 'actions')?
If it is the former, then that would usually not be stylable via CSS since it is encapsulated within the control's shadow-root. Unless it explicitly exposes a parts list to the host element, that part would be hidden from CSS's reach. The browser could also expose the shadow element through proprietary means such as ::-webkit-inner-spin-button [1][2], but that would not be consistent across all browsers and platforms and allow only specific stylings through (i.e., background-color unsupported but can hide or set mouse cursor state on hover)
The jQuery-UI version included with Proboards (jQuery-UI version 1.8.13) does not have a spinner widget because that was not added until v1.9. This is likely why the native controls were used in this case. Therefore, they are not as customizable as the jQuery-ui selectMenus (e.g., 'actions') when compared to their native browser select menu counterpart.
So as of now, the things that have been changed are:
- The smiley menu.
- The embed menu.
- The color menu.
- The "X" button hover color in the color menu.
- The button hover color in the smiley menu.
- The button hover color in the embed menu.
- The border color in the tag user menu.
- The dropdown buttons. (e.g., The "Actions" button.) (Note: They are about half finished, see this for a bit more info as to what I'm trying to change.)
- All of the dropdown menus.
- And all of the dropdown menus hover colors.
What I was trying to change was both of those, but from the looks of it, I will just have to stick with the dropdown buttons and call it a day.
Also, would it be possible to change the border of those spinner widgets to be the same color of the text boxes?
Here's the raw CSS of all of the changes, just in case it helps.
/* CUSTOM */
div#colorPicker-container {
background: #212121;
color: #ffffff;
border-color: black;
}
input.short {
background-color: #212121;
color: #ffffff;
}
.smiley-menu, .embed-menu {background-color:#212121; border-color:#000000}
.user-search-input {background-color: #3c3c3c; color:#8f8f8f; border:0px;}
.smiley-menu>li>a {color: #ffffff;}
div#colorPicker-close:hover {
background: #4b0000;
}
.ui-selectMenu-box {
color: #8f8f8f;
background-color: #212121;
}
ul.select_menu_list {background-color: #212121; border:0px;}
.select_menu_list li>a {color: #8f8f8f; background-color: #212121;}
.ui-selectMenu-box .arrow {background: #212121;}
.ui-selectMenu-box .arrow.down>span {border-top-color: #8f8f8f;}
/* Pagination Dropdowns added from cave*/
.control-bar .controls .status,
.control-bar .controls .ui-selectMenu-box,
.control-bar .ui-search .search-input,
.ui-selectMenu-box { background-color: @container_background_color_1; color: @container_text_color_1; }
.control-bar .controls .icon > span,
.control-bar .search-filters-button,
.ui-selectMenu-box .icon .arrow { background-color: @pagination_background_color; border-left: 1px solid @container_inner_border_color; }
.options_menu li > a,
.select_menu_list li > a,
.smiley-menu li > a,
.ui-menu-context li > a
{ color: #8f8f8f; }
.options_menu li:hover > a,
.select_menu_list li:hover > a,
.smiley-menu li:hover > a,
.ui-menu-context li:hover > a,
.embed-menu li:hover > a
{ color: @container_text_color_1; background-image: none; background-color: @container_highlight_color; border-color: @container_inner_border_color; }
.options_menu, .select_menu_list, .smiley-menu, .ui-menu-context,
.options_menu ul, .select_menu_list ul, .smiley-menu ul, .ui-menu-context ul
{ background-color: @container_background_color_1; border-color: @container_outer_border_color }
.options_menu li, .select_menu_list li,
.smiley-menu li, .ui-menu-context li
{ background-image: none; }
.ui-selectMenu-box:hover > .icon > .arrow { background-color: @pagination_background_color; }
/*added from cave*/
.control-bar .ui-pagination-custom { padding: 5px 5px 3px 10px; }
.ui-pagination-custom { display: inline-block; overflow: hidden; }
.ui-pagination-custom li { cursor: pointer; list-style: none; float: left; margin-right: 2px; }
.ui-pagination-custom li:last-child { margin-right: 0px; }
.ui-pagination-custom li > a, .ui-pagination-custom li > div { .rounded-corners(3px); font-weight: bold; text-decoration: none; background-color: @pagination_background_color; border: 1px solid darken(@container_inner_border_color, 20%); color: @pagination_text_color; display: inline-block; padding: 4px 5px; }
.ui-pagination-custom li > a:hover, .ui-pagination-custom li > div:hover { border-style: solid; text-decoration: none; background-color: @pagination_hover_color; color: @pagination_text_color; border-color: mix(@pagination_text_color, @pagination_background_color, 70%); }
div.controls > a.button:hover {background-color: @container_highlight_color;}