@import '/static/styles/base.css';

/*
 * DetailView styles
 */
 html.detail .box-transparent {
    margin: 0 auto;
    padding: 15px;
}
html.detail .box-transparent .category {
    margin: 14px 0 0;
    display: inline-block;
    min-height: 26px;
    line-height: 26px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 3px;
    text-transform: uppercase;
    color: #ededed;
    background-color: #3991dc;
}
html.detail .box-transparent .categoty_a {
	color: #fff;
}
html.detail .box-transparent .category + .edit-post {
	background: #d63535;
    color: #fff;
    padding: 5px;
}
html.detail .box-transparent .title-h2 > a[href] {
    font-size: 34px;
    line-height: 52px;
    text-transform: capitalize;
    margin: 5px 0;
    color: #0050a9;
}
html.detail .box-transparent .title-h2 > a[href]:hover {
    color: #003099;
}

#postDetail {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
	justify-content: flex-start;
}
#postDetail .lnb-view > ul {
	position: sticky;
	left: 0;
	top: 24px;
}
#postDetail .lnb-view li {
    font-size: 13px;
    line-height: 1.6;
}
#postDetail .lnb-view li.active {
    background: #bfd2e2;
    border-radius: 10px;
    margin: 0 -5px 0 -10px;
	padding: 0 10px;
}
#postDetail .lnb-view li.font.font-serif {
    text-shadow: 0 0 2px #fff;
    margin: 0 0 5px;
    color: #003c6b;
    font-size: 14px;
}
#postDetail .lnb-view li + li.font.font-serif {
	margin-top: 26px;
}
#postDetail .lnb-view li > a[href]:hover {
	text-decoration: underline;
	color: #111;
}
#postDetail > .lnb-view {
	flex-basis: 220px;
    width: 220px;
    background: #dfe8ef;
	border-top: 1px solid #efefef;
	border-bottom: 1px solid #efefef;
	padding: 18px 10px 18px 15px;
}
#postDetail > .wrap-div {
    padding: 18px 16px;
    background-color: #fff;
    flex-basis: calc(100% - 340px);
    width: calc(100% - 340px);
    /* flex-basis: calc(100% - 560px);
    width: calc(100% - 560px); */
    margin: 0 10px 0 0;
    border: 1px solid #efefef;
}
#postDetail .header-view {
	display: block;
	padding: 0;
	border-radius: 20px;
	color: #659cff;
	font-size: 15px;
	letter-spacing: 2px;
	margin: 0 0 24px;
}
#postDetail .header-view .topShare {
	display: inline-block;
}
#postDetail .topShare {
	margin: 24px 0 0px;
}
#postDetail .header-view .tools-view {
	float: right;
    margin: 0 0 5px 10px;
}
#postDetail .tag-view {
	display: inline-block;
	margin: 20px 0 5px;
}
#postDetail .tag-view .tag-item {
    color: #828282;
    margin: 0 2px 5px 0;
    text-shadow: 0 0 1px #fff;
    background: #ddf1ff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 14px;
}
#postDetail .tag-view .tag-item:hover {
	background: #e4e8ff;
}
#postDetail .tag-view #postKeywordView {
margin: 0 0 5px;
border-top: 1px solid #e4e4e4;
padding-top: 16px;
}
#postDetail .tag-view #postKeywordView i {
color: #0093ff;
font-size: 13px;
margin: 0 15px 0 0;
font-weight: bold;
font-style: italic;
}
#postDetail .tag-view #postKeywordView i::before {
content: '#';
margin-right: 2px;
}
#postDetail .tag-view #postKeyword {
background: #eef1f7;
color: #167f98;
height: 30px;
line-height: 30px;
width: 280px;
margin-left: -10px;
border-width: 0;
padding: 0 0 0 14px;
border-radius: 3px;
}
#postDetail .header-view .view-count {
    display: inline-block;
    border-right: 1px solid #f1f1f1;
    font-size: 10px;
    letter-spacing: 0;
    padding: 0 18px 0 0;
    color: #8a8a8a;
    text-align: center;
    margin: 0 8px 0 0;
    vertical-align: middle;
}
#postDetail .header-view .num {
    font-size: 20px;
    display: inline-block;
    margin: 0 0 5px;
    color: #000;
    font-weight: 700;
}
#postDetail .editWrap div img[src] {
	max-width: 100%;
	max-height: 800px;
	width: auto;
	height: auto !important;
	display: block;
	margin: 0 auto 10px;
	padding: 5px;
	border-radius: 3px;
	background-color: #f1f1f1;
}
#postDetail .writer-div {
text-align: right;
margin: 0;
display: inline-block;
position: absolute;
right: 5px;
bottom: 2px;
padding: 2px;
border-top: 1px solid #EFEFEF;
}
#postDetail .writer-div .profile-img {
display: inline-block;
vertical-align: middle;
margin: 0 5px 0 0;
}
#postDetail .writer-div .profile-img + span {
position: relative;
font-size: 10px;
color: #cecece;
display: inline-block;
text-align: left;
vertical-align: middle;
line-height: 15px;
}
#postDetail .writer-div .profile-img .profile-bg {
display: block;
width: 32px;
height: 32px;
background-size: cover !important;
border-radius: 3px;
background-color: #f1f1f1;
}
#postDetail .writer-div .name {
color: #333;
left: 0;
display: block;
}
#postDetail .writer-div .name .ip {
color: #999;
font-size: 10px;
font-style: italic;
}
#postDetail .post-action-view {
    padding: 12px 5px 36px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    text-align: center;
}
#postDetail .post-action-view .btn {
	padding: 8px 5px;
}
#postDetail .post-action-view .btn i.glyphicon {
    font-size: 16px;
    display: block;
    margin: 0 auto 5px;
    color: #fff;
    width: 36px;
    background: #7d7d7d;
    height: 36px;
    padding: 11px;
    border-radius: 5px;
}
#postDetail .post-action-view .btn .text-action {
    font-size: 13px;
    color: #585858;
    display: block;
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
}
#postDetail .post-action-view .post-score-no {
    text-align: center;
    font-size: 30px;
    width: 54px;
    height: 54px;
    line-height: 54px;
    color: #111;
    text-shadow: 0 0 2px #fff;
    font-weight: bold;
    border-width: 0;
}
#postDetail .post-action-view .link-login {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
	z-index: 9;
}
#postDetail .post-action-view .text-login {
    font-size: 11px;
    color: #757575;
    margin-top: 2px;
    display: block;
}
#postDetail aside.post-aside .ad-wrap.ad-300-600 {
	position: sticky;
	position: -webkit-sticky;
	top: 18px;
}


.cke_button__codesnippet {
background-color: #ffcf4a !important;
border-radius: 3px;
}
#cke_commentTextarea .cke_top {
display: none;
}
#cke_commentTextarea.cke_focus .cke_top {
display: block;
}
#cke_commentTextarea .cke_contents {
max-height: 120px;
}
#cke_commentTextarea.cke_focus .cke_contents {
max-height: none;
}
#postDetail .aside-div {
padding: 24px 0;
display: inline-block;
vertical-align: top;
width: 318px;
margin-left: 10px;
letter-spacing: 0;
}
#postDetail .aside-div .answer-wrap {
margin: 0 0 24px;
}
#postDetail .aside-div .answer-wrap .title-h4 {
border-left: 5px solid;
color: #0897d8;
padding: 0 0 0 6px;
text-transform: uppercase;
font-size: 14px;
margin: 0 0 5px;
}
#postDetail .aside-div .answer-wrap .answer-ul li {
display: block;
margin: 0 0 3px;
border-bottom: 1px dashed#e8e8e8;
padding: 0 10px;
color: #858585;
max-height: 48px;
line-height: 22px;
text-overflow: ellipsis;
overflow: hidden;
font-size: 11px;
}
#postDetail .aside-div .answer-wrap .answer-ul li a {
display: block;
}
#postDetail .aside-div .answer-wrap .answer-ul li:nth-child(1) {
background: #DDF4FF;
color: #222;
}
#postDetail .aside-div .answer-wrap .answer-ul li:nth-child(2) {
background: #E8F6FD;
color: #555;
}
#postDetail .aside-div .answer-wrap .answer-ul li:nth-child(3) {
background: #F0F7F9;
color: #777;
}
#postDetail .aside-div .answer-wrap .answer-ul li .no {
height: 18px;
width: 18px;
border-right: 1px solid #0897d8;
border-top-right-radius: 50%;
background: #e5f7ff;
border-bottom-right-radius: 50%;
padding-left: 3px;
line-height: 18px;
vertical-align: middle;
position: absolute;
margin: 2px 0 0;
}
#postDetail .aside-div .answer-wrap .answer-ul li .text {
max-width: 282px;
display: inline-block;
vertical-align: middle;
padding: 0 0 0 24px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
#postDetail .aside-div .answer-wrap .answer-ul li .create_date {
}
#postDetail .editWrap {
	width: 100%;
	color: #454545;
	border-top: 1px solid #f1f1f1;
	margin: 0 0 36px;
}
#postDetail .editWrap {
  font-size: 14px;
  line-height: 1.644;
  padding: 26px 5px 32px;
  position: relative;
}
#postDetail .editWrap .post-content {
    margin-bottom: 32px;
    outline: none;
}
#postDetail .editWrap .tag-name .tag-title {
	display: block;
	color: #c13ea4;
	font-weight: 600;
	margin-top: 36px;
	font-size: 15px;
	position: relative;
	padding: 0 0 0 10px;
}
#postDetail .editWrap .tag-name .tag-title:before {
	content: '';
	position: absolute;
	border-left: 4px solid;
	height: 15px;
	margin-top: 7px;
		left: 2px;
}
#postDetail .editWrap .tag-name > a > span {
color: #ffffff;
background: #3e85d4;
font-size: 12px;
padding: 2px 5px;
border-radius: 3px;
}
#postDetail .editWrap img.postImg {
max-width: 98%;
margin: 10px auto;
box-shadow: 2px 2px 4px #ececec;
display: block;
}
#postDetail .editWrap ul {
list-style: inherit;
padding: 12px 0 12px 25px;
margin: 20px 0;
border-top: 1px solid #efefef;
border-bottom: 1px solid #efefef;
color: #000;
}	
#postDetail .editWrap ul li {
list-style: inherit;
padding: 0 0 0 0;
margin: 5px 0;
}
#postDetail .editWrap a[href] {
	color: #0063cc;
}
#postDetail .editWrap .cke_reset {
	display: none !important;
}
#postDetail .editWrap .post-eidt-view textarea {
display: none;
}

#postDetail .editWrap + .ask-question-view {
    max-width: 480px;
    margin: 0 auto 32px;
    border-radius: 5px;
	padding: 12px 10px;
}


/* Prev and Next */
.prev-next-fixed {
	position: absolute;
	z-index: 999;
}
.prev-next-fixed .prevnext-a {
	position: fixed;
	top: 48%;
	left: 10px;
	cursor: pointer;
	letter-spacing: 0;
	z-index: 999;
	white-space: nowrap;
	overflow: hidden;
}
.prev-next-fixed .prevnext-a .glyphicon  {
		font-size: 2.2em;
		font-weight: lighter;
		border: 1px solid;
		border-radius: 5px;
		padding: 8px 2px;
		background: rgba(0, 0, 0, 0.12);
		color: #fff;
		transition: background 0.5s ease-out;
		-o-transition: background 0.5s ease-out;
		-ms-transition: background 0.5s ease-out;
		-moz-transition: background 0.5s ease-out;
		-webkit-transition: background 0.5s ease-out;
}
.prev-next-fixed .prevnext-a:hover .glyphicon {
		background: #898989;
}
.prev-next-fixed .prevnext-a .msg-box {
	display: inline-block;
	width: 0;
	overflow: hidden;
	font-weight: bolder;
	text-shadow: 1px 1px #fff;
}
.prev-next-fixed .prevnext-a:hover .msg-box {
	color: #0069c5;
	font-size: 13px;
	width: auto;
}
.prev-next-fixed .prevnext-a.next {
	position: fixed;
	top: 48%;
	left: unset;
	right: 10px;
}


/* Code styles */
.code [data-st-tag] {
	color: #2f3fbb;
}
.code [data-st-equal] {
	color: #afafaf;
}
.code [data-st-value] {
	color: #ec4287;
}
.code [data-css-sel] {
	color: #ffc557;
}
.code [data-css-attr] {
	color: #00b5a6;
}
.code.js js-key {
    color: #7f1bff;
    font-weight: bold;
}
.code.js js-attr {
	color: #00a9ab;
    font-weight: bold;
}
.code.js js-var {
	color: #0098e2;
    font-weight: bold;
}
.code.js js-var-name {
	color: #ff6000;
    font-weight: bold;
}
.code.js js-method {
	color: #000;
    font-weight: bold;
}
.code.js js-prop {
	color: #d41f71;
    font-weight: bold;
}
.code.js comment {
	color: #a0a0a0;
	font-style: italic;
}
.container #postDetail .code {
    clear: both;
    display: block;
    margin: 12px 0 12px 0;
    width: 100%;
    height: auto;
    line-height: 20px;
    color: #404040;
    background: #fffef7;
    border-radius: 4px;
    padding: 5px 8px 5px 28px;
    border: 2px solid #bdbdbd;
    position: relative;
    font-size: 13px;
    max-width: 1024px;
    word-wrap: break-word;
	word-break: break-all;
}
.container #postDetail .code::before {
	content: '1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99';
	position: absolute;
	top: 0;
	left: 0;
	font-size: 11px;
	color: #a0a0a0;
	background: #656565;
	text-shadow: 1px 1px 1px #3a3a3a;
	width: 20px;
	height: 100%;
	word-wrap: break-word;
	line-height: 20px;
	padding: 5px 3px;
	text-align: center;
	overflow: hidden;
}
.container #postDetail span[data-custom-style="ct01"] {
	text-align: center;
	width: 84%;
	margin: 0 8%;
	display: inline-block;
	font-size: 0.96em;
	background-color: #DEF3FF;
	padding: 8px 8px;
	box-sizing: border-box;
	border-radius: 4px;
	color: #21637D;
	border: 1px solid #A8DCFF;
}
.container #postDetail span[data-custom-style="ct02"] {
	text-align: center;
	width: auto;
	margin: 0 auto;
	display: block;
	font-size: 11px;
	color: #2dcf9b;
	padding: 2px 8px;
	box-sizing: border-box;
	font-weight: bold;
}
.container #postDetail span[data-custom-style="ct03"] {
	font-weight: bold;
}
.container #postDetail span[data-custom-style="ct04"] {
	color: #c70000;
	font-weight: bold;
}
.container #postDetail span[data-custom-style="ct05"] {
	color: #017DC7;
	font-weight: bold;
}
.container #postDetail span[data-custom-style="ct06"] {
	color: #0E36A7;
	font-weight: 600;
}
.container #postDetail span[data-custom-style="ct07"] {
	color: #09A200;
}
.container #postDetail span[data-custom-style="ct08"] {
	font-size: 1.12em;
	font-weight: 600;
	display: block;
	margin: 0 0 2px;
	color: #3569a5;
}
.container #postDetail [data-custom-style="ct09"] {
	color: #000;
	font-size: 1.44em;
	display: block;
	margin: 15px 0;
	background: #f5f5f5;
	padding: 8px 5px;
	border-left: 5px solid #e0e0e0;
}
.container #postDetail [data-custom-style="ct09"] + br {
	display: none;
}
.container #postDetail span[data-custom-style="ct10"] {
	color: #FFFFFF;
	border: 2px outset #AFAFAF;
	padding: 2px 5px;
	border-radius: 4px;
	background: #828282;
	text-shadow: 1px 1px #585858;
	height: 22px;
	display: inline-block;
	line-height: 16px;
	font-size: 12px;
	vertical-align: middle;
	box-sizing: border-box;
}
.container #postDetail span[data-custom-style="ct11"] {
	font-size: 1.6em;
	display: block;
	margin: 4px 0 8px;
	text-align: center;
	font-weight: 600;
	color: #585858;
}
.container #postDetail span[data-custom-style="ct11"]:before {
	content: '“';
	font-size: 2em;
	color: #999;
	position:relative;
	display: block;
	margin: 0;
	height: 52px;
	line-height: 1.5;
}
.container #postDetail span[data-custom-style="ct11"]:after {
	content: '”';
	font-size: 2em;
	color: #999;
	position:relative;
	display: block;
	margin: 0;
	line-height: 1.5;
}


/*
 * Device resolution 768
 */
@media only screen and (max-width: 1024px) and (min-width: 768px) {
	#postDetail > .lnb-view {
		flex-basis: 0;
		width: 0;
		padding: 0;
	}
	#postDetail > .wrap-div {
		flex-basis: calc(100% - 340px);
		width: calc(100% - 340px);
	}
}


/*
 * Device resolution 768
 */
@media only screen and (max-width: 767px) {
	#postDetail {
		width: 100%;
		display: block;
	}
	#postDetail > .lnb-view {
		display: none;
	}
	#postDetail > .wrap-div {
		margin: 26px auto;
		width: 100%;
	}
	#postDetail .header-view .tools-view {
		display: none;
	}
	#postDetail > .wrap-div + aside.post-aside {
		padding: 0;
	}
	#postDetail .title-h2 {
		font-size: 26px;
		line-height: 1.4;
		margin: 0 0 12px;
	}
	#postDetail .mod-date {
		font-size: 11px;
		margin: 0 0 5px;
		display: block;
	}
	#postDetail .text-div {
		padding-left: 5px;
		padding-right: 5px;
	}
}
