mdj1412
commit first
c109682
raw
history blame
5.54 kB
/*
[ CSS κΈ°λ³Έ 문법 ]
AND μ—°μ‚°μž : μ„ νƒμž 사이에 곡백이 μ œκ±°λ˜λŠ” 경우 μ—¬λŸ¬ μ„ νƒμžλ₯Ό λ™μ‹œμ— λ§Œμ‘±ν•˜λŠ” νƒœκ·Έμ˜ μŠ€νƒ€μΌμ„ 적용
OR μ—°μ‚°μž : 두 μ„ νƒμž 쀑 ν•˜λ‚˜λΌλ„ λ§Œμ‘±μ‹œ μ μš©λ˜λŠ” 쑰건 (μ‰Όν‘œλ₯Ό 톡해 두 μ„ νƒμž 쀑 ν•˜λ‚˜λΌλ„ λ§Œμ‘±μ‹œ 적용)
".a .b .c" : a클래슀 λ‚΄λΆ€μ˜ b클래슀 λ‚΄λΆ€μ˜ c클래슀 μš”μ†Œμ—λ§Œ μŠ€νƒ€μΌ 적용
".a.b.c" : 클래슀 속성 내에 a, b, c λͺ¨λ‘ μ„€μ •λœ λͺ¨λ“  μš”μ†Œλ“€μ„ 선택
".a, .b, .c" : μΌμΉ˜ν•˜λŠ” λͺ¨λ“  μš”μŠ€λ“€μ„ 선택
*/
.sec_cal {
width: 360px; /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
margin: 0 auto;
font-family: "NotoSansR";
}
/* ".a .b .c" : a클래슀 λ‚΄λΆ€μ˜ b클래슀 λ‚΄λΆ€μ˜ c클래슀 μš”μ†Œμ—λ§Œ μŠ€νƒ€μΌ 적용 */
.sec_cal .cal_nav {
display: flex;
justify-content: center; /* κ°€λ‘œ 좕을 κΈ°μ€€μœΌλ‘œ μ’Œμš°μ— λŒ€ν•œ μ •λ ¬ */
align-items: center; /* μ„Έλ‘œ 좕을 κΈ°μ€€μœΌλ‘œ μ •λ ¬ μœ„μ•„λž˜μ— λŒ€ν•œ μ •λ ¬ */
font-weight: 700; /* 폰트(font)의 κ°€μ€‘μΉ˜(weight)λ‚˜ κ΅΅κΈ°(boldness)λ₯Ό λͺ…μ‹œ */
font-size: 48px; /* 폰트(font)의 크기λ₯Ό 지정 */
line-height: 78px; /* Sets the height of a line box (쀄간격) */
}
.sec_cal .cal_nav .year-month {
width: 300px; /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
text-align: center;
line-height: 1;
}
.sec_cal .cal_nav .nav {
display: flex;
border: 1px solid #333333;
border-radius: 5px;
}
.sec_cal .cal_nav .go-prev,
.sec_cal .cal_nav .go-next {
display: block;
width: 50px; /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
height: 78px;
font-size: 0;
display: flex;
justify-content: center;
align-items: center;
}
.sec_cal .cal_nav .go-prev::before,
.sec_cal .cal_nav .go-next::before {
content: "";
display: block;
width: 20px; /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
height: 20px;
border: 3px solid #000;
border-width: 3px 3px 0 0;
transition: border 0.1s;
}
.sec_cal .cal_nav .go-prev:hover::before,
.sec_cal .cal_nav .go-next:hover::before {
border-color: #ed2a61;
}
.sec_cal .cal_nav .go-prev::before {
transform: rotate(-135deg);
}
.sec_cal .cal_nav .go-next::before {
transform: rotate(45deg);
}
.sec_cal .cal_wrap {
padding-top: 40px;
position: relative;
margin: 0 auto;
}
.sec_cal .cal_wrap .days {
display: flex;
margin-bottom: 20px; /* μš”μ†Œ ν•˜λ‹¨μ˜ margin ν•˜λ‹¨μ˜ μ˜μ—­μ„ μ„€μ • (μ—¬μœ  곡간 μ„€μ •) */
padding-bottom: 20px; /* μš”μ†Œμ˜ λ°”λ‹₯μ—μ„œ νŒ¨λ”© μ˜μ—­μ˜ 높이λ₯Ό μ„€μ • */
border-bottom: 1px solid #ddd;
}
.sec_cal .cal_wrap::after {
top: 368px;
}
.sec_cal .cal_wrap .day {
display: flex;
align-items: center;
justify-content: center;
width: calc(100% / 7); /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
text-align: left;
color: #999;
font-size: 12px;
text-align: center;
border-radius: 5px;
}
/* <div class="day current today">1</div> */
.current.today {
/* background: rgb(3, 179, 65); */
background: rgb(242 242 242);
}
.sec_cal .cal_wrap .dates {
display: flex;
flex-flow: wrap;
height: 290px;
}
/* Pseduo-Classes ( κ·Έ μ€‘μ—μ„œ Structural pseudo-classes ) */
.sec_cal .cal_wrap .day:nth-child(7n -1) {
color: #3c6ffa;
}
/* Pseduo-Classes ( κ·Έ μ€‘μ—μ„œ Structural pseudo-classes ) */
.sec_cal .cal_wrap .day:nth-child(7n) {
color: #ed2a61;
}
.sec_cal .cal_wrap .day.disable {
color: #ddd;
}
/* Model κ΄€λ ¨ */
/* id : "#" */
#model {
text-align: center;
}
/* id : "#" */
#text-input {
width: calc(100% / 2); /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
height: 78px;
word-break: break-all;
}
.text-output {
width: calc(100% / 2); /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
min-height: 1.2rem;
margin: 1rem;
border: 0.5px solid grey;
padding: 0.5rem 1rem;
}
/* Stocks κ΄€λ ¨ */
/* .sec_cal { */
.stocks_wrap {
width: 580px; /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
margin: 0 auto;
font-family: "NotoSansR";
}
/* .sec_cal .cal_wrap { */
.stocks_wrap {
padding-top: 40px;
position: relative;
margin: 0 auto;
}
/* .sec_cal .cal_wrap .days { */
.stocks_wrap .stocks_columns {
display: flex;
margin-bottom: 20px; /* μš”μ†Œ ν•˜λ‹¨μ˜ margin ν•˜λ‹¨μ˜ μ˜μ—­μ„ μ„€μ • */
padding-bottom: 20px; /* μš”μ†Œμ˜ λ°”λ‹₯μ—μ„œ νŒ¨λ”© μ˜μ—­μ˜ 높이λ₯Ό μ„€μ • */
border-bottom: 1px solid #ddd;
}
/* .sec_cal .cal_wrap .day { */
.stocks_wrap .stocks_columns .column,
.stocks_wrap .stocks .stock {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
text-align: left;
color: #999;
font-size: 12px;
text-align: center;
border-radius: 5px; /* rounds the corners of an element's outer border edge. */
}
.stocks_wrap .stocks_columns .column {
font-size: 17px;
/* width: 70px; */
}
.stocks_wrap .stocks .stock {
font-size: 13px;
/* width: 35px; */
}
.name {
margin-right: 30px;
margin-left: 30px;
}
.sector, .industry{
margin-right: 18px;
margin-left: 48px;
}
.dff, .open, .close {
margin-right: 5px;
margin-left: 5px;
}
.stocks_wrap .stocks .ticker {
color: #04b70d;
text-decoration: underline;
}
.stocks_wrap .stocks .up {
color: #ed2a61;
}
.stocks_wrap .stocks .down {
color: #3c6ffa;
}
/* .sec_cal .cal_wrap .dates { */
.stocks_wrap .stocks {
display: flex;
flex-flow: wrap;
height: 5000px; /* 높이 간격 */
}
/* h1 νƒœκ·Έ λΆ€λΆ„ */
.gohome {
text-decoration: none;
}