wp/wp-admin/css/dashboard.css
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    36 
    36 
    37 #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container {
    37 #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container {
    38 	border: none !important;
    38 	border: none !important;
    39 }
    39 }
    40 
    40 
    41 .ie8 #wpbody-content #dashboard-widgets .postbox-container {
       
    42 	width: 49.5%;
       
    43 }
       
    44 
       
    45 .ie8 #wpbody-content #dashboard-widgets #postbox-container-2,
       
    46 .ie8 #wpbody-content #dashboard-widgets #postbox-container-3,
       
    47 .ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
       
    48 	float: right;
       
    49 	width: 50.5%;
       
    50 }
       
    51 
       
    52 .ie8 #dashboard-widgets #postbox-container-3 .empty-container,
       
    53 .ie8 #dashboard-widgets #postbox-container-4 .empty-container {
       
    54 	border: 0 none;
       
    55 	height: 0;
       
    56 	min-height: 0;
       
    57 }
       
    58 
       
    59 #dashboard-widgets-wrap {
    41 #dashboard-widgets-wrap {
    60 	overflow: hidden;
    42 	overflow: hidden;
    61 	margin: 0 -8px;
    43 	margin: 0 -8px;
    62 }
    44 }
    63 
    45 
    64 #dashboard-widgets .postbox .inside {
    46 #dashboard-widgets .postbox .inside {
    65 	margin-bottom: 0;
    47 	margin-bottom: 0;
    66 }
    48 }
    67 
    49 
    68 #dashboard-widgets .meta-box-sortables {
    50 #dashboard-widgets .meta-box-sortables {
    69 	margin: 0 8px;
    51 	display: flow-root; /* avoid margin collapsing between parent and first/last child elements */
       
    52 	/* Required min-height to make the jQuery UI Sortable drop zone work. */
    70 	min-height: 100px;
    53 	min-height: 100px;
    71 }
    54 	margin: 0 8px 20px;
       
    55 }
       
    56 
       
    57 #dashboard-widgets .postbox-container .empty-container {
       
    58 	outline: 3px dashed #b4b9be;
       
    59 	height: 250px;
       
    60 }
       
    61 
       
    62 /* Only highlight drop zones when dragging and only in the 2 columns layout. */
       
    63 .is-dragging-metaboxes #dashboard-widgets .meta-box-sortables {
       
    64 	outline: 3px dashed #606a73;
       
    65 	/* Prevent margin on the child from collapsing with margin on the parent. */
       
    66 	display: flow-root;
       
    67 }
       
    68 
       
    69 #dashboard-widgets .postbox-container .empty-container:after {
       
    70 	content: attr(data-emptystring);
       
    71 	margin: auto;
       
    72 	position: absolute;
       
    73 	top: 50%;
       
    74 	left: 0;
       
    75 	right: 0;
       
    76 	transform: translateY( -50% );
       
    77 	padding: 0 2em;
       
    78 	text-align: center;
       
    79 	color: #606a73;
       
    80 	font-size: 16px;
       
    81 	line-height: 1.5;
       
    82 	display: none;
       
    83 }
       
    84 
    72 
    85 
    73 /* @todo: this was originally in this section, but likely belongs elsewhere */
    86 /* @todo: this was originally in this section, but likely belongs elsewhere */
    74 #the-comment-list td.comment p.comment-author {
    87 #the-comment-list td.comment p.comment-author {
    75 	margin-top: 0;
    88 	margin-top: 0;
    76 	margin-left: 0;
    89 	margin-left: 0;
   101 .welcome-panel {
   114 .welcome-panel {
   102 	position: relative;
   115 	position: relative;
   103 	overflow: auto;
   116 	overflow: auto;
   104 	margin: 16px 0;
   117 	margin: 16px 0;
   105 	padding: 23px 10px 0;
   118 	padding: 23px 10px 0;
   106 	border: 1px solid #e5e5e5;
   119 	border: 1px solid #ccd0d4;
   107 	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
   120 	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
   108 	background: #fff;
   121 	background: #fff;
   109 	font-size: 13px;
   122 	font-size: 13px;
   110 	line-height: 2.1em;
   123 	line-height: 1.7;
   111 }
   124 }
   112 
   125 
   113 .welcome-panel h2 {
   126 .welcome-panel h2 {
   114 	margin: 0;
   127 	margin: 0;
   115 	font-size: 21px;
   128 	font-size: 21px;
   128 
   141 
   129 .welcome-panel p {
   142 .welcome-panel p {
   130 	color: #72777c;
   143 	color: #72777c;
   131 }
   144 }
   132 
   145 
   133 .welcome-panel a {
   146 .welcome-panel li a {
   134 	text-decoration: none;
   147 	text-decoration: none;
   135 }
   148 }
   136 
   149 
   137 .welcome-panel .about-description {
   150 .welcome-panel .about-description {
   138 	font-size: 16px;
   151 	font-size: 16px;
   178 	width: 32%;
   191 	width: 32%;
   179 	min-width: 200px;
   192 	min-width: 200px;
   180 	float: left;
   193 	float: left;
   181 }
   194 }
   182 
   195 
   183 .ie8 .welcome-panel .welcome-panel-column {
       
   184 	min-width: 230px;
       
   185 }
       
   186 
       
   187 .welcome-panel .welcome-panel-column:first-child {
   196 .welcome-panel .welcome-panel-column:first-child {
   188 	width: 36%;
   197 	width: 36%;
   189 }
   198 }
   190 
   199 
   191 .welcome-panel-column p.hide-if-no-customize {
   200 .welcome-panel-column p.hide-if-no-customize {
   196 	margin-top: 7px;
   205 	margin-top: 7px;
   197 	color: #444;
   206 	color: #444;
   198 }
   207 }
   199 
   208 
   200 .welcome-panel .welcome-widgets-menus {
   209 .welcome-panel .welcome-widgets-menus {
   201 	line-height: 16px;
   210 	line-height: 1.14285714;
   202 }
   211 }
   203 
   212 
   204 .welcome-panel .welcome-panel-column ul {
   213 .welcome-panel .welcome-panel-column ul {
   205 	margin: 0.8em 1em 1em 0;
   214 	margin: 0.8em 1em 1em 0;
   206 }
   215 }
   207 
   216 
   208 .welcome-panel .welcome-panel-column li {
   217 .welcome-panel .welcome-panel-column li {
   209 	line-height: 16px;
   218 	line-height: 1.14285714;
   210 	list-style-type: none;
   219 	list-style-type: none;
   211 	padding: 0 0 8px;
   220 	padding: 0 0 8px;
   212 }
   221 }
   213 
   222 
   214 .welcome-panel .welcome-icon {
   223 .welcome-panel .welcome-icon {
   217 
   226 
   218 /* Welcome Panel and Right Now common Icons style */
   227 /* Welcome Panel and Right Now common Icons style */
   219 
   228 
   220 .welcome-panel .welcome-icon:before,
   229 .welcome-panel .welcome-icon:before,
   221 #dashboard_right_now li a:before,
   230 #dashboard_right_now li a:before,
   222 #dashboard_right_now li span:before {
   231 #dashboard_right_now li span:before,
   223 	color: #82878c;
   232 #dashboard_right_now .search-engines-info:before {
       
   233 	color: #606a73;
   224 	font: normal 20px/1 dashicons;
   234 	font: normal 20px/1 dashicons;
   225 	speak: none;
   235 	speak: none;
   226 	display: inline-block;
   236 	display: inline-block;
   227 	padding: 0 10px 0 0;
   237 	padding: 0 10px 0 0;
   228 	position: relative;
   238 	position: relative;
   258 .welcome-panel .welcome-widgets-menus:before {
   268 .welcome-panel .welcome-widgets-menus:before {
   259 	content: "\f116";
   269 	content: "\f116";
   260 	top: -2px;
   270 	top: -2px;
   261 }
   271 }
   262 
   272 
       
   273 .welcome-panel .welcome-widgets:before {
       
   274 	content: "\f538";
       
   275 	top: -2px;
       
   276 }
       
   277 
       
   278 .welcome-panel .welcome-menus:before {
       
   279 	content: "\f163";
       
   280 	top: -2px;
       
   281 }
       
   282 
   263 .welcome-panel .welcome-comments:before {
   283 .welcome-panel .welcome-comments:before {
   264 	content: "\f117";
   284 	content: "\f117";
   265 	top: -1px;
   285 	top: -1px;
   266 }
   286 }
   267 
   287 
   270 	top: -1px;
   290 	top: -1px;
   271 }
   291 }
   272 
   292 
   273 /* Right Now specific Icons styles */
   293 /* Right Now specific Icons styles */
   274 
   294 
       
   295 #dashboard_right_now .search-engines-info:before,
   275 #dashboard_right_now li a:before,
   296 #dashboard_right_now li a:before,
   276 #dashboard_right_now li > span:before { /* get only the first level span to exclude screen-reader-text in mu-storage */
   297 #dashboard_right_now li > span:before { /* get only the first level span to exclude screen-reader-text in mu-storage */
   277 	content: "\f159"; /* generic icon for items added by CPTs ? */
   298 	content: "\f159"; /* generic icon for items added by CPTs ? */
   278 	padding: 0 5px 0 0;
   299 	padding: 0 5px 0 0;
   279 }
   300 }
   300 	content: "\f104";
   321 	content: "\f104";
   301 }
   322 }
   302 
   323 
   303 #dashboard_right_now .storage-count.warning a:before {
   324 #dashboard_right_now .storage-count.warning a:before {
   304 	content: "\f153";
   325 	content: "\f153";
       
   326 }
       
   327 
       
   328 #dashboard_right_now .search-engines-info:before {
       
   329 	content: "\f348";
   305 }
   330 }
   306 
   331 
   307 /* Dashboard WordPress events */
   332 /* Dashboard WordPress events */
   308 
   333 
   309 .community-events-errors {
   334 .community-events-errors {
   352 
   377 
   353 .community-events li.event-none {
   378 .community-events li.event-none {
   354 	border-left: 4px solid #00a0d2;
   379 	border-left: 4px solid #00a0d2;
   355 }
   380 }
   356 
   381 
       
   382 #dashboard-widgets .community-events li.event-none a {
       
   383 	text-decoration: underline;
       
   384 }
       
   385 
   357 .community-events-form label {
   386 .community-events-form label {
   358 	display: inline-block;
   387 	display: inline-block;
   359 	vertical-align: top;
   388 	vertical-align: top;
   360 	line-height: 28px;
   389 	line-height: 2.15384615;
   361 	height: 28px;
   390 	height: 28px;
   362 }
   391 }
   363 
   392 
   364 .community-events .activity-block > p {
   393 .community-events .activity-block > p {
   365 	margin-bottom: 0;
   394 	margin-bottom: 0;
   377 
   406 
   378 /* Needs higher specificity than #dashboard-widgets .button-link */
   407 /* Needs higher specificity than #dashboard-widgets .button-link */
   379 #dashboard-widgets .community-events-cancel.button-link {
   408 #dashboard-widgets .community-events-cancel.button-link {
   380 	vertical-align: top;
   409 	vertical-align: top;
   381 	/* Same properties as the submit button for cross-browsers alignment. */
   410 	/* Same properties as the submit button for cross-browsers alignment. */
   382 	line-height: 26px;
   411 	line-height: 2;
   383 	height: 28px;
   412 	height: 28px;
   384 	text-decoration: underline;
   413 	text-decoration: underline;
   385 }
   414 }
   386 
   415 
   387 .community-events ul {
   416 .community-events ul {
   420 	width: 18px;
   449 	width: 18px;
   421 	display: none; /* Hide on smaller screens */
   450 	display: none; /* Hide on smaller screens */
   422 }
   451 }
   423 
   452 
   424 .event-icon:before {
   453 .event-icon:before {
   425 	color: #82878C;
   454 	color: #606a73;
   426 	font-size: 18px;
   455 	font-size: 18px;
   427 }
   456 }
   428 .event-meetup .event-icon:before {
   457 .event-meetup .event-icon:before {
   429 	content: "\f484";
   458 	content: "\f484";
   430 }
   459 }
   545 #dashboard_right_now #wp-version-message .button {
   574 #dashboard_right_now #wp-version-message .button {
   546 	float: right;
   575 	float: right;
   547 	position: relative;
   576 	position: relative;
   548 	top: -5px;
   577 	top: -5px;
   549 	margin-left: 5px;
   578 	margin-left: 5px;
       
   579 }
       
   580 
       
   581 #dashboard_right_now p.search-engines-info {
       
   582 	margin: 1em 0;
   550 }
   583 }
   551 
   584 
   552 .mu-storage {
   585 .mu-storage {
   553 	overflow: hidden;
   586 	overflow: hidden;
   554 }
   587 }
   716 	padding-bottom: 0;
   749 	padding-bottom: 0;
   717 }
   750 }
   718 
   751 
   719 #dashboard_activity .no-activity {
   752 #dashboard_activity .no-activity {
   720 	overflow: hidden;
   753 	overflow: hidden;
   721 	padding: 0 0 12px;
   754 	padding: 12px 0;
   722 	text-align: center;
   755 	text-align: center;
   723 }
   756 }
   724 
   757 
   725 #dashboard_activity .no-activity p {
   758 #dashboard_activity .no-activity p {
   726 	color: #72777c;
   759 	color: #72777c;
   727 	font-size: 16px;
   760 	font-size: 16px;
   728 }
       
   729 
       
   730 #dashboard_activity .no-activity .smiley {
       
   731 	margin-top: 0;
       
   732 }
       
   733 
       
   734 #dashboard_activity .no-activity .smiley:before {
       
   735 	content: "\f328";
       
   736 	font: normal 120px/1 dashicons;
       
   737 	speak: none;
       
   738 	display: block;
       
   739 	margin: 0 5px 0 0;
       
   740 	padding: 0;
       
   741 	text-indent: 0;
       
   742 	text-align: center;
       
   743 	position: relative;
       
   744 	-webkit-font-smoothing: antialiased;
       
   745 	text-decoration: none !important;
       
   746 }
   761 }
   747 
   762 
   748 #dashboard_activity .subsubsub {
   763 #dashboard_activity .subsubsub {
   749 	float: none;
   764 	float: none;
   750 	border-top: 1px solid #eee;
   765 	border-top: 1px solid #eee;
   809 #activity-widget #the-comment-list .avatar {
   824 #activity-widget #the-comment-list .avatar {
   810 	position: absolute;
   825 	position: absolute;
   811 	top: 12px;
   826 	top: 12px;
   812 }
   827 }
   813 
   828 
   814 #activity-widget #the-comment-list .dashboard-comment-wrap {
   829 #activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
   815 	padding-left: 63px;
   830 	padding-left: 63px;
   816 }
   831 }
   817 
   832 
   818 #activity-widget #the-comment-list .dashboard-comment-wrap blockquote {
   833 #activity-widget #the-comment-list .dashboard-comment-wrap blockquote {
   819 	margin: 1em 0;
   834 	margin: 1em 0;
   884 
   899 
   885 #dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish {
   900 #dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish {
   886 	min-width: 0;
   901 	min-width: 0;
   887 }
   902 }
   888 
   903 
   889 #dashboard-widgets a,
   904 #dashboard-widgets li a,
   890 #dashboard-widgets .button-link {
   905 #dashboard-widgets .button-link,
       
   906 .community-events-footer a {
   891 	text-decoration: none;
   907 	text-decoration: none;
   892 }
   908 }
   893 
   909 
   894 #dashboard-widgets h2 a {
   910 #dashboard-widgets h2 a {
   895 	text-decoration: underline;
   911 	text-decoration: underline;
   935 #latest-comments #the-comment-list .comment-item:first-child {
   951 #latest-comments #the-comment-list .comment-item:first-child {
   936 	border-top: none;
   952 	border-top: none;
   937 }
   953 }
   938 
   954 
   939 #latest-comments #the-comment-list .comment-meta {
   955 #latest-comments #the-comment-list .comment-meta {
   940 	line-height: 1.5em;
   956 	line-height: 1.5;
   941 	margin: 0;
   957 	margin: 0;
   942 	color: #666;
   958 	color: #666;
   943 }
   959 }
   944 
   960 
   945 #latest-comments #the-comment-list .comment-meta cite {
   961 #latest-comments #the-comment-list .comment-meta cite {
   968 }
   984 }
   969 
   985 
   970 a.rsswidget {
   986 a.rsswidget {
   971 	font-size: 13px;
   987 	font-size: 13px;
   972 	font-weight: 600;
   988 	font-weight: 600;
   973 	line-height: 1.4em;
   989 	line-height: 1.4;
   974 }
   990 }
   975 
   991 
   976 .rss-widget ul li {
   992 .rss-widget ul li {
   977 	line-height: 1.5em;
   993 	line-height: 1.5;
   978 	margin-bottom: 12px;
   994 	margin-bottom: 12px;
   979 }
   995 }
   980 
   996 
   981 .rss-widget span.rss-date {
   997 .rss-widget span.rss-date {
   982 	color: #72777c;
   998 	color: #72777c;
  1071 
  1087 
  1072 #dashboard_php_nag.php-insecure .dashicons-warning {
  1088 #dashboard_php_nag.php-insecure .dashicons-warning {
  1073 	color: #df3232;
  1089 	color: #df3232;
  1074 }
  1090 }
  1075 
  1091 
       
  1092 #dashboard_php_nag h2 {
       
  1093 	display: inline-block;
       
  1094 }
       
  1095 
  1076 #dashboard_php_nag p {
  1096 #dashboard_php_nag p {
  1077 	margin: 12px 0;
  1097 	margin: 12px 0;
  1078 }
  1098 }
  1079 
  1099 
  1080 #dashboard_php_nag h3 {
  1100 #dashboard_php_nag h3 {
  1090 
  1110 
  1091 /* one column on the dash */
  1111 /* one column on the dash */
  1092 @media only screen and (max-width: 799px) {
  1112 @media only screen and (max-width: 799px) {
  1093 	#wpbody-content #dashboard-widgets .postbox-container {
  1113 	#wpbody-content #dashboard-widgets .postbox-container {
  1094 		width: 100%;
  1114 		width: 100%;
       
  1115 	}
       
  1116 
       
  1117 	#dashboard-widgets .meta-box-sortables {
       
  1118 		min-height: 0;
       
  1119 	}
       
  1120 
       
  1121 	.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables {
       
  1122 		min-height: 100px;
       
  1123 	}
       
  1124 
       
  1125 	#dashboard-widgets .meta-box-sortables.empty-container {
       
  1126 		margin-bottom: 0;
  1095 	}
  1127 	}
  1096 }
  1128 }
  1097 
  1129 
  1098 /* two columns on the dash, but keep the setting if one is selected */
  1130 /* two columns on the dash, but keep the setting if one is selected */
  1099 @media only screen and (min-width: 800px) and (max-width: 1499px) {
  1131 @media only screen and (min-width: 800px) and (max-width: 1499px) {
  1108 		width: 50.5%;
  1140 		width: 50.5%;
  1109 	}
  1141 	}
  1110 
  1142 
  1111 	#dashboard-widgets #postbox-container-3 .empty-container,
  1143 	#dashboard-widgets #postbox-container-3 .empty-container,
  1112 	#dashboard-widgets #postbox-container-4 .empty-container {
  1144 	#dashboard-widgets #postbox-container-4 .empty-container {
  1113 		border: 0 none;
  1145 		outline: none;
  1114 		height: 0;
  1146 		height: 0;
  1115 		min-height: 0;
  1147 		min-height: 0;
       
  1148 		margin-bottom: 0;
  1116 	}
  1149 	}
  1117 
  1150 
  1118 	#dashboard-widgets #postbox-container-3 .empty-container:after,
  1151 	#dashboard-widgets #postbox-container-3 .empty-container:after,
  1119 	#dashboard-widgets #postbox-container-4 .empty-container:after {
  1152 	#dashboard-widgets #postbox-container-4 .empty-container:after {
  1120 		display: none;
  1153 		display: none;
  1122 
  1155 
  1123 	#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container {
  1156 	#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container {
  1124 		width: 100%;
  1157 		width: 100%;
  1125 	}
  1158 	}
  1126 
  1159 
  1127 	#wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container {
  1160 	#wpbody #dashboard-widgets .metabox-holder.columns-1 .postbox-container .empty-container {
  1128 		border: 0 none;
  1161 		outline: none;
  1129 		height: 0;
  1162 		height: 0;
  1130 		min-height: 0;
  1163 		min-height: 0;
       
  1164 		margin-bottom: 0;
  1131 	}
  1165 	}
  1132 
  1166 
  1133 	/* show the radio buttons for column prefs only for one or two columns */
  1167 	/* show the radio buttons for column prefs only for one or two columns */
  1134 	.index-php .screen-layout,
  1168 	.index-php .screen-layout,
  1135 	.index-php .columns-prefs {
  1169 	.index-php .columns-prefs {
  1139 	.columns-prefs .columns-prefs-3,
  1173 	.columns-prefs .columns-prefs-3,
  1140 	.columns-prefs .columns-prefs-4 {
  1174 	.columns-prefs .columns-prefs-4 {
  1141 		display: none;
  1175 		display: none;
  1142 	}
  1176 	}
  1143 
  1177 
  1144 	.metabox-holder .postbox-container .empty-container:after {
  1178 	#dashboard-widgets .postbox-container .empty-container:after {
  1145 		display: block;
  1179 		display: block;
  1146 	}
  1180 	}
  1147 }
  1181 }
  1148 
  1182 
  1149 /* three columns on the dash */
  1183 /* three columns on the dash */
  1160 	#wpbody-content #dashboard-widgets #postbox-container-4 {
  1194 	#wpbody-content #dashboard-widgets #postbox-container-4 {
  1161 		float: right;
  1195 		float: right;
  1162 	}
  1196 	}
  1163 
  1197 
  1164 	#dashboard-widgets #postbox-container-4 .empty-container {
  1198 	#dashboard-widgets #postbox-container-4 .empty-container {
  1165 		border: 0 none;
  1199 		outline: none;
  1166 		height: 0;
  1200 		height: 0;
  1167 		min-height: 0;
  1201 		min-height: 0;
       
  1202 		margin-bottom: 0;
  1168 	}
  1203 	}
  1169 
  1204 
  1170 	#dashboard-widgets #postbox-container-4 .empty-container:after {
  1205 	#dashboard-widgets #postbox-container-4 .empty-container:after {
  1171 		display: none;
  1206 		display: none;
  1172 	}
  1207 	}
  1173 
  1208 
  1174 	.metabox-holder .postbox-container .empty-container:after {
  1209 	#dashboard-widgets .postbox-container .empty-container:after {
       
  1210 		display: block;
       
  1211 	}
       
  1212 }
       
  1213 
       
  1214 /* Always show the "Drag boxes here" CSS generated content on large screens. */
       
  1215 @media only screen and (min-width: 1801px) {
       
  1216 	#dashboard-widgets .postbox-container .empty-container:after {
  1175 		display: block;
  1217 		display: block;
  1176 	}
  1218 	}
  1177 }
  1219 }
  1178 
  1220 
  1179 @media screen and (max-width: 870px) {
  1221 @media screen and (max-width: 870px) {
  1194 	}
  1236 	}
  1195 
  1237 
  1196 }
  1238 }
  1197 
  1239 
  1198 @media screen and (max-width: 782px) {
  1240 @media screen and (max-width: 782px) {
       
  1241 	#dashboard-widgets h2 {
       
  1242 		padding: 12px;
       
  1243 	}
       
  1244 
  1199 	#dashboard_recent_comments #the-comment-list .comment-item .avatar {
  1245 	#dashboard_recent_comments #the-comment-list .comment-item .avatar {
  1200 		height: 30px;
  1246 		height: 30px;
  1201 		width: 30px;
  1247 		width: 30px;
  1202 		margin: 4px 10px 5px 0;
  1248 		margin: 4px 10px 5px 0;
  1203 	}
  1249 	}