Edit File by line
/home/barbar84/public_h.../wp-inclu.../css
File: buttons.css
/* ----------------------------------------------------------------------------
[0] Fix | Delete
[1] Fix | Delete
NOTE: If you edit this file, you should make sure that the CSS rules for
[2] Fix | Delete
buttons in the following files are updated.
[3] Fix | Delete
[4] Fix | Delete
* jquery-ui-dialog.css
[5] Fix | Delete
* editor.css
[6] Fix | Delete
[7] Fix | Delete
WordPress-style Buttons
[8] Fix | Delete
=======================
[9] Fix | Delete
Create a button by adding the `.button` class to an element. For backward
[10] Fix | Delete
compatibility, we support several other classes (such as `.button-secondary`),
[11] Fix | Delete
but these will *not* work with the stackable classes described below.
[12] Fix | Delete
[13] Fix | Delete
Button Styles
[14] Fix | Delete
-------------
[15] Fix | Delete
To display a primary button style, add the `.button-primary` class to a button.
[16] Fix | Delete
[17] Fix | Delete
Button Sizes
[18] Fix | Delete
------------
[19] Fix | Delete
Adjust a button's size by adding the `.button-large` or `.button-small` class.
[20] Fix | Delete
[21] Fix | Delete
Button States
[22] Fix | Delete
-------------
[23] Fix | Delete
Lock the state of a button by adding the name of the pseudoclass as
[24] Fix | Delete
an actual class (e.g. `.hover` for `:hover`).
[25] Fix | Delete
[26] Fix | Delete
[27] Fix | Delete
TABLE OF CONTENTS:
[28] Fix | Delete
------------------
[29] Fix | Delete
1.0 - Button Layouts
[30] Fix | Delete
2.0 - Default Button Style
[31] Fix | Delete
3.0 - Primary Button Style
[32] Fix | Delete
4.0 - Button Groups
[33] Fix | Delete
5.0 - Responsive Button Styles
[34] Fix | Delete
[35] Fix | Delete
---------------------------------------------------------------------------- */
[36] Fix | Delete
[37] Fix | Delete
/* ----------------------------------------------------------------------------
[38] Fix | Delete
1.0 - Button Layouts
[39] Fix | Delete
---------------------------------------------------------------------------- */
[40] Fix | Delete
[41] Fix | Delete
.wp-core-ui .button,
[42] Fix | Delete
.wp-core-ui .button-primary,
[43] Fix | Delete
.wp-core-ui .button-secondary {
[44] Fix | Delete
display: inline-block;
[45] Fix | Delete
text-decoration: none;
[46] Fix | Delete
font-size: 13px;
[47] Fix | Delete
line-height: 2.15384615; /* 28px */
[48] Fix | Delete
min-height: 30px;
[49] Fix | Delete
margin: 0;
[50] Fix | Delete
padding: 0 10px;
[51] Fix | Delete
cursor: pointer;
[52] Fix | Delete
border-width: 1px;
[53] Fix | Delete
border-style: solid;
[54] Fix | Delete
-webkit-appearance: none;
[55] Fix | Delete
border-radius: 3px;
[56] Fix | Delete
white-space: nowrap;
[57] Fix | Delete
box-sizing: border-box;
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
/* Remove the dotted border on :focus and the extra padding in Firefox */
[61] Fix | Delete
.wp-core-ui button::-moz-focus-inner,
[62] Fix | Delete
.wp-core-ui input[type="reset"]::-moz-focus-inner,
[63] Fix | Delete
.wp-core-ui input[type="button"]::-moz-focus-inner,
[64] Fix | Delete
.wp-core-ui input[type="submit"]::-moz-focus-inner {
[65] Fix | Delete
border-width: 0;
[66] Fix | Delete
border-style: none;
[67] Fix | Delete
padding: 0;
[68] Fix | Delete
}
[69] Fix | Delete
[70] Fix | Delete
.wp-core-ui .button.button-large,
[71] Fix | Delete
.wp-core-ui .button-group.button-large .button {
[72] Fix | Delete
min-height: 32px;
[73] Fix | Delete
line-height: 2.30769231; /* 30px */
[74] Fix | Delete
padding: 0 12px;
[75] Fix | Delete
}
[76] Fix | Delete
[77] Fix | Delete
.wp-core-ui .button.button-small,
[78] Fix | Delete
.wp-core-ui .button-group.button-small .button {
[79] Fix | Delete
min-height: 26px;
[80] Fix | Delete
line-height: 2.18181818; /* 24px */
[81] Fix | Delete
padding: 0 8px;
[82] Fix | Delete
font-size: 11px;
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
.wp-core-ui .button.button-hero,
[86] Fix | Delete
.wp-core-ui .button-group.button-hero .button {
[87] Fix | Delete
font-size: 14px;
[88] Fix | Delete
min-height: 46px;
[89] Fix | Delete
line-height: 3.14285714;
[90] Fix | Delete
padding: 0 36px;
[91] Fix | Delete
}
[92] Fix | Delete
[93] Fix | Delete
.wp-core-ui .button.hidden {
[94] Fix | Delete
display: none;
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
/* Style Reset buttons as simple text links */
[98] Fix | Delete
[99] Fix | Delete
.wp-core-ui input[type="reset"],
[100] Fix | Delete
.wp-core-ui input[type="reset"]:hover,
[101] Fix | Delete
.wp-core-ui input[type="reset"]:active,
[102] Fix | Delete
.wp-core-ui input[type="reset"]:focus {
[103] Fix | Delete
background: none;
[104] Fix | Delete
border: none;
[105] Fix | Delete
box-shadow: none;
[106] Fix | Delete
padding: 0 2px 1px;
[107] Fix | Delete
width: auto;
[108] Fix | Delete
}
[109] Fix | Delete
[110] Fix | Delete
/* ----------------------------------------------------------------------------
[111] Fix | Delete
2.0 - Default Button Style
[112] Fix | Delete
---------------------------------------------------------------------------- */
[113] Fix | Delete
[114] Fix | Delete
.wp-core-ui .button,
[115] Fix | Delete
.wp-core-ui .button-secondary {
[116] Fix | Delete
color: #2271b1;
[117] Fix | Delete
border-color: #2271b1;
[118] Fix | Delete
background: #f6f7f7;
[119] Fix | Delete
vertical-align: top;
[120] Fix | Delete
}
[121] Fix | Delete
[122] Fix | Delete
.wp-core-ui p .button {
[123] Fix | Delete
vertical-align: baseline;
[124] Fix | Delete
}
[125] Fix | Delete
[126] Fix | Delete
.wp-core-ui .button.hover,
[127] Fix | Delete
.wp-core-ui .button:hover,
[128] Fix | Delete
.wp-core-ui .button-secondary:hover{
[129] Fix | Delete
background: #f0f0f1;
[130] Fix | Delete
border-color: #0a4b78;
[131] Fix | Delete
color: #0a4b78;
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
.wp-core-ui .button.focus,
[135] Fix | Delete
.wp-core-ui .button:focus,
[136] Fix | Delete
.wp-core-ui .button-secondary:focus {
[137] Fix | Delete
background: #f6f7f7;
[138] Fix | Delete
border-color: #3582c4;
[139] Fix | Delete
color: #0a4b78;
[140] Fix | Delete
box-shadow: 0 0 0 1px #3582c4;
[141] Fix | Delete
/* Only visible in Windows High Contrast mode */
[142] Fix | Delete
outline: 2px solid transparent;
[143] Fix | Delete
/* Reset inherited offset from Gutenberg */
[144] Fix | Delete
outline-offset: 0;
[145] Fix | Delete
}
[146] Fix | Delete
[147] Fix | Delete
/* :active state */
[148] Fix | Delete
.wp-core-ui .button:active,
[149] Fix | Delete
.wp-core-ui .button-secondary:active {
[150] Fix | Delete
background: #f6f7f7;
[151] Fix | Delete
border-color: #8c8f94;
[152] Fix | Delete
box-shadow: none;
[153] Fix | Delete
}
[154] Fix | Delete
[155] Fix | Delete
/* pressed state e.g. a selected setting */
[156] Fix | Delete
.wp-core-ui .button.active,
[157] Fix | Delete
.wp-core-ui .button.active:hover {
[158] Fix | Delete
background-color: #dcdcde;
[159] Fix | Delete
color: #135e96;
[160] Fix | Delete
border-color: #0a4b78;
[161] Fix | Delete
box-shadow: inset 0 2px 5px -3px #0a4b78;
[162] Fix | Delete
}
[163] Fix | Delete
[164] Fix | Delete
.wp-core-ui .button.active:focus {
[165] Fix | Delete
border-color: #3582c4;
[166] Fix | Delete
box-shadow:
[167] Fix | Delete
inset 0 2px 5px -3px #0a4b78,
[168] Fix | Delete
0 0 0 1px #3582c4;
[169] Fix | Delete
}
[170] Fix | Delete
[171] Fix | Delete
.wp-core-ui .button[disabled],
[172] Fix | Delete
.wp-core-ui .button:disabled,
[173] Fix | Delete
.wp-core-ui .button.disabled,
[174] Fix | Delete
.wp-core-ui .button-secondary[disabled],
[175] Fix | Delete
.wp-core-ui .button-secondary:disabled,
[176] Fix | Delete
.wp-core-ui .button-secondary.disabled,
[177] Fix | Delete
.wp-core-ui .button-disabled {
[178] Fix | Delete
color: #a7aaad !important;
[179] Fix | Delete
border-color: #dcdcde !important;
[180] Fix | Delete
background: #f6f7f7 !important;
[181] Fix | Delete
box-shadow: none !important;
[182] Fix | Delete
cursor: default;
[183] Fix | Delete
transform: none !important;
[184] Fix | Delete
}
[185] Fix | Delete
[186] Fix | Delete
/* Buttons that look like links, for a cross of good semantics with the visual */
[187] Fix | Delete
.wp-core-ui .button-link {
[188] Fix | Delete
margin: 0;
[189] Fix | Delete
padding: 0;
[190] Fix | Delete
box-shadow: none;
[191] Fix | Delete
border: 0;
[192] Fix | Delete
border-radius: 0;
[193] Fix | Delete
background: none;
[194] Fix | Delete
cursor: pointer;
[195] Fix | Delete
text-align: left;
[196] Fix | Delete
/* Mimics the default link style in common.css */
[197] Fix | Delete
color: #2271b1;
[198] Fix | Delete
text-decoration: underline;
[199] Fix | Delete
transition-property: border, background, color;
[200] Fix | Delete
transition-duration: .05s;
[201] Fix | Delete
transition-timing-function: ease-in-out;
[202] Fix | Delete
}
[203] Fix | Delete
[204] Fix | Delete
.wp-core-ui .button-link:hover,
[205] Fix | Delete
.wp-core-ui .button-link:active {
[206] Fix | Delete
color: #135e96;
[207] Fix | Delete
}
[208] Fix | Delete
[209] Fix | Delete
.wp-core-ui .button-link:focus {
[210] Fix | Delete
color: #043959;
[211] Fix | Delete
box-shadow:
[212] Fix | Delete
0 0 0 1px #4f94d4,
[213] Fix | Delete
0 0 2px 1px rgba(79, 148, 212, 0.8);
[214] Fix | Delete
/* Only visible in Windows High Contrast mode */
[215] Fix | Delete
outline: 1px solid transparent;
[216] Fix | Delete
}
[217] Fix | Delete
[218] Fix | Delete
.wp-core-ui .button-link-delete {
[219] Fix | Delete
color: #d63638;
[220] Fix | Delete
}
[221] Fix | Delete
[222] Fix | Delete
.wp-core-ui .button-link-delete:hover,
[223] Fix | Delete
.wp-core-ui .button-link-delete:focus {
[224] Fix | Delete
color: #d63638;
[225] Fix | Delete
background: transparent;
[226] Fix | Delete
}
[227] Fix | Delete
[228] Fix | Delete
.wp-core-ui .button-link-delete:disabled {
[229] Fix | Delete
/* overrides the default buttons disabled background */
[230] Fix | Delete
background: transparent !important;
[231] Fix | Delete
}
[232] Fix | Delete
[233] Fix | Delete
[234] Fix | Delete
/* ----------------------------------------------------------------------------
[235] Fix | Delete
3.0 - Primary Button Style
[236] Fix | Delete
---------------------------------------------------------------------------- */
[237] Fix | Delete
[238] Fix | Delete
.wp-core-ui .button-primary {
[239] Fix | Delete
background: #2271b1;
[240] Fix | Delete
border-color: #2271b1;
[241] Fix | Delete
color: #fff;
[242] Fix | Delete
text-decoration: none;
[243] Fix | Delete
text-shadow: none;
[244] Fix | Delete
}
[245] Fix | Delete
[246] Fix | Delete
.wp-core-ui .button-primary.hover,
[247] Fix | Delete
.wp-core-ui .button-primary:hover,
[248] Fix | Delete
.wp-core-ui .button-primary.focus,
[249] Fix | Delete
.wp-core-ui .button-primary:focus {
[250] Fix | Delete
background: #135e96;
[251] Fix | Delete
border-color: #135e96;
[252] Fix | Delete
color: #fff;
[253] Fix | Delete
}
[254] Fix | Delete
[255] Fix | Delete
.wp-core-ui .button-primary.focus,
[256] Fix | Delete
.wp-core-ui .button-primary:focus {
[257] Fix | Delete
box-shadow:
[258] Fix | Delete
0 0 0 1px #fff,
[259] Fix | Delete
0 0 0 3px #2271b1;
[260] Fix | Delete
}
[261] Fix | Delete
[262] Fix | Delete
.wp-core-ui .button-primary.active,
[263] Fix | Delete
.wp-core-ui .button-primary.active:hover,
[264] Fix | Delete
.wp-core-ui .button-primary.active:focus,
[265] Fix | Delete
.wp-core-ui .button-primary:active {
[266] Fix | Delete
background: #135e96;
[267] Fix | Delete
border-color: #135e96;
[268] Fix | Delete
box-shadow: none;
[269] Fix | Delete
color: #fff;
[270] Fix | Delete
}
[271] Fix | Delete
[272] Fix | Delete
.wp-core-ui .button-primary[disabled],
[273] Fix | Delete
.wp-core-ui .button-primary:disabled,
[274] Fix | Delete
.wp-core-ui .button-primary-disabled,
[275] Fix | Delete
.wp-core-ui .button-primary.disabled {
[276] Fix | Delete
color: #a7aaad !important;
[277] Fix | Delete
background: #f6f7f7 !important;
[278] Fix | Delete
border-color: #dcdcde !important;
[279] Fix | Delete
box-shadow: none !important;
[280] Fix | Delete
text-shadow: none !important;
[281] Fix | Delete
cursor: default;
[282] Fix | Delete
}
[283] Fix | Delete
[284] Fix | Delete
/* ----------------------------------------------------------------------------
[285] Fix | Delete
4.0 - Button Groups
[286] Fix | Delete
---------------------------------------------------------------------------- */
[287] Fix | Delete
[288] Fix | Delete
.wp-core-ui .button-group {
[289] Fix | Delete
position: relative;
[290] Fix | Delete
display: inline-block;
[291] Fix | Delete
white-space: nowrap;
[292] Fix | Delete
font-size: 0;
[293] Fix | Delete
vertical-align: middle;
[294] Fix | Delete
}
[295] Fix | Delete
[296] Fix | Delete
.wp-core-ui .button-group > .button {
[297] Fix | Delete
display: inline-block;
[298] Fix | Delete
border-radius: 0;
[299] Fix | Delete
margin-right: -1px;
[300] Fix | Delete
}
[301] Fix | Delete
[302] Fix | Delete
.wp-core-ui .button-group > .button:first-child {
[303] Fix | Delete
border-radius: 3px 0 0 3px;
[304] Fix | Delete
}
[305] Fix | Delete
[306] Fix | Delete
.wp-core-ui .button-group > .button:last-child {
[307] Fix | Delete
border-radius: 0 3px 3px 0;
[308] Fix | Delete
}
[309] Fix | Delete
[310] Fix | Delete
.wp-core-ui .button-group > .button-primary + .button {
[311] Fix | Delete
border-left: 0;
[312] Fix | Delete
}
[313] Fix | Delete
[314] Fix | Delete
.wp-core-ui .button-group > .button:focus {
[315] Fix | Delete
position: relative;
[316] Fix | Delete
z-index: 1;
[317] Fix | Delete
}
[318] Fix | Delete
[319] Fix | Delete
/* pressed state e.g. a selected setting */
[320] Fix | Delete
.wp-core-ui .button-group > .button.active {
[321] Fix | Delete
background-color: #dcdcde;
[322] Fix | Delete
color: #135e96;
[323] Fix | Delete
border-color: #0a4b78;
[324] Fix | Delete
box-shadow: inset 0 2px 5px -3px #0a4b78;
[325] Fix | Delete
}
[326] Fix | Delete
[327] Fix | Delete
.wp-core-ui .button-group > .button.active:focus {
[328] Fix | Delete
border-color: #3582c4;
[329] Fix | Delete
box-shadow:
[330] Fix | Delete
inset 0 2px 5px -3px #0a4b78,
[331] Fix | Delete
0 0 0 1px #3582c4;
[332] Fix | Delete
}
[333] Fix | Delete
[334] Fix | Delete
/* ----------------------------------------------------------------------------
[335] Fix | Delete
5.0 - Responsive Button Styles
[336] Fix | Delete
---------------------------------------------------------------------------- */
[337] Fix | Delete
[338] Fix | Delete
@media screen and (max-width: 782px) {
[339] Fix | Delete
[340] Fix | Delete
.wp-core-ui .button,
[341] Fix | Delete
.wp-core-ui .button.button-large,
[342] Fix | Delete
.wp-core-ui .button.button-small,
[343] Fix | Delete
input#publish,
[344] Fix | Delete
input#save-post,
[345] Fix | Delete
a.preview {
[346] Fix | Delete
padding: 0 14px;
[347] Fix | Delete
line-height: 2.71428571; /* 38px */
[348] Fix | Delete
font-size: 14px;
[349] Fix | Delete
vertical-align: middle;
[350] Fix | Delete
min-height: 40px;
[351] Fix | Delete
margin-bottom: 4px;
[352] Fix | Delete
}
[353] Fix | Delete
[354] Fix | Delete
/* Copy attachment URL button in the legacy edit media page. */
[355] Fix | Delete
.wp-core-ui .copy-to-clipboard-container .copy-attachment-url {
[356] Fix | Delete
margin-bottom: 0;
[357] Fix | Delete
}
[358] Fix | Delete
[359] Fix | Delete
#media-upload.wp-core-ui .button {
[360] Fix | Delete
padding: 0 10px 1px;
[361] Fix | Delete
min-height: 24px;
[362] Fix | Delete
line-height: 22px;
[363] Fix | Delete
font-size: 13px;
[364] Fix | Delete
}
[365] Fix | Delete
[366] Fix | Delete
.media-frame.mode-grid .bulk-select .button {
[367] Fix | Delete
margin-bottom: 0;
[368] Fix | Delete
}
[369] Fix | Delete
[370] Fix | Delete
/* Publish Metabox Options */
[371] Fix | Delete
.wp-core-ui .save-post-status.button {
[372] Fix | Delete
position: relative;
[373] Fix | Delete
margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
[374] Fix | Delete
}
[375] Fix | Delete
[376] Fix | Delete
/* Reset responsive styles in Press This, Customizer */
[377] Fix | Delete
[378] Fix | Delete
.wp-core-ui.wp-customizer .button {
[379] Fix | Delete
font-size: 13px;
[380] Fix | Delete
line-height: 2.15384615; /* 28px */
[381] Fix | Delete
min-height: 30px;
[382] Fix | Delete
margin: 0;
[383] Fix | Delete
vertical-align: inherit;
[384] Fix | Delete
}
[385] Fix | Delete
[386] Fix | Delete
.media-modal-content .media-toolbar-primary .media-button {
[387] Fix | Delete
margin-top: 10px;
[388] Fix | Delete
margin-left: 5px;
[389] Fix | Delete
}
[390] Fix | Delete
[391] Fix | Delete
/* Reset responsive styles on Log in button on iframed login form */
[392] Fix | Delete
[393] Fix | Delete
.interim-login .button.button-large {
[394] Fix | Delete
min-height: 30px;
[395] Fix | Delete
line-height: 2;
[396] Fix | Delete
padding: 0 12px 2px;
[397] Fix | Delete
}
[398] Fix | Delete
[399] Fix | Delete
}
[400] Fix | Delete
[401] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function