Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Format CSS #259

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*.html
**/*.md
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bracketSameLine": true
}
99 changes: 53 additions & 46 deletions audiocontext-setsinkid/style.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,53 @@
button, select, label {
font-weight: 400;
line-height: 1.5;
font-size: 1rem;
font-family: sans-serif;
}

button, select {
padding: 6px 12px;
text-align: center;
background-color: transparent;
border-radius: .25rem;
}

button {
color: #0d6efd;
border: 1px solid transparent;
border-color: #0d6efd;
cursor: pointer;
outline: 0;
display: inline-block;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
margin-bottom: 20px;
}

button:hover {
color: #fff;
background-color: #0d6efd;
border-color: #0d6efd;
}

button:disabled {
color: #999;
border-color: #999;
background: white;
cursor: not-allowed;
}

label {
padding-right: 24px;
}

.select-container p {
color: red;
margin-bottom: 36px;
}
button,
select,
label {
font-weight: 400;
line-height: 1.5;
font-size: 1rem;
font-family: sans-serif;
}

button,
select {
padding: 6px 12px;
text-align: center;
background-color: transparent;
border-radius: 0.25rem;
}

button {
color: #0d6efd;
border: 1px solid transparent;
border-color: #0d6efd;
cursor: pointer;
outline: 0;
display: inline-block;
transition:
color 0.15s ease-in-out,
background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out,
box-shadow 0.15s ease-in-out;
margin-bottom: 20px;
}

button:hover {
color: #fff;
background-color: #0d6efd;
border-color: #0d6efd;
}

button:disabled {
color: #999;
border-color: #999;
background: white;
cursor: not-allowed;
}

label {
padding-right: 24px;
}

.select-container p {
color: red;
margin-bottom: 36px;
}
18 changes: 10 additions & 8 deletions channel-messaging-multimessage/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
html,body {
margin: 0;
font-family: 'Open Sans Condensed', sans-serif;
html,
body {
margin: 0;
font-family: "Open Sans Condensed", sans-serif;
}

body {
Expand All @@ -15,7 +16,7 @@ form {
}

form input {
width: 55%;
width: 55%;
}

form label {
Expand All @@ -24,7 +25,7 @@ form label {
}

form button {
width: 60%;
width: 60%;
display: block;
margin: 10px auto 0;
}
Expand All @@ -33,14 +34,15 @@ p {
margin: 10px 0;
}

h1, p {
h1,
p {
text-align: center;
}

h1 {
font-family: 'Lobster Two', cursive;
font-family: "Lobster Two", cursive;
}

ul {
width: 90%;
}
}
5 changes: 2 additions & 3 deletions css-painting/half-highlight-fixed-size/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.fancy {
background-image: paint(headerHighlight);
}

background-image: paint(headerHighlight);
}
14 changes: 9 additions & 5 deletions document-picture-in-picture/main.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#contents {
width: 600px;
font: 14px "Open Sans", sans-serif;
width: 600px;
font:
14px "Open Sans",
sans-serif;
}

#credits {
padding: 0 0 10px 0;
font: italic 10px "Open Sans", sans-serif;
padding: 0 0 10px 0;
font:
italic 10px "Open Sans",
sans-serif;
}

#in-pip-message {
display: none;
display: none;
}
10 changes: 6 additions & 4 deletions fullscreen-api/main.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#credits {
padding: 0 0 10px 0;
font: italic 12px "Open Sans", sans-serif;
padding: 0 0 10px 0;
font:
italic 12px "Open Sans",
sans-serif;
}

#video {
max-width: 100%;
}
max-width: 100%;
}
9 changes: 7 additions & 2 deletions indexeddb-examples/idbindex/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ h1 {
font-family: "Bevan", cursive;
font-size: 4rem;
letter-spacing: 0.2rem;
text-shadow: 1px 1px 1px #eee4fe, 2px 2px 1px #eee4fe, 3px 3px 1px #7b62ae,
4px 4px 1px #7b62ae, 5px 5px 1px #261758, 6px 6px 1px #261758;
text-shadow:
1px 1px 1px #eee4fe,
2px 2px 1px #eee4fe,
3px 3px 1px #7b62ae,
4px 4px 1px #7b62ae,
5px 5px 1px #261758,
6px 6px 1px #261758;
}

table {
Expand Down
122 changes: 75 additions & 47 deletions media-session/moz.css
Original file line number Diff line number Diff line change
@@ -1,85 +1,113 @@
@font-face {
font-family: 'zillaslab';
src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/858/ZillaSlab.woff2') format('woff2');
font-family: "zillaslab";
src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/858/ZillaSlab.woff2")
format("woff2");
}

:root {
--black: hsl(0, 0%, 16%);
--white: hsl(0,0%,97%);
--blue: hsl(198, 100%, 66%);
--teal: hsl(198, 43%, 42%);
--lightYellow: hsl(43, 100%, 92%);
--grey: hsl(0, 0%, 80%);
--unit: 1.2rem;
--black: hsl(0, 0%, 16%);
--white: hsl(0, 0%, 97%);
--blue: hsl(198, 100%, 66%);
--teal: hsl(198, 43%, 42%);
--lightYellow: hsl(43, 100%, 92%);
--grey: hsl(0, 0%, 80%);
--unit: 1.2rem;
}

body {
padding: var(--unit);
background-color: var(--white);
font-family: 'Arial', sans-serif; font-size: 100%;
color: var(--black); line-height: 1.3;
padding: var(--unit);
background-color: var(--white);
font-family: "Arial", sans-serif;
font-size: 100%;
color: var(--black);
line-height: 1.3;
}

/* page partials */
footer {
padding: var(--unit);
margin-top: calc(var(--unit)*2);
border-top: 1px solid var(--grey);
padding: var(--unit);
margin-top: calc(var(--unit) * 2);
border-top: 1px solid var(--grey);
}
footer p {
margin: 0px; text-align: center;
margin: 0px;
text-align: center;
}

/* base styles */
h1, h2 {
font-family: "zillaslab", serif;
h1,
h2 {
font-family: "zillaslab", serif;
}

h2 {
padding: calc(var(--unit)/2);
background-color: var(--black);
color: var(--white); font-weight: normal;
padding: calc(var(--unit) / 2);
background-color: var(--black);
color: var(--white);
font-weight: normal;
}

p {}
p {
}

a {
border: 1px solid var(--teal);
border-width: 0px 0px 1px 0px;
color: var(--teal);
text-decoration: none;
border: 1px solid var(--teal);
border-width: 0px 0px 1px 0px;
color: var(--teal);
text-decoration: none;
}
a:hover {
border-width: 1px 0px 0px 0px;
border-width: 1px 0px 0px 0px;
}

nav ul {
display: flex; justify-content: space-between;
margin: 0px; padding: 0px;
list-style: none;
display: flex;
justify-content: space-between;
margin: 0px;
padding: 0px;
list-style: none;
}
nav li {
margin: 0px;
padding: 0px;
}
nav li {margin: 0px; padding: 0px;}

dl {display: flex; flex-wrap: wrap;}
dt, dd {padding: 2%; box-sizing: border-box;}
dt {width: 30%; font-weight: bold; text-align: right;}
dd {width: 66%; margin: 0px;}
dl {
display: flex;
flex-wrap: wrap;
}
dt,
dd {
padding: 2%;
box-sizing: border-box;
}
dt {
width: 30%;
font-weight: bold;
text-align: right;
}
dd {
width: 66%;
margin: 0px;
}

code {
background-color: var(--lightYellow);
font-family:monospace; font-size:110%;
letter-spacing:0.5px;
background-color: var(--lightYellow);
font-family: monospace;
font-size: 110%;
letter-spacing: 0.5px;
}

pre {
padding: var(--unit);
background-color: var(--grey);
border-left: 4px solid var(--teal);
white-space: pre-wrap;
overflow-wrap: break-word;
tab-size: 4; font-size: 86%;
padding: var(--unit);
background-color: var(--grey);
border-left: 4px solid var(--teal);
white-space: pre-wrap;
overflow-wrap: break-word;
tab-size: 4;
font-size: 86%;
}

pre code {
background: none;
}
background: none;
}
Loading
Loading