<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>tequila.log</title>
        <link>https://velog.io/</link>
        <description>프론트엔드 개발자로 자라나는 중 입니다만..</description>
        <lastBuildDate>Fri, 22 Apr 2022 05:32:15 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>tequila.log</title>
            <url>https://velog.velcdn.com/cloudflare/tequila_kong/9f224b3d-dfd9-438e-adf8-673380d8034d/social_profile.png</url>
            <link>https://velog.io/</link>
        </image>
        <copyright>Copyright (C) 2019. tequila.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/tequila_kong" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[VS Code 주석(ctrl+/) 오류 날 때 해결방법]]></title>
            <link>https://velog.io/@tequila_kong/VS-Code-%EC%A3%BC%EC%84%9D-%EC%98%A4%EB%A5%98-%EB%82%A0-%EB%95%8C-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95</link>
            <guid>https://velog.io/@tequila_kong/VS-Code-%EC%A3%BC%EC%84%9D-%EC%98%A4%EB%A5%98-%EB%82%A0-%EB%95%8C-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95</guid>
            <pubDate>Fri, 22 Apr 2022 05:32:15 GMT</pubDate>
            <description><![CDATA[<p>어이없지만 윈도우에서 &#39;한컴 입력기&#39; 상태로 설정되어 있으면 주석처리(ctrl+/)가 먹통이 된다.</p>
<p>&#39;Microsoft 입력기&#39;로 바꿔주면 다시 정상적으로 작동한다!</p>
<p><img src="https://velog.velcdn.com/images/tequila_kong/post/5db0fbce-0acb-4a89-99a9-e6cc6e9d2753/image.png" alt=""></p>
]]></description>
        </item>
        <item>
            <title><![CDATA[CSS - 배경(background)]]></title>
            <link>https://velog.io/@tequila_kong/CSS-%EB%B0%B0%EA%B2%BDbackground</link>
            <guid>https://velog.io/@tequila_kong/CSS-%EB%B0%B0%EA%B2%BDbackground</guid>
            <pubDate>Sat, 09 Apr 2022 07:10:01 GMT</pubDate>
            <description><![CDATA[<blockquote>
<h3 id="전체개요">전체개요</h3>
<p><code>background</code> 속성은 태그의 배경을 지정하는 속성. font 태그와 비슷하게 세부 속성들을 한 번에 쓸 수 있음. </p>
</blockquote>
<h3 id="1-background-color">1. background-color</h3>
<p>배경색을 의미.
태그의 크기가 없을 경우 배경색은 표기되지 않음.</p>
<h3 id="2-background-image">2. background-image</h3>
<ul>
<li>기본값: <code>background-image</code>의 크기는 원본 사이즈 그대로 표시되며, 컨테이너 크기보다 작으면 이미지는 반복되어 표시됨.<blockquote>
<p>&lt; 문법 &gt;</p>
</blockquote>
</li>
<li><ul>
<li>background-image:url(&#39;이미지 경로&#39;); **</li>
</ul>
</li>
</ul>
<h3 id="3-background-size">3. background-size</h3>
<p>배경 이미지의 가로 크기와 세로 크기를 정할 수 있음</p>
<ul>
<li>기본값: auto</li>
<li>상속: no</li>
<li>애니메이션: yes</li>
<li>버전: css level3</li>
</ul>
<blockquote>
<p>&lt; 문법 &gt;
** background-size: auto | length | cover | contain | initial | inherit **</p>
</blockquote>
<ul>
<li>auto: 이미지 크기를 유지 (이미지가 컨테이너 사이즈보다 클 경우 이미지 잘림)</li>
<li>length: 값을 두 개 넣으면 첫 번째 값이 가로 크기, 두 번째 값이 세로 크기. 값을 한 개 넣으면 가로 크기이며, 세로 크기는 원본 이미지의 가로 세로 비율에 맞게 자동으로 정해짐. 백분율을 사용할 수도 있음.
<img src="https://velog.velcdn.com/images/tequila_kong/post/b2699bf7-e084-4646-93fa-a0a699d34af0/image.png" alt=""></li>
<li>cover: 배경을 사용하는 요소를 다 채울 수 있게 이미지를 확대 또는 축소. 가로 세로 비율 유지.
<img src="https://velog.velcdn.com/images/tequila_kong/post/1d261eb0-41e6-441e-9516-f102e73aeddf/image.png" alt=""></li>
<li>contatin: 배경을 사용하는 요소를 벗어나지 않는 최대 크기로 이미지를 확대 or 축소. 가로 세로 비율 유지. (조정된 이미지가 컨테이너보다 작을 경우 남은 여백에 이미지 반복됨)
<img src="https://velog.velcdn.com/images/tequila_kong/post/4864ead8-7307-4003-886a-2d8087e3476d/image.png" alt=""></li>
</ul>
<p><em>TIP: 백분율로 크기를 정할 때의 기준은 이미지 크기가 아니라 배경을 사용하는 요소의 크기임</em></p>
<h3 id="4-background-repeat">4. background-repeat</h3>
<ul>
<li>기본값: 컨테이너보다 작은 이미지를 사용하면 이미지가 반복되어 출력.<blockquote>
<p>&lt; 문법 &gt;</p>
</blockquote>
</li>
<li><ul>
<li>background-repeat: no-repeat | repeat-x | repeat-y | repeat **<h3 id="5-background-position">5. background-position</h3>
</li>
</ul>
</li>
</ul>
<p>배경 이미지의 좌표를 수정할 수 있음</p>
<ul>
<li>기본값: 왼쪽 위부터 이미지 출력</li>
<li>속성값: pixel(px), left, top, center, bottom, right</li>
<li>입력방법: 띄어쓰기를 기준으로 x좌표, y좌표 지정</li>
</ul>
<blockquote>
<p>&lt; 문법 &gt;
** background-potition: x좌표 y좌표; **</p>
</blockquote>
<p><a href="https://www.codingfactory.net/10559">참고 사이트</a></p>
<h3 id="6-background-attachment">6. background-attachment</h3>
<p>배경 이미지의 스크롤 여부를 정함</p>
<ul>
<li>기본값: scroll</li>
<li>상속: NO</li>
<li>애니메이션: NO</li>
<li>버전: css level1</li>
</ul>
<blockquote>
<p>&lt; 문법 &gt;
** background-attachment: scroll | fixed | local | initial | inherit; **</p>
</blockquote>
<ul>
<li>scroll: 바깥을 스크롤하면 선택한 요소와 같이 움직임. 내용을 스크롤하면 배경 이미지는 스크롤되지 않음.</li>
<li>fixed: 움직이지 않음.</li>
<li>local: 바깥을 스크롤하면 선택한 요소와 같이 움직임. 내용을 스크롤하면 배경 이미지도 스크롤됨.</li>
</ul>
<p><a href="https://www.codingfactory.net/10576">참고 사이트</a></p>
]]></description>
        </item>
        <item>
            <title><![CDATA[CSS Selector - 등위선택자, 상태 선택자, 반응선택자(1)]]></title>
            <link>https://velog.io/@tequila_kong/CSS-selector1</link>
            <guid>https://velog.io/@tequila_kong/CSS-selector1</guid>
            <pubDate>Tue, 05 Apr 2022 16:21:35 GMT</pubDate>
            <description><![CDATA[<h3><font style="color: darkgrey;">comments</font></h3>
css 공부한 내용을 정리하려다가 우연히 발견한 @teo님의 글!
무려 <font style="text-decoration: underline;">css에 대해 얼마나 알고 있는지 자가진단할 수 있는 체크리스트</font>였다.

<p><a href="https://velog.io/@teo/css-self-checklist">https://velog.io/@teo/css-self-checklist</a></p>
<p>마른 하늘에 단비같은 이 가이드 덕분에 배운 내용을 어떻게 정리할지 가닥이 잡힌 듯 하다.</p>
<hr>
<p> <input type="checkbox" checked>🔰 selector가 뭔지 알고 있다.
 <input type="checkbox" checked>🔰 id selector가 뭔지 알고 있다.
 <input type="checkbox" checked>🔥 class selector가 뭔지 알고 있다.
 <input type="checkbox">🔥 Universal selector가 뭔지 알고 있다.
 <input type="checkbox" checked>🔰 하위 요소를 선택할 수 있다.
 <input type="checkbox">🔰 a의 target attribute가 &quot;_target&quot;인 노드만 스타일을 적용할 수 있다.
 <input type="checkbox" checked>🔰 자식 노드를 선택할 수 있다.
 <input type="checkbox" checked><font color="blue">😎 인접 노드 선택자를 알고 있다.</font>
 <input type="checkbox">😎 범위 지정 선택자를 알고 있다.
 <input type="checkbox" checked>🔥 마우스 hover시 색상을 바꿀 수 있다.
 <input type="checkbox">🔰 Pseudo class를 알고 있다.
 <input type="checkbox">😎 드래그 했을때 선택영역의 색상을 바꿀 수 있다.
 <input type="checkbox">😎 input의 placeholder 색상을 바꿀 수 있다.
 <input type="checkbox">🔰 Pseudo element를 알고 있다.
 <input type="checkbox" checked>🔰 ::after나 ::before 그리고 content를 알고 있다.
 <input type="checkbox">😎 ::after나 ::before 그리고 content에서 실전에서 사용되는 팁을 알고 있다.
 <input type="checkbox">🔥 :root를 알고 있다.</p>
<hr>
<h3>1. 등위선택자(형제선택자)</h3>

<table>
<thead>
<tr>
<th align="center">유형</th>
<th align="center">해석</th>
</tr>
</thead>
<tbody><tr>
<td align="center">A~B</td>
<td align="center">A에 해당하는 태그와 동등한 위치에 있는 B 선택</td>
</tr>
<tr>
<td align="center">A+B</td>
<td align="center">A에 해당하는 태그와 동등한 위치에 있는 바로 인접한 태그</td>
</tr>
</tbody></table>
<pre><code class="language-CSS">&lt;style&gt;
      h2~ul {
        color: blue;
        list-style: none;
    h2+ul {
        background: pink;
            }
  &lt;/style&gt;</code></pre>
<pre><code class="language-HTML">&lt;html&gt;
&lt;body&gt;
  &lt;h2&gt;장바구니&lt;/h2&gt;
  &lt;ul&gt;
    &lt;li&gt;사과&lt;/li&gt;
    &lt;li&gt;당근&lt;/li&gt;
    &lt;li&gt;두부&lt;/li&gt;
  &lt;ul&gt;
  &lt;h3&gt;생필품&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;칫솔&lt;/li&gt;
    &lt;li&gt;휴지&lt;/li&gt;
    &lt;li&gt;도마&lt;/li&gt;
  &lt;ul&gt;
  &lt;h2&gt;저녁메뉴&lt;/h2&gt;
  &lt;ul&gt;
    &lt;li&gt;김치찌개&lt;/li&gt;
    &lt;li&gt;장조림&lt;/li&gt;
  &lt;ul&gt;
    &lt;/body&gt;
    &lt;/html&gt;</code></pre>
<p>👉🏻 출력물
<img src="https://velog.velcdn.com/cloudflare/tequila_kong/f88877a6-a513-4ae7-ba6a-ae28e29c3f0c/image.png" border="1px solid #000" width="600px;"></p>
<h3>2. 상태선택자</h3>
:상태 선택자는 보통 form 태그에서 input 태그의 특정한 상태에 대해 CSS 속성을 지정 할 때 사용
<br><br>

<table>
<thead>
<tr>
<th align="center">유형</th>
<th align="center">해석</th>
</tr>
</thead>
<tbody><tr>
<td align="center">input:focus</td>
<td align="center">focus가 된 input 태그를 선택</td>
</tr>
<tr>
<td align="center">input:enabled</td>
<td align="center">입력이 가능한 input 태그를 선택</td>
</tr>
<tr>
<td align="center">input:disable</td>
<td align="center">입력이 불가능한 input 태그를 선택</td>
</tr>
</tbody></table>
<h3>3. 반응선택자</h3>
: 반응 선택자는 웹 페이지를 보는 사용자가 마우스로 특정한 행동을 취했을 때 CSS 속성을 지정 할 수 있는 선택자를 의미
<br><br>

<table>
<thead>
<tr>
<th align="center">유형</th>
<th align="center">해석</th>
</tr>
</thead>
<tbody><tr>
<td align="center">h1:hover</td>
<td align="center">h1태그에 마우스를 올려놓으면 선택</td>
</tr>
<tr>
<td align="center">a:active</td>
<td align="center">a태그에 마우스를 클릭하면 선택</td>
</tr>
<tr>
<td align="center">a:visited</td>
<td align="center">link를 클릭하여 방문하였을 때 선택</td>
</tr>
<tr>
<td align="center">a:link</td>
<td align="center">한 번도 안 가본 링크일 때 선택</td>
</tr>
</tbody></table>
<hr>
<p>&lt;참고자료&gt; 
<a href="https://lktprogrammer.tistory.com/99?category=673476">https://lktprogrammer.tistory.com/99?category=673476</a></p>
]]></description>
        </item>
    </channel>
</rss>