qcast-front/src/styles/_reset.scss
2024-09-11 15:01:43 +09:00

482 lines
8.2 KiB
SCSS

* {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
text-size-adjust: none;
box-sizing: content-box
}
*, ::after, ::before {
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
font-size: 16px;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
font-family: 'Noto Sans JP', sans-serif;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1.4;
}
body:first-of-type caption {
display: none;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: separate;
border-spacing: 0;
border: 0 none;
}
caption, th, td {
text-align: left;
font-weight: normal;
border: 0;
}
a {
cursor: pointer;
color: #000;
}
a, a:hover, a:active {
text-decoration: none;
-webkit-tap-highlight-color: transparent;
}
/*form_style*/
input, select, textarea, button, a, label {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
button, input[type=text], input[type=button] {
-webkit-appearance: none;
-webkit-border-radius: 0;
-webkit-appearance: none;
appearance: none;
border-radius: 0
}
input[type=checkbox], input[type=radio] {
box-sizing: border-box;
padding: 0;
}
input, select, button {
border: 0 none;
outline: none;
margin: 0;
}
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select::-ms-expand {
display: none;
}
::-webkit-input-placeholder {
line-height: 1;
font-weight: 300;
font-size: 0.938rem;
letter-spacing: -0.6px;
color: #8b8b8b;
}
.log-box ::-webkit-input-placeholder {
color: #8b8b8b;
}
button {
background: transparent;
font-family: 'Noto Sans JP', sans-serif;
border: none;
padding: 0;
margin: 0;
line-height: 1.4;
color: inherit;
outline: none;
cursor: pointer;
}
// button
.btn-frame {
display: inline-block;
padding: 0 9px;
height: 34px;
line-height: 34px;
border-radius: 2px;
color: #fff;
font-size: 12px;
font-weight: 400;
border: 1px solid #000;
text-align: center;
font-family: 'Pretendard', sans-serif;
transition: all .17s ease-in-out;
cursor: pointer;
&.block {
width: 100%;
}
&.small {
font-family: 'Noto Sans JP', sans-serif;
height: 30px;
line-height: 30px;
font-size: 13px;
}
&.deepgray {
background-color: #2C2C2C;
border: 1px solid #484848;
}
&.gray {
background-color: #3C3C3C;
border: 1px solid #545454;
}
&.dark {
background-color: #1C1C1C;
border: 1px solid #484848;
}
&.modal {
background-color: #272727;
border: 1px solid #484848;
color: #aaa;
&:hover {
background-color: #1083E3;
border: 1px solid #1083E3;
color: #fff;
font-weight: 500;
}
}
&:hover,
&.act {
background-color: #1083E3;
border: 1px solid #1083E3;
color: #fff;
font-weight: 500;
}
&.block {
display: block;
width: 100%;
}
&.ico-flx {
display: flex;
align-items: center;
.ico {
margin-right: 10px;
}
&:hover,
&.act {
font-weight: 400;
}
}
}
// select
.sort-select {
position: relative;
display: inline-block;
min-width: 100px;
height: 30px;
line-height: 30px;
padding: 0 10px;
background-color: #373737;
border: 1px solid #3F3F3F;
border-radius: 2px;
border-top-left-radius: 2px;
color: #fff;
cursor: pointer;
p {
font-size: 13px;
color: #fff;
height: 100%;
}
.select-item-wrap {
position: absolute;
top: 100%;
left: -1px;
clip-path: inset(0 0 100% 0);
width: calc(100% + 2px);
padding: 8px 0;
background-color: #373737;
border: 1px solid #3F3F3F;
border-radius: 2px;
transition: all 0.17s ease-in-out;
visibility: hidden;
.select-item {
display: flex;
align-items: center;
padding: 8px 20px;
line-height: 1.4;
transition: all .17s ease-in-out;
button {
font-size: 12px;
color: #fff;
line-height: 1.4;
}
&:hover {
background-color: #2C2C2C;
}
}
}
&::after {
content: '';
position: absolute;
top: 50%;
right: 7px;
transform: translateY(-50%);
width: 10px;
height: 6px;
background: url(/static/images/common/select-arr.svg) no-repeat center;
background-size: cover;
transition: all .17s ease-in-out;
}
&.active {
.select-item-wrap {
clip-path: inset(0 0 0 0);
visibility: visible;
}
&:after {
transform: translateY(-50%) rotate(-180deg);
}
}
}
// input
.form-input {
label {
display: block;
color: #aaa;
font-size: 12px;
font-weight: 500;
margin-bottom: 10px;
}
}
input[type=text] {
&.input-origin {
display: inline-block;
height: 30px;
line-height: 30px;
border-radius: 2px;
background-color: #313131;
color: #fff;
font-size: 12px;
font-weight: 500;
font-family: 'Pretendard', sans-serif;
padding: 0 10px;
letter-spacing: 0px;
&::placeholder {
font-size: 12px;
letter-spacing: 0px;
}
&.block {
width: 100%;
}
}
}
// date-picker
.single-date {
input {
border-radius: 2px;
color: #fff;
font-size: 12px;
font-family: 'Pretendard', sans-serif;
background-color: #313131;
}
}
.range-date {
input {
border-radius: 2px;
color: #fff;
font-size: 12px;
font-family: 'Pretendard', sans-serif;
background-color: #313131;
}
.react-datepicker__input-container {
button {
&:after {
display: none;
}
}
}
}
// check-btn
.check-btn {
display: flex;
align-items: center;
height: 30px;
background-color: #3A3A3A;
border-radius: 3px;
transition: all .17s ease-in-out;
.check-area {
flex: none;
width: 30px;
height: 100%;
border-right: 1px solid #272727;
background: url(../../public/static/images/canvas/check-grey.svg) no-repeat center;
background-size: 11px 9px;
}
.title-area {
padding: 0 10px;
font-size: 12px;
color: #898989;
font-weight: 400;
}
&.block {
width: 100%;
}
&:hover,
&.act {
background-color: #fff;
.check-area {
border-right: 1px solid #101010;
background: url(../../public/static/images/canvas/check-black.svg) no-repeat center;
}
.title-area {
color: #101010;
font-weight: 600;
}
}
}
// arr-btn
.arr-btn {
display: block;
height: 30px;
border-radius: 3px;
background-color: #3A3A3A;
padding: 0 11px;
text-align: left;
transition: all .17s ease-in-out;
span {
position: relative;
font-size: 12px;
color: #898989;
font-weight: 400;
padding-right: 15px;
&:after {
content: '';
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
width: 5px;
height: 8px;
background: url(../../public/static/images/canvas/arr_btn_ico.svg) no-repeat center;
}
}
&:hover,
&.act {
background-color: #fff;
span {
color: #101010;
font-weight: 500;
&:after {
background: url(../../public/static/images/canvas/arr_btn_ico_black.svg) no-repeat center;
}
}
}
&.dark {
text-align: center;
background-color: #272727;
border: 1px solid #484848;
span {
color: #Fff;
&:after {
background: url(../../public/static/images/canvas/arr_btn_ico_white.svg) no-repeat center;
}
}
&:hover,
&.act {
background-color: #1083E3;
border: 1px solid #1083E3;
}
}
}