wp/wp-includes/css/buttons.css
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    44 .wp-core-ui .button-primary,
    44 .wp-core-ui .button-primary,
    45 .wp-core-ui .button-secondary {
    45 .wp-core-ui .button-secondary {
    46 	display: inline-block;
    46 	display: inline-block;
    47 	text-decoration: none;
    47 	text-decoration: none;
    48 	font-size: 13px;
    48 	font-size: 13px;
    49 	line-height: 26px;
    49 	line-height: 2.15384615; /* 28px */
    50 	height: 28px;
    50 	min-height: 30px;
    51 	margin: 0;
    51 	margin: 0;
    52 	padding: 0 10px 1px;
    52 	padding: 0 10px;
    53 	cursor: pointer;
    53 	cursor: pointer;
    54 	border-width: 1px;
    54 	border-width: 1px;
    55 	border-style: solid;
    55 	border-style: solid;
    56 	-webkit-appearance: none;
    56 	-webkit-appearance: none;
    57 	border-radius: 3px;
    57 	border-radius: 3px;
    69 	padding: 0;
    69 	padding: 0;
    70 }
    70 }
    71 
    71 
    72 .wp-core-ui .button.button-large,
    72 .wp-core-ui .button.button-large,
    73 .wp-core-ui .button-group.button-large .button {
    73 .wp-core-ui .button-group.button-large .button {
    74 	height: 30px;
    74 	min-height: 32px;
    75 	line-height: 28px;
    75 	line-height: 2.30769231; /* 30px */
    76 	padding: 0 12px 2px;
    76 	padding: 0 12px;
    77 }
    77 }
    78 
    78 
    79 .wp-core-ui .button.button-small,
    79 .wp-core-ui .button.button-small,
    80 .wp-core-ui .button-group.button-small .button {
    80 .wp-core-ui .button-group.button-small .button {
    81 	height: 24px;
    81 	min-height: 26px;
    82 	line-height: 22px;
    82 	line-height: 2.18181818; /* 24px */
    83 	padding: 0 8px 1px;
    83 	padding: 0 8px;
    84 	font-size: 11px;
    84 	font-size: 11px;
    85 }
    85 }
    86 
    86 
    87 .wp-core-ui .button.button-hero,
    87 .wp-core-ui .button.button-hero,
    88 .wp-core-ui .button-group.button-hero .button {
    88 .wp-core-ui .button-group.button-hero .button {
    89 	font-size: 14px;
    89 	font-size: 14px;
    90 	height: 46px;
    90 	min-height: 46px;
    91 	line-height: 44px;
    91 	line-height: 3.14285714;
    92 	padding: 0 36px;
    92 	padding: 0 36px;
    93 }
       
    94 
       
    95 /* Only visible in Windows High Contrast mode */
       
    96 .wp-core-ui .button:active,
       
    97 .wp-core-ui .button:focus {
       
    98 	outline: 2px solid transparent;
       
    99 	/* Reset inherited offset from Gutenberg */
       
   100 	outline-offset: 0;
       
   101 }
    93 }
   102 
    94 
   103 .wp-core-ui .button.hidden {
    95 .wp-core-ui .button.hidden {
   104 	display: none;
    96 	display: none;
   105 }
    97 }
   121   2.0 - Default Button Style
   113   2.0 - Default Button Style
   122 ---------------------------------------------------------------------------- */
   114 ---------------------------------------------------------------------------- */
   123 
   115 
   124 .wp-core-ui .button,
   116 .wp-core-ui .button,
   125 .wp-core-ui .button-secondary {
   117 .wp-core-ui .button-secondary {
   126 	color: #555;
   118 	color: #0071a1;
   127 	border-color: #cccccc;
   119 	border-color: #0071a1;
   128 	background: #f7f7f7;
   120 	background: #f3f5f6;
   129 	box-shadow: 0 1px 0 #cccccc;
       
   130 	vertical-align: top;
   121 	vertical-align: top;
   131 }
   122 }
   132 
   123 
   133 .wp-core-ui p .button {
   124 .wp-core-ui p .button {
   134 	vertical-align: baseline;
   125 	vertical-align: baseline;
   135 }
   126 }
   136 
   127 
   137 .wp-core-ui .button.hover,
   128 .wp-core-ui .button.hover,
   138 .wp-core-ui .button:hover,
   129 .wp-core-ui .button:hover,
   139 .wp-core-ui .button-secondary:hover,
   130 .wp-core-ui .button-secondary:hover{
       
   131 	background: #f1f1f1;
       
   132 	border-color: #016087;
       
   133 	color: #016087;
       
   134 }
       
   135 
   140 .wp-core-ui .button.focus,
   136 .wp-core-ui .button.focus,
   141 .wp-core-ui .button:focus,
   137 .wp-core-ui .button:focus,
   142 .wp-core-ui .button-secondary:focus {
   138 .wp-core-ui .button-secondary:focus {
   143 	background: #fafafa;
   139 	background: #f3f5f6;
   144 	border-color: #999;
   140 	border-color: #007cba;
   145 	color: #23282d;
   141 	color: #016087;
   146 }
   142 	box-shadow: 0 0 0 1px #007cba;
   147 
   143 	/* Only visible in Windows High Contrast mode */
   148 .wp-core-ui .button.focus,
   144 	outline: 2px solid transparent;
   149 .wp-core-ui .button:focus,
   145 	/* Reset inherited offset from Gutenberg */
   150 .wp-core-ui .button-secondary:focus {
   146 	outline-offset: 0;
   151 	border-color: #5b9dd9;
   147 }
   152 	box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
   148 
   153 }
   149 /* :active state */
   154 
       
   155 .wp-core-ui .button.active,
       
   156 .wp-core-ui .button.active:hover,
       
   157 .wp-core-ui .button:active,
   150 .wp-core-ui .button:active,
   158 .wp-core-ui .button-secondary:active {
   151 .wp-core-ui .button-secondary:active {
   159 	background: #eee;
   152 	background: #f3f5f6;
   160 	border-color: #999;
   153 	border-color: #7e8993;
   161 	box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
   154 	box-shadow: none;
   162 	transform: translateY(1px);
   155 }
       
   156 
       
   157 /* pressed state e.g. a selected setting */
       
   158 .wp-core-ui .button.active,
       
   159 .wp-core-ui .button.active:hover {
       
   160 	background-color: #e2e4e7;
       
   161 	color: #00669b;
       
   162 	border-color: #016087;
       
   163 	box-shadow: inset 0 2px 5px -3px #016087;
   163 }
   164 }
   164 
   165 
   165 .wp-core-ui .button.active:focus {
   166 .wp-core-ui .button.active:focus {
   166 	border-color: #5b9dd9;
   167 	border-color: #007cba;
   167 	box-shadow:
   168 	box-shadow:
   168 		inset 0 2px 5px -3px rgba(0, 0, 0, 0.5),
   169 		inset 0 2px 5px -3px #016087,
   169 		0 0 3px rgba(0, 115, 170, 0.8);
   170 		0 0 0 1px #007cba;
   170 }
   171 }
   171 
   172 
   172 .wp-core-ui .button[disabled],
   173 .wp-core-ui .button[disabled],
   173 .wp-core-ui .button:disabled,
   174 .wp-core-ui .button:disabled,
   174 .wp-core-ui .button.disabled,
   175 .wp-core-ui .button.disabled,
   178 .wp-core-ui .button-disabled {
   179 .wp-core-ui .button-disabled {
   179 	color: #a0a5aa !important;
   180 	color: #a0a5aa !important;
   180 	border-color: #ddd !important;
   181 	border-color: #ddd !important;
   181 	background: #f7f7f7 !important;
   182 	background: #f7f7f7 !important;
   182 	box-shadow: none !important;
   183 	box-shadow: none !important;
   183 	text-shadow: 0 1px 0 #fff !important;
       
   184 	cursor: default;
   184 	cursor: default;
   185 	transform: none !important;
   185 	transform: none !important;
   186 }
   186 }
   187 
   187 
   188 /* Buttons that look like links, for a cross of good semantics with the visual */
   188 /* Buttons that look like links, for a cross of good semantics with the visual */
   203 	transition-timing-function: ease-in-out;
   203 	transition-timing-function: ease-in-out;
   204 }
   204 }
   205 
   205 
   206 .wp-core-ui .button-link:hover,
   206 .wp-core-ui .button-link:hover,
   207 .wp-core-ui .button-link:active {
   207 .wp-core-ui .button-link:active {
   208 	color: #00a0d2;
   208 	color: #006799;
   209 }
   209 }
   210 
   210 
   211 .wp-core-ui .button-link:focus {
   211 .wp-core-ui .button-link:focus {
   212 	color: #124964;
   212 	color: #124964;
   213 	box-shadow:
   213 	box-shadow:
   230 .wp-core-ui .button-link-delete:disabled {
   230 .wp-core-ui .button-link-delete:disabled {
   231 	/* overrides the default buttons disabled background */
   231 	/* overrides the default buttons disabled background */
   232 	background: transparent !important;
   232 	background: transparent !important;
   233 }
   233 }
   234 
   234 
   235 .ie8 .wp-core-ui .button-link:focus {
       
   236 	outline: #5b9dd9 solid 1px;
       
   237 }
       
   238 
   235 
   239 /* ----------------------------------------------------------------------------
   236 /* ----------------------------------------------------------------------------
   240   3.0 - Primary Button Style
   237   3.0 - Primary Button Style
   241 ---------------------------------------------------------------------------- */
   238 ---------------------------------------------------------------------------- */
   242 
   239 
   243 .wp-core-ui .button-primary {
   240 .wp-core-ui .button-primary {
   244 	background: #0085ba;
   241 	background: #007cba;
   245 	border-color: #0073aa #006799 #006799;
   242 	border-color: #007cba;
   246 	box-shadow: 0 1px 0 #006799;
       
   247 	color: #fff;
   243 	color: #fff;
   248 	text-decoration: none;
   244 	text-decoration: none;
   249 	text-shadow: 0 -1px 1px #006799,
   245 	text-shadow: none;
   250 		1px 0 1px #006799,
       
   251 		0 1px 1px #006799,
       
   252 		-1px 0 1px #006799;
       
   253 }
   246 }
   254 
   247 
   255 .wp-core-ui .button-primary.hover,
   248 .wp-core-ui .button-primary.hover,
   256 .wp-core-ui .button-primary:hover,
   249 .wp-core-ui .button-primary:hover,
   257 .wp-core-ui .button-primary.focus,
   250 .wp-core-ui .button-primary.focus,
   258 .wp-core-ui .button-primary:focus {
   251 .wp-core-ui .button-primary:focus {
   259 	background: #008ec2;
   252 	background: #0071a1;
   260 	border-color: #006799;
   253 	border-color: #0071a1;
   261 	color: #fff;
   254 	color: #fff;
   262 }
   255 }
   263 
   256 
   264 .wp-core-ui .button-primary.focus,
   257 .wp-core-ui .button-primary.focus,
   265 .wp-core-ui .button-primary:focus {
   258 .wp-core-ui .button-primary:focus {
   266 	box-shadow: 0 1px 0 #0073aa,
   259 	box-shadow:
   267 		0 0 2px 1px #33b3db;
   260 		0 0 0 1px #fff,
       
   261 		0 0 0 3px #007cba;
   268 }
   262 }
   269 
   263 
   270 .wp-core-ui .button-primary.active,
   264 .wp-core-ui .button-primary.active,
   271 .wp-core-ui .button-primary.active:hover,
   265 .wp-core-ui .button-primary.active:hover,
   272 .wp-core-ui .button-primary.active:focus,
   266 .wp-core-ui .button-primary.active:focus,
   273 .wp-core-ui .button-primary:active {
   267 .wp-core-ui .button-primary:active {
   274 	background: #0073aa;
   268 	background: #00669b;
   275 	border-color: #006799;
   269 	border-color: #00669b;
   276 	box-shadow: inset 0 2px 0 #006799;
   270 	box-shadow: none;
       
   271 	color: #fff;
   277 }
   272 }
   278 
   273 
   279 .wp-core-ui .button-primary[disabled],
   274 .wp-core-ui .button-primary[disabled],
   280 .wp-core-ui .button-primary:disabled,
   275 .wp-core-ui .button-primary:disabled,
   281 .wp-core-ui .button-primary-disabled,
   276 .wp-core-ui .button-primary-disabled,
   282 .wp-core-ui .button-primary.disabled {
   277 .wp-core-ui .button-primary.disabled {
   283 	color: #66c6e4 !important;
   278 	color: #a0a5aa !important;
   284 	background: #008ec2 !important;
   279 	background: #f7f7f7 !important;
   285 	border-color: #007cb2 !important;
   280 	border-color: #ddd !important;
   286 	box-shadow: none !important;
   281 	box-shadow: none !important;
   287 	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
   282 	text-shadow: none !important;
   288 	cursor: default;
   283 	cursor: default;
   289 }
       
   290 
       
   291 .wp-core-ui .button.button-primary.button-hero {
       
   292 	box-shadow: 0 2px 0 #006799;
       
   293 }
       
   294 
       
   295 .wp-core-ui .button.button-primary.button-hero:focus {
       
   296 	box-shadow:
       
   297 		0 2px 0 #006799,
       
   298 		0 1px 0 #0073aa,
       
   299 		0 0 2px 1px #33b3db;
       
   300 }
       
   301 
       
   302 .wp-core-ui .button.button-primary.button-hero.active,
       
   303 .wp-core-ui .button.button-primary.button-hero.active:hover,
       
   304 .wp-core-ui .button.button-primary.button-hero.active:focus,
       
   305 .wp-core-ui .button.button-primary.button-hero:active {
       
   306 	box-shadow: inset 0 3px 0 #006799;
       
   307 }
   284 }
   308 
   285 
   309 /* ----------------------------------------------------------------------------
   286 /* ----------------------------------------------------------------------------
   310   4.0 - Button Groups
   287   4.0 - Button Groups
   311 ---------------------------------------------------------------------------- */
   288 ---------------------------------------------------------------------------- */
   320 
   297 
   321 .wp-core-ui .button-group > .button {
   298 .wp-core-ui .button-group > .button {
   322 	display: inline-block;
   299 	display: inline-block;
   323 	border-radius: 0;
   300 	border-radius: 0;
   324 	margin-right: -1px;
   301 	margin-right: -1px;
   325 	z-index: 10;
       
   326 }
       
   327 
       
   328 .wp-core-ui .button-group > .button-primary {
       
   329 	z-index: 100;
       
   330 }
       
   331 
       
   332 .wp-core-ui .button-group > .button:hover {
       
   333 	z-index: 20;
       
   334 }
   302 }
   335 
   303 
   336 .wp-core-ui .button-group > .button:first-child {
   304 .wp-core-ui .button-group > .button:first-child {
   337 	border-radius: 3px 0 0 3px;
   305 	border-radius: 3px 0 0 3px;
   338 }
   306 }
   339 
   307 
   340 .wp-core-ui .button-group > .button:last-child {
   308 .wp-core-ui .button-group > .button:last-child {
   341 	border-radius: 0 3px 3px 0;
   309 	border-radius: 0 3px 3px 0;
       
   310 }
       
   311 
       
   312 .wp-core-ui .button-group > .button-primary + .button {
       
   313 	border-left: 0;
   342 }
   314 }
   343 
   315 
   344 .wp-core-ui .button-group > .button:focus {
   316 .wp-core-ui .button-group > .button:focus {
   345 	position: relative;
   317 	position: relative;
   346 	z-index: 1;
   318 	z-index: 1;
       
   319 }
       
   320 
       
   321 /* pressed state e.g. a selected setting */
       
   322 .wp-core-ui .button-group > .button.active {
       
   323 	background-color: #e2e4e7;
       
   324 	color: #00669b;
       
   325 	border-color: #016087;
       
   326 	box-shadow: inset 0 2px 5px -3px #016087;
       
   327 }
       
   328 
       
   329 .wp-core-ui .button-group > .button.active:focus {
       
   330 	border-color: #007cba;
       
   331 	box-shadow:
       
   332 		inset 0 2px 5px -3px #016087,
       
   333 		0 0 0 1px #007cba;
   347 }
   334 }
   348 
   335 
   349 /* ----------------------------------------------------------------------------
   336 /* ----------------------------------------------------------------------------
   350   5.0 - Responsive Button Styles
   337   5.0 - Responsive Button Styles
   351 ---------------------------------------------------------------------------- */
   338 ---------------------------------------------------------------------------- */
   356 	.wp-core-ui .button.button-large,
   343 	.wp-core-ui .button.button-large,
   357 	.wp-core-ui .button.button-small,
   344 	.wp-core-ui .button.button-small,
   358 	input#publish,
   345 	input#publish,
   359 	input#save-post,
   346 	input#save-post,
   360 	a.preview {
   347 	a.preview {
   361 		padding: 6px 14px;
   348 		padding: 0 14px;
   362 		line-height: normal;
   349 		line-height: 2.71428571; /* 38px */
   363 		font-size: 14px;
   350 		font-size: 14px;
   364 		vertical-align: middle;
   351 		vertical-align: middle;
   365 		height: auto;
   352 		min-height: 40px;
   366 		margin-bottom: 4px;
   353 		margin-bottom: 4px;
       
   354 	}
       
   355 
       
   356 	/* Copy attachment URL button in the legacy edit media page. */
       
   357 	.wp-core-ui .copy-to-clipboard-container .copy-attachment-url {
       
   358 		margin-bottom: 0;
   367 	}
   359 	}
   368 
   360 
   369 	#media-upload.wp-core-ui .button {
   361 	#media-upload.wp-core-ui .button {
   370 		padding: 0 10px 1px;
   362 		padding: 0 10px 1px;
   371 		height: 24px;
   363 		min-height: 24px;
   372 		line-height: 22px;
   364 		line-height: 22px;
   373 		font-size: 13px;
   365 		font-size: 13px;
   374 	}
   366 	}
   375 
   367 
   376 	.media-frame.mode-grid .bulk-select .button {
   368 	.media-frame.mode-grid .bulk-select .button {
   384 	}
   376 	}
   385 
   377 
   386 	/* Reset responsive styles in Press This, Customizer */
   378 	/* Reset responsive styles in Press This, Customizer */
   387 
   379 
   388 	.wp-core-ui.wp-customizer .button {
   380 	.wp-core-ui.wp-customizer .button {
   389 		padding: 0 10px 1px;
       
   390 		font-size: 13px;
   381 		font-size: 13px;
   391 		line-height: 26px;
   382 		line-height: 2.15384615; /* 28px */
   392 		height: 28px;
   383 		min-height: 30px;
   393 		margin: 0;
   384 		margin: 0;
   394 		vertical-align: inherit;
   385 		vertical-align: inherit;
   395 	}
   386 	}
   396 
   387 
   397 	.media-modal-content .media-toolbar-primary .media-button {
   388 	.media-modal-content .media-toolbar-primary .media-button {
   400 	}
   391 	}
   401 
   392 
   402 	/* Reset responsive styles on Log in button on iframed login form */
   393 	/* Reset responsive styles on Log in button on iframed login form */
   403 
   394 
   404 	.interim-login .button.button-large {
   395 	.interim-login .button.button-large {
   405 		height: 30px;
   396 		min-height: 30px;
   406 		line-height: 28px;
   397 		line-height: 2;
   407 		padding: 0 12px 2px;
   398 		padding: 0 12px 2px;
   408 	}
   399 	}
   409 
   400 
   410 }
   401 }