Changeset 8054


Ignore:
Timestamp:
Sep 6, 2022, 2:56:36 PM (7 months ago)
Author:
Nicklas Nordborg
Message:

Fixes #2281: File upload buttons should look like other buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.19-stable/www/include/styles/main.css

    r7993 r8054  
    210210
    211211/* Generic button, standalone or in a toolbar, define colors only */
    212 .button, .tab
     212.button, .tab, ::file-selector-button
    213213{
    214214  background-color: #E8E8E8;
     
    223223
    224224.interactable:hover, .interactable:focus, .interactable.active,
    225 input:hover, textarea:hover, select:hover, input:focus, textarea:focus, select:focus
     225input:hover, textarea:hover, select:hover, input:focus, textarea:focus, select:focus, ::file-selector-button:hover
    226226{
    227227  border-color: #2288AA;
     
    253253
    254254/* A single standalone button */
    255 .basicbutton 
     255.basicbutton, ::file-selector-button
    256256{
    257257  display: inline-block;
     
    265265}
    266266
     267/* We need some additional styling for resetting */
     268::file-selector-button
     269{
     270  border-style: solid;
     271  border-color: inherit;
     272  margin-right: 4px;
     273  padding-top: 2px;
     274}
     275
    267276.buttongroup .basicbutton
    268277{
     
    277286
    278287/* Highlight the button when the mouse is over it */
    279 .basicbutton:hover, .basicbutton:focus
     288.basicbutton:hover, .basicbutton:focus, ::file-selector-button:hover
    280289{
    281290  /* 1+1=0+2 so that the button is not moving */
     
    284293  cursor: pointer;
    285294}
     295
     296::file-selector-button:hover
     297{
     298  /* Since we have 4px without hover */
     299  margin-right: 3px;
     300}
     301
    286302
    287303.basicbutton.square
Note: See TracChangeset for help on using the changeset viewer.