다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리

변경전의 xe.less 파일도 rhymix.less와 함께 load 하여 호환정 유지

CSS 충돌 예)
bootstrap의 .btn
사용 예)
bootstrap 사용시엔 {Context::unloadBasicFiles('xe')}으로 unload 시키면 문제없음
This commit is contained in:
conory 2018-08-03 19:45:30 +09:00
parent 30e0a5c583
commit b1cb1f3f34
251 changed files with 938 additions and 776 deletions

View file

@ -1,22 +1,9 @@
@charset "UTF-8";
/* Element Reset */
body, table, input, textarea, select, button {
font-family: sans-serif;
font-size: 12px;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
display: block;
}
body {
position: relative;
}
a img {
border: 0;
}
[hidden] {
display: none;
}
/* Content Default Styles */
.word_break(@wb) when (@wb = normal), (@wb = keep-all), (@wb = break-all) {
@ -26,7 +13,7 @@ a img {
.word_break(@wb) when (@wb = none) {
white-space: nowrap;
}
.xe_content {
.rhymix_content, .xe_content {
font-family: @default_font_family;
font-size: @default_font_size;
line-height: @default_line_height;
@ -39,14 +26,9 @@ a img {
height: auto;
}
}
@media screen {
img {
max-width: none;
}
}
/* Clearfix */
.xe-clearfix {
.rhymix_clearfix {
&:before, &:after {
content: " ";
display: table;
@ -56,12 +38,12 @@ a img {
}
zoom: 1;
}
.xe-widget-wrapper {
.rhymix_widget {
overflow: hidden;
}
/* Popup Menu Area */
#popup_menu_area {
/* Popup Menu */
#rhymix_popup_menu {
position: absolute;
z-index: 9999;
margin: 10px 0;
@ -94,7 +76,7 @@ a img {
}
}
@media screen and (max-width: 400px) {
#popup_menu_area {
#rhymix_popup_menu {
min-width:120px;
max-width:95%;
font-size: 13px;
@ -108,7 +90,7 @@ a img {
}
/* Editable Preview */
.editable_preview {
.rhymix_editable_preview {
width: 100%;
min-height: 240px;
max-height: 440px;
@ -124,7 +106,7 @@ a img {
margin-bottom: @default_paragraph_spacing !important;
}
}
.editable_preview_iframe {
.rhymix_editable_preview_iframe {
width: 100%;
height: 440px;
box-sizing: border-box;
@ -134,7 +116,7 @@ a img {
}
/* Message */
.message {
.rhymix_message {
position: relative;
margin: 1em 0;
padding: 0 1em;
@ -162,13 +144,13 @@ a img {
color: #468847;
background-color: #DFF0D8;
}
}
body > .message {
margin: 1em;
body > & {
margin: 1em;
}
}
/* Waiting for server response */
.wfsr {
#rhymix_waiting {
z-index: 100;
display: none;
position: fixed;
@ -188,19 +170,7 @@ body > .message {
}
/* Button */
.btnArea {
clear: both;
margin: 10px 0;
padding: 0;
text-align: right;
zoom: 1;
&:after {
clear: both;
display: block;
content: "";
}
}
.btn {
.rhymix_button {
display: inline-block;
*display: inline;
margin: 0;
@ -219,7 +189,7 @@ body > .message {
line-height: 24px !important;
font-family: inherit;
font-size: 12px;
color: #333333;
color: #333;
*zoom: 1;
cursor: pointer;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
@ -233,11 +203,44 @@ body > .message {
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
&:hover, &:active, &[disabled] {
&:hover, &:focus, &:active, &.active, &.disabled &[disabled] {
color: #333;
background-color: #e6e6e6;
*background-color: #d9d9d9;
}
&:hover, &:focus {
background-position:0 -15px;
-webkit-transition:background-position 0.1s linear;
-moz-transition:background-position 0.1s linear;
-o-transition:background-position 0.1s linear;
transition:background-position 0.1s linear;
}
&:focus {
outline:thin dotted #333;
outline:5px auto -webkit-focus-ring-color;
outline-offset:-2px;
}
&:active, &.active {
background-color:#ccc;
background-image:none;
outline:0;
box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}
&.disabled &[disabled] {
cursor:default;
background-image:none;
opacity:0.65;filter:alpha(opacity=65);
box-shadow:none;
}
button&, input& {
*padding-top:3px;
*padding-bottom:3px;
height: 26px !important;
}
button&::-moz-focus-inner, input&::-moz-focus-inner {
padding:0;
border:0;
}
>a, >button, >input, >span {
display: inline-block;
*zoom: 1;
@ -256,11 +259,46 @@ body > .message {
cursor: pointer;
background: none;
}
&.inverse {
color:#fff;
border-color:#222222 #222222 #000000;
text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);
background-color:#363636;
*background-color:#222222;
background-image:-moz-linear-gradient(top, #444444, #222222);
background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
background-image:-webkit-linear-gradient(top, #444444, #222222);
background-image:-o-linear-gradient(top, #444444, #222222);
background-image:linear-gradient(to bottom, #444444, #222222);
background-repeat:repeat-x;
border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
&:hover, &:focus, &:active, &.active, &.disabled &[disabled] {
background-color:#222222;
*background-color:#151515;
}
&:active, &.active {
background-color:#080808
}
&.active {
color:rgba(255, 255, 255, 0.75);
}
}
}
input.btn, button.btn {
height: 26px !important;
.rhymix_button_wrapper {
clear: both;
margin: 10px 0;
padding: 0;
text-align: right;
zoom: 1;
&:after {
clear: both;
display: block;
content: "";
}
}
.btn-group {
.rhymix_button_group {
position: relative;
display: inline-block;
*display: inline;
@ -272,15 +310,15 @@ input.btn, button.btn {
&:first-child {
*margin-left: 0;
}
&+.btn-group {
&+.rhymix_button_group {
margin-left: 5px;
}
>.btn {
>.rhymix_button {
position: relative;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
&+.btn {
&+.rhymix_button {
margin-left: -1px;
}
&:first-child {