"틀:대문/임시/style.css"의 두 판 사이의 차이

잔글 (판 44개를 가져왔습니다: 위키 백과에서 가져옴)
(배경 이미지 제거)
 
14번째 줄: 14번째 줄:
 
width: 100%;
 
width: 100%;
 
box-sizing: border-box;
 
box-sizing: border-box;
background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/e3/Wikipedia_logo_letters_banner.svg");
 
 
background-position: right;
 
background-position: right;
 
background-repeat: no-repeat;
 
background-repeat: no-repeat;

2020년 12월 16일 (수) 20:47 기준 최신판

.main-box {
	background: #fff;
	border: solid #c8ccd1;
	border-radius: 2px;
	border-width: 1px;
	box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 );
        padding: 0 0 0.5rem 0;
}

.main-top {
	padding: 0 1.5rem 0 0;
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	background-position: right;
	background-repeat: no-repeat;
}

.main-top-left {
	flex: 3;
	background-image: linear-gradient(to right, white 0%, white 33%, transparent 100%);
	padding: 1rem 0 1rem 1.5rem;
}

.main-top-left-subtitle {
	font-size: 1rem;
	margin-top: 0.1em;
	margin-bottom: 1em;
}

.main-top-right {
	flex: 2;
}

.main-top-right-text {
	font-size: 1rem;
	margin-top: 1em;
	margin-bottom: 0;
	text-align:right;
}

.main-pane {
	display: flex;
}

.main-pane-left {
	margin-right: 20px;
}
@media (max-width: 981px) {
	.main-pane {
		display: block;
	}
	.main-pane-left {
		margin-right: 0;
	}
	.main-top {
		flex-direction: column;
	}
	.main-top-left {
		align-self: flex-start;
		background-image: linear-gradient(to right, white 0%, white 66%, transparent 100%);
	}
	.main-top-left-subtitle {
		font-size: 0.8em;
		margin-left: 0.2em;
		margin-top: 0;
	}
	.main-top-left>p:first-child {
		margin-bottom: 0;
	}
	.main-top-right {
		align-self: flex-end;
		padding-left: 1rem;
	}
	.main-top-right-text {
		font-size: 0.9rem;
		margin-top: 0;
		margin-bottom: 1rem;
	}
}