Jump to content
Sign in to follow this  

Затемнение фона модальных окон(только в css)

Recommended Posts

Привет всем. Можно ли осуществить затемнение фона модальных окон путем правки только файлов шаблона? Чтобы не лезть в движок..


/*---Диалоговые и всплывающие окна jQuery UI---*/
.ui-front { z-index: 1000; }
.ui-button-icon-only { overflow: hidden; text-indent: -9999px; }

.ui-widget-overlay {
	background: #000;
	opacity: 0.5;
	-moz-opacity: 0.5 filter:alpha(opacity=5);
	left: 0; top: 0; right: 0; bottom: 0;
	position: fixed;
	.ui-helper-clearfix:after { clear: both; content: "."; display: block; height: 0; visibility: hidden }
	.ui-helper-clearfix { display: inline-block }
	* html .ui-helper-clearfix { height: 1% }
	.ui-helper-clearfix { display: block }
	.ui-dialog {
		text-align: left;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 420px;
		border-radius: 2px;
		box-shadow: 0 0px 20px -10px rgba(0,0,0,0.1);
		border: 1px solid #ccc; border-color: rgba(0,0,0,0.1);
		background-color: #FFFAFA;
		background-clip: padding-box;
		outline: none;
	.ui-dialog-titlebar {  padding: 20px 20px; position: relative; border-bottom: 1px solid #eaeaea; }
	.ui-dialog-title { float: left;  font-size: 1.2em; }
	.ui-dialog-titlebar-close {
		position: absolute;
		right: 15px; top: 50%;
		margin-top: -16px !important;
		height: 25px !important;
		width: 25px;
		border: 0 none !important;

		box-shadow: none !important;
		padding: 0px !important;
        background-color: #FFFAFA !important;
	.ui-dialog-titlebar-close .ui-icon {
		display: block;
		margin: 10px auto 0 auto;
		width: 13px; height: 13px;
		-webkit-background-size: 13px auto; background-size: 13px auto;
		opacity: .5;
	.ui-button {
		float: right;
		border: 0 none;
		display: inline-block;
		vertical-align: middle;
		cursor: pointer;
		height: 50px;
		border-radius: 2px;
		outline: none;
		color: #fff !important;
		padding: 9px 22px;
		text-decoration: none !important;
		box-shadow: 0 1px 2px 0 rgba(0,0,0,0.14); -webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,0.14);

		background-color: #fb929e;

		-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
	.ui-dialog-titlebar-close:hover .ui-icon { opacity: 1; }
	.ui-icon { overflow: hidden; text-indent: -9999px; }
	.ui-dialog label { color: #575757; }
	.ui-dialog-content { padding: 20px; border: 1px solid #fff; overflow: auto; position: relative; zoom: 1; }
	.loginbox.ui-dialog, .loginbox .ui-dialog-content { overflow: visible !important; }
	.ui-dialog-content h2 { display: inline; font-size: 1em; font-weight: bold }
	.ui-dialog .ui-dialog-buttonpane { padding: 20px; text-align: center; border-top: 1px solid #eaeaea; }
	.ui-dialog .ui-resizable-se { bottom: 3px; height: 14px; right: 3px; width: 14px; }
	.ui-draggable .ui-dialog-titlebar { cursor: move; }
	.ui-state-error { background: #fef1ec 50% 50% repeat-x !important; border: 1px solid #cd0a0a; color: #cd0a0a; }
	.ui-button { margin: 0 3px; }
	.ui-helper-hidden-accessible{display: none;}


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...