Fix rhymix.less to use guarded mixins

This commit is contained in:
Kijin Sung 2017-12-01 18:12:06 +09:00
parent 487509c1e5
commit 4d180edbf1

View file

@ -19,16 +19,18 @@ a img {
} }
/* Content Default Styles */ /* Content Default Styles */
.word_break(@wb) when (@wb = normal), (@wb = keep-all), (@wb = break-all) {
word-break: @wb;
word-wrap: break-word;
}
.word_break(@wb) when (@wb = none) {
white-space: nowrap;
}
.xe_content { .xe_content {
font-family: @default_font_family; font-family: @default_font_family;
font-size: @default_font_size; font-size: @default_font_size;
line-height: @default_line_height; line-height: @default_line_height;
@if @default_word_break == 'none' { .word_break(@default_word_break);
white-space: nowrap;
} @else {
word-break: @default_word_break;
word-wrap: break-word;
}
p { p {
margin: 0 0 @default_paragraph_spacing 0; margin: 0 0 @default_paragraph_spacing 0;
} }
@ -37,7 +39,7 @@ a img {
height: auto; height: auto;
} }
} }
@media \0screen { @media screen {
img { img {
max-width: none; max-width: none;
} }
@ -151,7 +153,7 @@ body > .message {
padding: 20px 0 0 0; padding: 20px 0 0 0;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
text-align: center; text-align: center;
font: bold 16px/60px "Helvetica Neue", Helvetica, Arial, 돋움, Dotum, sans-serif; font: bold 16px/60px "Helvetica Neue", Helvetica, Arial, Dotum, sans-serif;
color: #fff; color: #fff;
opacity: .8; opacity: .8;
filter: alpha(opacity=80); filter: alpha(opacity=80);