mdj1412
complete
4a5c163
raw
history blame contribute delete
No virus
11.6 kB
/*
[ CSS κΈ°λ³Έ 문법 ]
AND μ—°μ‚°μž : μ„ νƒμž 사이에 곡백이 μ œκ±°λ˜λŠ” 경우 μ—¬λŸ¬ μ„ νƒμžλ₯Ό λ™μ‹œμ— λ§Œμ‘±ν•˜λŠ” νƒœκ·Έμ˜ μŠ€νƒ€μΌμ„ 적용
OR μ—°μ‚°μž : 두 μ„ νƒμž 쀑 ν•˜λ‚˜λΌλ„ λ§Œμ‘±μ‹œ μ μš©λ˜λŠ” 쑰건 (μ‰Όν‘œλ₯Ό 톡해 두 μ„ νƒμž 쀑 ν•˜λ‚˜λΌλ„ λ§Œμ‘±μ‹œ 적용)
".a .b .c" : a클래슀 λ‚΄λΆ€μ˜ b클래슀 λ‚΄λΆ€μ˜ c클래슀 μš”μ†Œμ—λ§Œ μŠ€νƒ€μΌ 적용
".a.b.c" : 클래슀 속성 내에 a, b, c λͺ¨λ‘ μ„€μ •λœ λͺ¨λ“  μš”μ†Œλ“€μ„ 선택
".a, .b, .c" : μΌμΉ˜ν•˜λŠ” λͺ¨λ“  μš”μŠ€λ“€μ„ 선택
*/
/* Stocks κ΄€λ ¨ */
/* .sec_cal { */
#nasdaq-table-container .stocks_wrap {
width: 580px; /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
margin: 0 auto;
font-family: "NotoSansR";
}
/* .sec_cal .cal_wrap { */
#nasdaq-table-container .stocks_wrap {
padding-top: 40px;
position: relative;
margin: 0 auto;
}
/* .sec_cal .cal_wrap .days { */
#nasdaq-table-container .stocks_wrap .stocks_columns {
display: flex;
margin-bottom: 20px; /* μš”μ†Œ ν•˜λ‹¨μ˜ margin ν•˜λ‹¨μ˜ μ˜μ—­μ„ μ„€μ • */
padding-bottom: 20px; /* μš”μ†Œμ˜ λ°”λ‹₯μ—μ„œ νŒ¨λ”© μ˜μ—­μ˜ 높이λ₯Ό μ„€μ • */
border-bottom: 1px solid #ddd;
}
/* .sec_cal .cal_wrap .day { */
#nasdaq-table-container .stocks_wrap .stocks_columns .column,
#nasdaq-table-container .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. */
}
#nasdaq-table-container .stocks_wrap .stocks_columns .column {
font-size: 17px;
/* width: 70px; */
}
#nasdaq-table-container .stocks_wrap .stocks .stock {
font-size: 13px;
/* width: 35px; */
}
#nasdaq-table-container .name {
margin-right: 30px;
margin-left: 30px;
}
#nasdaq-table-container .sector, .industry{
margin-right: 18px;
margin-left: 48px;
}
#nasdaq-table-container .dff, .open, .close {
margin-right: 5px;
margin-left: 5px;
}
#nasdaq-table-container .stocks_wrap .stocks .ticker {
color: #04b70d;
text-decoration: underline;
}
#nasdaq-table-container .stocks_wrap .stocks .up {
color: #ed2a61;
}
#nasdaq-table-container .stocks_wrap .stocks .down {
color: #3c6ffa;
}
/* .sec_cal .cal_wrap .dates { */
#nasdaq-table-container .stocks_wrap .stocks {
display: flex;
flex-flow: wrap;
height: 5000px; /* 높이 간격 */
}
/* h1 νƒœκ·Έ λΆ€λΆ„ */
#nasdaq-table-container .gohome {
text-decoration: none;
}
/*
μœ„ : nasdaq-table-container κ΄€λ ¨ CSS
μ•„λž˜ : chart-container κ΄€λ ¨ CSS
*/
/* id : "#" */
#chart-container .myChart-container {
/* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„λ₯Ό 지정 */
width: 60vw;
/* μ†μ„±μ˜ μš”μ†Œμ˜ 높이λ₯Ό 지정 */
height: 30vh;
/*
[ margin νƒœκ·Έ ]
margin-top (상단 μ—¬λ°±)
margin-right (였λ₯Έμͺ½ μ—¬λ°±)
margin-bottom (μ•„λž˜ μ—¬λ°±)
margin-left (μ™Όμͺ½ μ—¬λ°±)
지정값은 px, cm, %둜 지정할 수 μžˆλ‹€.
μŒμˆ˜κ°’λ„ 지정 κ°€λŠ₯(ex. -10px)
* 4λ©΄ ν•œκΊΌλ²ˆμ— margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 7px 3px 0px;
(μœ„, 였λ₯Έμͺ½, μ•„λž˜, μ™Όμͺ½)
* 4면이 λͺ¨λ‘ 같을 λ•Œ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px;
* μœ„, 였λ₯Έμͺ½&μ™Όμͺ½, μ•„λž˜ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px 0px;
* μœ„&μ•„λž˜, 였λ₯Έμͺ½&μ™Όμͺ½ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px;
* margin μžλ™ μ§€μ •ν•˜κΈ°
ex) margin: auto 0;
(μœ„μ•„λž˜ 값이 μžλ™, μ’Œμš°κ°€ 0px)
ex) margin-left: auto;
*/
margin: 40px auto;
padding-bottom: 13%;
}
#chart-container .table {
/*
[ align-items νƒœκ·Έ ]
flex-box μš”μ†Œμ˜ 수직 λ°©ν–₯ μ •λ ¬ 방식을 μ„€μ •
ex. flex-start, flex-end, center
*/
align-items: center;
/*
[ justify-content νƒœκ·Έ ]
flex-box μš”μ†Œμ˜ μˆ˜ν‰ λ°©ν–₯ μ •λ ¬ 방식을 μ„€μ •
ex. flex-start, flex-end, center
*/
justify-content: center;
/*
[ margin νƒœκ·Έ ]
margin-top (상단 μ—¬λ°±)
margin-right (였λ₯Έμͺ½ μ—¬λ°±)
margin-bottom (μ•„λž˜ μ—¬λ°±)
margin-left (μ™Όμͺ½ μ—¬λ°±)
지정값은 px, cm, %둜 지정할 수 μžˆλ‹€.
μŒμˆ˜κ°’λ„ 지정 κ°€λŠ₯(ex. -10px)
* 4λ©΄ ν•œκΊΌλ²ˆμ— margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 7px 3px 0px;
(μœ„, 였λ₯Έμͺ½, μ•„λž˜, μ™Όμͺ½)
* 4면이 λͺ¨λ‘ 같을 λ•Œ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px;
* μœ„, 였λ₯Έμͺ½&μ™Όμͺ½, μ•„λž˜ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px 0px;
* μœ„&μ•„λž˜, 였λ₯Έμͺ½&μ™Όμͺ½ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px;
* margin μžλ™ μ§€μ •ν•˜κΈ°
ex) margin: auto 0;
(μœ„μ•„λž˜ 값이 μžλ™, μ’Œμš°κ°€ 0px)
ex) margin-left: auto;
*/
margin: 20px auto;
/*
[ text-align νƒœκ·Έ ]
ν…μŠ€νŠΈμ˜ μ •λ ¬ λ°©ν–₯을 μ„€μ •
left: μ™Όμͺ½ μ •λ ¬
right: 였λ₯Έμͺ½ μ •λ ¬
center: 쀑앙 μ •λ ¬
justify: μ–‘μͺ½ μ •λ ¬ (μžλ™ μ€„λ°”κΏˆμ‹œ 였λ₯Έμͺ½ 경계선 λΆ€λΆ„ 정리)
*/
text-align: center;
}
#chart-container .table .title-width {
width: 10px;
text-align: center;
}
#chart-container .table .table-title {
font-size: 50px;
}
/* h1, h2 νƒœκ·Έ λΆ€λΆ„ */
#chart-container .gohome, .goticker {
text-decoration: none;
}
#chart-container .table .news-table .news.diff.up {
color: #ed2a61;
}
#chart-container .table .news-table .news.diff.down {
color: #3c6ffa;
}
/*
μœ„ : chart-container κ΄€λ ¨ CSS
μ•„λž˜ : news-container κ΄€λ ¨ CSS
*/
/* ner κ΄€λ ¨ */
#news-container .ner-box {
width: calc(92%); /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„λ₯Ό 지정 */
height: 500px; /* μ†μ„±μ˜ μš”μ†Œμ˜ 높이λ₯Ό 지정 */
/*
[ align-items νƒœκ·Έ ]
flex-box μš”μ†Œμ˜ 수직 λ°©ν–₯ μ •λ ¬ 방식을 μ„€μ •
ex. flex-start, flex-end, center
*/
align-items: center;
/*
[ justify-content νƒœκ·Έ ]
flex-box μš”μ†Œμ˜ μˆ˜ν‰ λ°©ν–₯ μ •λ ¬ 방식을 μ„€μ •
ex. flex-start, flex-end, center
*/
justify-content: center;
/*
[ text-align νƒœκ·Έ ]
ν…μŠ€νŠΈμ˜ μ •λ ¬ λ°©ν–₯을 μ„€μ •
left: μ™Όμͺ½ μ •λ ¬
right: 였λ₯Έμͺ½ μ •λ ¬
center: 쀑앙 μ •λ ¬
justify: μ–‘μͺ½ μ •λ ¬ (μžλ™ μ€„λ°”κΏˆμ‹œ 였λ₯Έμͺ½ 경계선 λΆ€λΆ„ 정리)
*/
text-align: center;
/*
[ margin νƒœκ·Έ ]
margin-top (상단 μ—¬λ°±)
margin-right (였λ₯Έμͺ½ μ—¬λ°±)
margin-bottom (μ•„λž˜ μ—¬λ°±)
margin-left (μ™Όμͺ½ μ—¬λ°±)
지정값은 px, cm, %둜 지정할 수 μžˆλ‹€.
μŒμˆ˜κ°’λ„ 지정 κ°€λŠ₯(ex. -10px)
* 4λ©΄ ν•œκΊΌλ²ˆμ— margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 7px 3px 0px;
(μœ„, 였λ₯Έμͺ½, μ•„λž˜, μ™Όμͺ½)
* 4면이 λͺ¨λ‘ 같을 λ•Œ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px;
* μœ„, 였λ₯Έμͺ½&μ™Όμͺ½, μ•„λž˜ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px 0px;
* μœ„&μ•„λž˜, 였λ₯Έμͺ½&μ™Όμͺ½ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px;
* margin μžλ™ μ§€μ •ν•˜κΈ°
ex) margin: auto 0;
(μœ„μ•„λž˜ 값이 μžλ™, μ’Œμš°κ°€ 0px)
ex) margin-left: auto;
*/
margin: 1rem;
min-height: 1.2rem;
border: 0.5px solid grey;
padding: 0.5rem 1rem;
}
/* NER label_ */
#news-container .entities .entity_person {
background-color: #aa9cfc;
}
#news-container .entities .entity_org {
background-color: #7aecec;
}
#news-container .entities .entity_fac {
background-color: #9cc9cc;
}
#news-container .entities .entity_gpe {
background-color: #feca74;
}
#news-container .entities .entity_product {
background-color: #bfeeb7;
}
#news-container .entities .none {
background-color: transparent;
}
/* 마우슀 μ˜¬λ Έμ„ λ•Œ, 보이게 ν•˜λŠ” 것 */
#news-container .entities .show-label {
display: none;
}
#news-container .entities .entity_person:hover .show-label,
#news-container .entities .entity_org:hover .show-label,
#news-container .entities .entity_fac:hover .show-label,
#news-container .entities .entity_gpe:hover .show-label,
#news-container .entities .entity_product:hover .show-label {
display: block;
}
/* Model κ΄€λ ¨ */
/* id : "#" */
#news-container #model {
/*
[ text-align νƒœκ·Έ ]
ν…μŠ€νŠΈμ˜ μ •λ ¬ λ°©ν–₯을 μ„€μ •
left: μ™Όμͺ½ μ •λ ¬
right: 였λ₯Έμͺ½ μ •λ ¬
center: 쀑앙 μ •λ ¬
justify: μ–‘μͺ½ μ •λ ¬ (μžλ™ μ€„λ°”κΏˆμ‹œ 였λ₯Έμͺ½ 경계선 λΆ€λΆ„ 정리)
*/
text-align: center;
}
/* id : "#" */
#news-container #text-input {
width: calc(100% / 2); /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
height: 78px; /* μ†μ„±μ˜ μš”μ†Œμ˜ 높이λ₯Ό 지정 */
word-break: break-all;
}
#news-container .text-output {
width: calc(100% * (2/3)); /* μ†μ„±μ˜ μš”μ†Œ λ„ˆλΉ„ */
min-height: 10rem;
/*
[ margin νƒœκ·Έ ]
margin-top (상단 μ—¬λ°±)
margin-right (였λ₯Έμͺ½ μ—¬λ°±)
margin-bottom (μ•„λž˜ μ—¬λ°±)
margin-left (μ™Όμͺ½ μ—¬λ°±)
지정값은 px, cm, %둜 지정할 수 μžˆλ‹€.
μŒμˆ˜κ°’λ„ 지정 κ°€λŠ₯(ex. -10px)
* 4λ©΄ ν•œκΊΌλ²ˆμ— margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 7px 3px 0px;
(μœ„, 였λ₯Έμͺ½, μ•„λž˜, μ™Όμͺ½)
* 4면이 λͺ¨λ‘ 같을 λ•Œ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px;
* μœ„, 였λ₯Έμͺ½&μ™Όμͺ½, μ•„λž˜ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px 0px;
* μœ„&μ•„λž˜, 였λ₯Έμͺ½&μ™Όμͺ½ margin μ§€μ •ν•˜κΈ°
ex) margin: 5px 10px;
* margin μžλ™ μ§€μ •ν•˜κΈ°
ex) margin: auto 0;
(μœ„μ•„λž˜ 값이 μžλ™, μ’Œμš°κ°€ 0px)
ex) margin-left: auto;
*/
margin: 20px auto;
/*
[ border νƒœκ·Έ ]
ν•΄λ‹Ή νƒœκ·Έμ˜ ν…Œλ‘λ¦¬λ₯Ό μ„€μ •
width - style - color
border-width - border-style - border-color
border-width : ν…Œλ‘λ¦¬μ˜ λ‘κ»˜λ‘œ, 주둜 px λ‹¨μœ„λ₯Ό μ‚¬μš©
border-style : ν…Œλ‘λ¦¬μ˜ μŠ€νƒ€μΌλ‘œ μ‹€μ„ , 점선, 이쀑선 λ“±μ˜ μ˜΅μ…˜μ΄ 쑴재
border-color : ν…Œλ‘λ¦¬μ˜ μƒ‰μƒμœΌλ‘œ, 값은 color μ†μ„±μ˜ 포맷을 μ‚¬μš©
*/
border: 0.5px solid grey;
/*
[ padding νƒœκ·Έ ]
지정값은 px, cm, %둜 지정할 수 μžˆλ‹€.
margin은 μŒμˆ˜κ°’μ΄ 지정 κ°€λŠ₯ν•˜μ§€λ§Œ padding은 μŒμˆ˜κ°’ 지정이 μ•ˆλœλ‹€.
padding νƒœκ·Έμ™€ λΉ„μŠ·ν•œ νƒœκ·Έ
: padding-top, padding-right, padding-bottom, padding-left
* 4λ©΄ ν•œκΊΌλ²ˆμ— padding μ§€μ •ν•˜κΈ°
ex) padding: 5px, 7px, 3px, 0px;
(μœ„, 였λ₯Έμͺ½, μ•„λž˜, μ™Όμͺ½)
* 4λ©΄ λͺ¨λ‘ 같을 λ•Œ padding μ§€μ •ν•˜κΈ°
ex) padding: 5px;
* μœ„, 였λ₯Έμͺ½&μ™Όμͺ½, μ•„λž˜ padding μ§€μ •ν•˜κΈ°
ex) padding: 5px 10px 0px;
* μœ„&μ•„λž˜, 였λ₯Έμͺ½&μ™Όμͺ½ padding μ§€μ •ν•˜κΈ°
ex) padding: 5px, 10px;
*/
padding: 0.5rem 1rem;
}
/* h1, h2 νƒœκ·Έ λΆ€λΆ„ */
#news-container .gohome, .goticker {
text-decoration: none;
}