๋ชฉ๋ก2022/03/01 (13)
whatisthis?
BootStrap (๋ถํธ์คํธ๋ฉ) - ๋ฐ์ํ grid-system ๋๋ฌธ์ ์ ๋ช ! ๐ - CSS Framework. Bootstrap The most popular HTML, CSS, and JS library in the world. getbootstrap.com Quick start ๋๋ฅด๊ณ CSS ๋ผ ์ ํ ๋ถ๋ถ์ ์ฝ๋๋ฅผ copyํ๋ค. >> html ํ์ผ์ head ์ ๋ถ์ฌ๋ฃ์. โ ์ฐธ๊ณ ์ฐ๋ฆฌ๋ ์ง๊ธ grid system๋ง ์ฌ์ฉํ๋ฏ๋ก ๊ทธ๋ฅ ์ link๋ถ๋ถ๋ง ๊ฐ์ ธ์๋ ๋๊ณ , ๋ง์ฝ ์ปดํฌ๋ํธ๋ ๋ค์ํ ๊ธฐ๋ฅ๋ค์ ์ฌ์ฉํ๋ ค๋ฉด scriptํ๊ทธ๋ ๊ฐ์ ธ์์ผ ํ๋ค. ๊ทธ๋ฅ ์๋ฌด๊ฒ๋ ์ค์ ์ํด๋ bootstrap์ด ๊ธฐ๋ณธ ์ ๊ณตํ๋ reset style์ ์ํด ๊น๋ํ๊ฒ ๋์จ๋ค! grid-system ๊ธฐ๋ณธ ๊ตฌ์กฐ container ์..
Grid System - ๋์์ด๋๊ฐ ์น ๋์์ธ์ ํ ๋ ๊ทธ๋ฆฌ๋ ์์คํ ์ ์ด์ฉํด์ ๋์์ธ์ ํ๋ค. container column gutter ์ฌ๊ธฐ์ ํ๋์ ์ ์ฒด์ ํด๋นํ๋ ๊ฒ์ด container, hotpink์ ์นธ ํ๋์ ํด๋นํ๋ ๊ฒ์ด column์ด๋ค. ์ฃผ๋ก ๊ทธ๋ฆฌ๋๋ 12์นธ์ง๋ฆฌ๋ฅผ ๋ง์ด ์ฌ์ฉํ๋ค. column์ ํตํด ์์์ width๋ฅผ ์ค์ ํ๋ค. (์> 3์นธ์ง๋ฆฌ, 6์นธ์ง๋ฆฌ ๋ฑ column์ ๊ธฐ์ค์ผ๋ก ์ก์) gutter์ ์์๊ฐ์ ์ฌ๋ฐฑ์ ์ฃผ๋ ๊ฒ. = ๊ฐ๊ฒฉ์ ์ํ ์ฌ๋ฐฑ์ ์ค. ๐ก ์ด๋ฌํ grid-system์ ๋ฐ์ํ์ผ๋ก ํด์ค framework ===== Bootstrap! ref https://edu.goorm.io/learn/lecture/20583
1. ๊ธฐ๋ณต์ ์ผ๋ก, ๋์ค์ ์ค๋ ์ ์ธ์ด ๋ฎ์ด์ 2. ์ ํ์ ์ฐ์ ์์ ์ ํ์ ์ฐ์ ์์ ์์ ์ ํ์ ์ ๋ง ์ด์ฉ์ ์์๋๋ง ์ฌ์ฉํ ๊ฒ. ์์ข์๊ฑฐ์. 1 / ์ธ๋ผ์ธ ์คํ์ผ ์ ์ฉ hello > ์ด๋ ํ ์คํ์ผ๋ณด๋ค ๊ฐ์ฅ ๊ฐ๋ ฅํ ์ ์ฉ๋จ. 2/ !important ์ ์ธ - ์ธ๋ผ์ธ ์คํ์ผ๋ณด๋ค ๋ ๊ฐ๋ ฅํจ. - ๋ฌด์จ์ผ์ด ์์ด๋ ์ด๊ฑธ ์ ์ฉํ๋ผ๋ ๋ป. - ์ฌ์ฉ ์์ ํ๋๊ฒ์ด ์ข์. * { color: red !important; } ref lecture. https://edu.goorm.io/learn/lecture/20583
CSS - Selector 1 / ์์, ํด๋์ค, ID ์ ํ์ 2 / ์์, ์์, ํ์ ์ ํ์ 3 / ๊ตฌ์กฐ์ ๊ฐ์ ํด๋์ค ์ ํ์ 4 / ๋์ ๊ฐ์ ํด๋์ค ์ ํ์ 1 / ์์, ํด๋์ค, ID ์ ํ์ Type Selector - HTML ํ๊ทธ ์ด๋ฆ์ผ๋ก ์ ํ์ ์์ฑ span { color : #0066ff; font-size: 16px; font-weight: 500; } Class Selector - HTML์ class์์ฑ์ ์์ฑ๊ฐ์ ์ฌ์ฉ .stop-button { color : #0066ff; border: none; } class๋ ์ค๋ณต ์ ์ธ ๊ฐ๋ฅํ๋ฏ๋ก ๊ฐ์ ํด๋์ค์ ๋์ผํ ์คํ์ผ์ ํ๊บผ๋ฒ์ ์์ฑ ๊ฐ๋ฅํ๋ค. ๋ฐ๋๋ก, ํ ์์์ ์ฌ๋ฌ ํด๋์ค๋ฅผ ๊ฐ์ง ์๋ ์๋ค. ๋ง์ฝ, class1์ด๋ฉด์ class2๋ฉด์ ..
Visibility visible | hidden (default) display: none์ ๊ฒฝ์ฐ์๋ ์ฐจ์งํ๋ ๊ณต๊ฐ๋ง์ ์์ ์ง๋ง, visibility: hidden์ ํ๋ฉด ๊ณต๊ฐ์ ๊ทธ๋๋ก ๋จ์ง๋ง content๋ง ์๋ณด์ด๊ฒํจ. >> opacity: 0๊ณผ ์ ์ฌํ๊ฒ ๋จ. display:none ์์ญ ์ฌ๋ผ์ง ์ด๋ฒคํธ(ex.ํด๋ฆญ) ์๋ ์ํจ tab focus ์๋จ visibility:hidden ์์ญ ์์ ์ด๋ฒคํธ(ex.ํด๋ฆญ) ์๋ ์ํจ tab focus ์๋จ ๋ค์ ์๋ ์์ ํด๋ฆญ ๊ฐ๋ฅ opacity:0 >> ์กด์ฌํจ! ์ด๋ฒคํธ๊ณ ๋ญ๊ณ ๋ค ๋จ! ๋จ์ง ํฌ๋ช ํ ๋ฟ. ์์ญ ์์ ์ด๋ฒคํธ(ex.ํด๋ฆญ) ์๋ ํจ tab focus ๋จ ๋ค์ ์๋ ์์ ํด๋ฆญ ๋ถ๊ฐ๋ฅ REF > visibility - CSS: Cascading Style ..
Transform /* ํค์๋ ๊ฐ */ transform: none; /* ํจ์ ๊ฐ */ transform: matrix(1.0, 2.0, 3.0, 4.0, 5.0, 6.0); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: perspective(17px); transform: rotate(0.5turn); transform: rotate3d(1, 2.0, 3.0, 10deg); transform: rotateX(10deg); transform: rotateY(10deg); transform: rotateZ(10deg); transform: translate(12px, 50%); transform: transl..
Overflow width * height๋ฅผ ๊ฐ๋ ์์ ์์ content๊ฐ ์์์ ์์ญ์ ๋ฒ์ด๋ฌ์ ๊ฒฝ์ฐ ์ฌ์ฉํจ. visible | auto | scroll | hidden - default : visible overflow-x, overflow-y ๋ก ๋๋ ์ ์ค์ ๊ฐ๋ฅ. scroll ์ฝํ ์ธ ๋ฅผ ์ค์ ๋ก ์๋ผ๋๋์ง ์ฌ๋ถ๋ฅผ ๋ฐ์ง์ง ์๊ณ ํญ์ ์คํฌ๋กค๋ฐ๋ฅผ ๋ ธ์ถ auto ์ฝํ ์ธ ๊ฐ ๋์น ๋๋ง ์คํฌ๋กค๋ฐ๋ฅผ ๋ ธ์ถ hidden ์ฝํ ์ธ ๋ฅผ ์์ชฝ ์ฌ๋ฐฑ ์์์ ๋ง์ถ๊ธฐ ์ํด ์๋ผ๋. ์คํฌ๋กค๋ฐ๋ฅผ ์ ๊ณตํ์ง ์๊ณ , ์คํฌ๋กคํ ๋ฐฉ๋ฒ(๋๋๊ทธ, ๋ง์ฐ์ค ํ ๋ฑ)๋ ์ง์ํ์ง ์์. p { width: 12em; height: 6em; overflow: scroll; } - width, height ์ค์ ํด์ค ํ, overflow ํด์ฃผ๊ธฐ .box { ..
Opacity = ํฌ๋ช ๋ 0 : ์์ ํฌ๋ช 1 : ์์ ๋ถํฌ๋ช opacity: 0.9 opacity: 90% A in the range 0.0 to 1.0, inclusive, or a in the range 0% to 100%, inclusive, representing the opacity of the channel (that is, the value of its alpha channel). Any value outside the interval, though valid, is clamped to the nearest limit in the range. - ์์์ rgba์์ a(์ํ๊ฐ)์ ํด๋นํจ. REF > opacity - CSS: Cascading Style Sheets | MDN The opa..
Box-shadow box-shadow๋ฅผ ์ด์ฉํด์ ๋ค์ํ ๋๋์ ๋ผ ์ ์์. ์๋ฅผ๋ค๋ฉด, ์์ฆ ์ ํํ๋ neumorphism, Skeuomorphism ๋ฑ ๐ป ** neumorphism ** Skeuomorphism h-offset (x) v-offset (y) blur (ํ๋ฆฐ์ ๋) spread (๊ทธ๋ฆผ์ ์ฌ์ด์ฆ) color (์์) ์์ผ๋ก (์์ ๋ฐ๋๋ฉด ์ ๋ ์๋จ) ์์ฑํด์ค์ผํจ. /* offset-x | offset-y | blur-radius | spread-radius | color */ box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); - ๋ณดํต spread-radius๋ 0์ผ๋ก ํด์ค๋ค. (๊ทธ๋ฆผ์ ์์ฒด๊ฐ ์ปค์ง) ์์ - ๋ฒํผ์ ๋ง์ฐ์ค ์ฌ๋ ธ์๋ (hover) box-..
CSS - Animation practice ๐ป ๋ด๊ฐ ์์ฑํ ์ฝ๋ * { box-sizing: border-box; margin: 0; } body { font-family: "Mulish", sans-serif; } .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 100px; } .loading-title { color: #151b26; font-size: 18px; line-height: 1.33333333; margin-bottom: 20px; animation-name: loading-effect; animation-duration: 1000ms; a..