wp/wp-includes/css/buttons.css
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
--- a/wp/wp-includes/css/buttons.css	Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-includes/css/buttons.css	Mon Oct 14 17:39:30 2019 +0200
@@ -8,7 +8,7 @@
 
 WordPress-style Buttons
 =======================
-Create a button by adding the `.button` class to an element. For backwards
+Create a button by adding the `.button` class to an element. For backward
 compatibility, we support several other classes (such as `.button-secondary`),
 but these will *not* work with the stackable classes described below.
 
@@ -54,11 +54,8 @@
 	border-width: 1px;
 	border-style: solid;
 	-webkit-appearance: none;
-	-webkit-border-radius: 3px;
 	border-radius: 3px;
 	white-space: nowrap;
-	-webkit-box-sizing: border-box;
-	-moz-box-sizing: border-box;
 	box-sizing: border-box;
 }
 
@@ -112,7 +109,6 @@
 .wp-core-ui input[type="reset"]:focus {
 	background: none;
 	border: none;
-	-webkit-box-shadow: none;
 	box-shadow: none;
 	padding: 0 2px 1px;
 	width: auto;
@@ -127,8 +123,7 @@
 	color: #555;
 	border-color: #cccccc;
 	background: #f7f7f7;
-	-webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 );
-	box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 );
+	box-shadow: 0 1px 0 #cccccc;
  	vertical-align: top;
 }
 
@@ -150,12 +145,8 @@
 .wp-core-ui .button.focus,
 .wp-core-ui .button:focus,
 .wp-core-ui .button-secondary:focus {
-	-webkit-box-shadow:
-		0 0 0 1px #5b9dd9,
-		0 0 2px 1px rgba(30, 140, 190, .8);
-	box-shadow:
-		0 0 0 1px #5b9dd9,
-		0 0 2px 1px rgba(30, 140, 190, .8);
+	border-color: #5b9dd9;
+	box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
 }
 
 .wp-core-ui .button.active,
@@ -164,20 +155,16 @@
 .wp-core-ui .button-secondary:active {
 	background: #eee;
 	border-color: #999;
-	color: #32373c;
- 	-webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
- 	box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
+	box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
+	-webkit-transform: translateY(1px);
+	transform: translateY(1px);
 }
 
 .wp-core-ui .button.active:focus {
-	-webkit-box-shadow:
-		inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
-		0 0 0 1px #5b9dd9,
-		0 0 2px 1px rgba(30, 140, 190, .8);
+	border-color: #5b9dd9;
 	box-shadow:
 		inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
-		0 0 0 1px #5b9dd9,
-		0 0 2px 1px rgba(30, 140, 190, .8);
+		0 0 3px rgba( 0, 115, 170, .8 );
 }
 
 .wp-core-ui .button[disabled],
@@ -190,10 +177,55 @@
 	color: #a0a5aa !important;
 	border-color: #ddd !important;
 	background: #f7f7f7 !important;
-	-webkit-box-shadow: none !important;
 	box-shadow: none !important;
 	text-shadow: 0 1px 0 #fff !important;
 	cursor: default;
+	-webkit-transform: none !important;
+	transform: none !important;
+}
+
+/* Buttons that look like links, for a cross of good semantics with the visual */
+.wp-core-ui .button-link {
+	margin: 0;
+	padding: 0;
+	box-shadow: none;
+	border: 0;
+	border-radius: 0;
+	background: none;
+	outline: none;
+	cursor: pointer;
+	text-align: left;
+	/* Mimics the default link style in common.css */
+	color: #0073aa;
+	text-decoration: underline;
+	transition-property: border, background, color;
+	transition-duration: .05s;
+	transition-timing-function: ease-in-out;
+}
+
+.wp-core-ui .button-link:hover,
+.wp-core-ui .button-link:active {
+	color: #00a0d2;
+}
+
+.wp-core-ui .button-link:focus {
+	color: #124964;
+	box-shadow:
+		0 0 0 1px #5b9dd9,
+		0 0 2px 1px rgba(30, 140, 190, .8);
+}
+
+.wp-core-ui .button-link-delete {
+	color: #a00;
+}
+
+.wp-core-ui .button-link-delete:hover,
+.wp-core-ui .button-link-delete:focus {
+	color: #dc3232;
+}
+
+.ie8 .wp-core-ui .button-link:focus {
+	outline: #5b9dd9 solid 1px;
 }
 
 /* ----------------------------------------------------------------------------
@@ -201,36 +233,30 @@
 ---------------------------------------------------------------------------- */
 
 .wp-core-ui .button-primary {
-	background: #00a0d2;
-	border-color: #0073aa;
- 	-webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 );
- 	box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 );
- 	color: #fff;
+	background: #0085ba;
+	border-color: #0073aa #006799 #006799;
+	box-shadow: 0 1px 0 #006799;
+	color: #fff;
 	text-decoration: none;
+	text-shadow: 0 -1px 1px #006799,
+		1px 0 1px #006799,
+		0 1px 1px #006799,
+		-1px 0 1px #006799;
 }
 
 .wp-core-ui .button-primary.hover,
 .wp-core-ui .button-primary:hover,
 .wp-core-ui .button-primary.focus,
 .wp-core-ui .button-primary:focus {
-	background: #0091cd;
-	border-color: #0073aa;
- 	-webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 );
- 	box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 );
+	background: #008ec2;
+	border-color: #006799;
 	color: #fff;
 }
 
 .wp-core-ui .button-primary.focus,
 .wp-core-ui .button-primary:focus {
-	border-color: #0e3950;
-	-webkit-box-shadow:
-		inset 0 1px 0 rgba( 120, 200, 230, 0.6 ),
-		0 0 0 1px #5b9dd9,
-		0 0 2px 1px rgba(30, 140, 190, .8);
-	box-shadow:
-		inset 0 1px 0 rgba( 120, 200, 230, 0.6 ),
-		0 0 0 1px #5b9dd9,
-		0 0 2px 1px rgba(30, 140, 190, .8);
+	box-shadow: 0 1px 0 #0073aa,
+		0 0 2px 1px #33b3db;
 }
 
 .wp-core-ui .button-primary.active,
@@ -238,26 +264,34 @@
 .wp-core-ui .button-primary.active:focus,
 .wp-core-ui .button-primary:active {
 	background: #0073aa;
-	border-color: #005082;
-	color: rgba( 255, 255, 255, 0.95 );
- 	-webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 );
- 	box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 );
- 	vertical-align: top;
+	border-color: #006799;
+	box-shadow: inset 0 2px 0 #006799;
+	vertical-align: top;
 }
 
 .wp-core-ui .button-primary[disabled],
 .wp-core-ui .button-primary:disabled,
 .wp-core-ui .button-primary-disabled,
 .wp-core-ui .button-primary.disabled {
-	color: #94cde7 !important;
-	background: #298cba !important;
-	border-color: #1b607f !important;
-	-webkit-box-shadow: none !important;
+	color: #66c6e4 !important;
+	background: #008ec2 !important;
+	border-color: #007cb2 !important;
 	box-shadow: none !important;
 	text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
 	cursor: default;
 }
 
+.wp-core-ui .button.button-primary.button-hero {
+ box-shadow: 0 2px 0 #006799;
+}
+
+.wp-core-ui .button.button-primary.button-hero.active,
+.wp-core-ui .button.button-primary.button-hero.active:hover,
+.wp-core-ui .button.button-primary.button-hero.active:focus,
+.wp-core-ui .button.button-primary.button-hero:active {
+ box-shadow: inset 0 3px 0 #006799;
+}
+
 /* ----------------------------------------------------------------------------
   4.0 - Button Groups
 ---------------------------------------------------------------------------- */
@@ -272,7 +306,6 @@
 
 .wp-core-ui .button-group > .button {
 	display: inline-block;
-	-webkit-border-radius: 0;
 	border-radius: 0;
 	margin-right: -1px;
 	z-index: 10;
@@ -287,12 +320,10 @@
 }
 
 .wp-core-ui .button-group > .button:first-child {
-	-webkit-border-radius: 3px 0 0 3px;
 	border-radius: 3px 0 0 3px;
 }
 
 .wp-core-ui .button-group > .button:last-child {
-	-webkit-border-radius: 0 3px 3px 0;
 	border-radius: 0 3px 3px 0;
 }
 
@@ -349,6 +380,11 @@
 		vertical-align: inherit;
 	}
 
+	.media-modal-content .media-toolbar-primary .media-button {
+		margin-top: 10px;
+		margin-left: 5px;
+	}
+
 	/* Reset responsive styles on Log in button on iframed login form */
 
 	.interim-login .button.button-large {