added other units
This commit is contained in:
113
Unit 5/Day 2/stylesheets/lib/dismissible.css
Normal file
113
Unit 5/Day 2/stylesheets/lib/dismissible.css
Normal file
@@ -0,0 +1,113 @@
|
||||
:root {
|
||||
/* Animation Props */
|
||||
--dismissible-animation-overshoot: 10%;
|
||||
--dismissible-animation-duration: 0.6s;
|
||||
--dismissible-animation-timing-function: ease-in-out;
|
||||
/* Theme Props */
|
||||
--dismissible-background-error: #ed1c24;
|
||||
--dismissible-color-error: #fff;
|
||||
--dismissible-background-success: #10c15c;
|
||||
--dismissible-color-success: #fff;
|
||||
--dismissible-background-info: #0b22e2;
|
||||
--dismissible-color-info: #fff;
|
||||
/* Misc */
|
||||
--dismissible-box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.dismissible-container {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dismissible {
|
||||
position: relative;
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
transform: translateY(-100%);
|
||||
animation-name: drop-in;
|
||||
animation-direction: normal;
|
||||
animation-duration: var(--dismissible-animation-duration);
|
||||
animation-timing-function: var(--dismissible-animation-timing-function);
|
||||
animation-fill-mode: forwards;
|
||||
animation-iteration-count: 1;
|
||||
box-shadow: var(--dismissible-box-shadow);
|
||||
}
|
||||
|
||||
.dismissible .dismissible-message {
|
||||
flex: 1;
|
||||
padding: 0 2rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.dismissible::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: var(--dismissible-animation-overshoot);
|
||||
width: 100%;
|
||||
bottom: 100%;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.dismissible.error {
|
||||
background: var(--dismissible-background-error);
|
||||
color: var(--dismissible-color-error);
|
||||
}
|
||||
|
||||
.dismissible.error::after {
|
||||
background: var(--dismissible-background-error);
|
||||
}
|
||||
|
||||
.dismissible.info {
|
||||
background: var(--dismissible-background-info);
|
||||
color: var(--dismissible-color-info);
|
||||
}
|
||||
|
||||
.dismissible.info::after {
|
||||
background: var(--dismissible-background-info);
|
||||
}
|
||||
|
||||
.dismissible.success {
|
||||
background: var(--dismissible-background-success);
|
||||
color: var(--dismissible-color-success);
|
||||
}
|
||||
|
||||
.dismissible.success::after {
|
||||
background: var(--dismissible-background-success);
|
||||
}
|
||||
|
||||
.dismiss {
|
||||
color: inherit;
|
||||
appearance: none;
|
||||
border: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.dismiss:hover {
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
@keyframes drop-in {
|
||||
0% {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: translateY(var(--dismissible-animation-overshoot));
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
1
Unit 5/Day 2/stylesheets/lib/lineicons.css
Normal file
1
Unit 5/Day 2/stylesheets/lib/lineicons.css
Normal file
File diff suppressed because one or more lines are too long
256
Unit 5/Day 2/stylesheets/style.css
Normal file
256
Unit 5/Day 2/stylesheets/style.css
Normal file
@@ -0,0 +1,256 @@
|
||||
header{
|
||||
height: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary: #3e72ea;
|
||||
--important: #ee4c3a;
|
||||
--later: var(--primary);
|
||||
--light: #EEE;
|
||||
--grey: #888;
|
||||
--dark: #313154;
|
||||
--danger: #ff5b57;
|
||||
|
||||
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
|
||||
--important-glow: 0px 0px 8px rgba(238, 76, 58, 0.75);
|
||||
--later-glow: 0px 0px 8px rgba(62, 114, 234, 0.75);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'montserrat', sans-serif;
|
||||
}
|
||||
|
||||
input:not([type="radio"]):not([type="checkbox"]), button {
|
||||
appearance: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: none;
|
||||
cursor: initial;
|
||||
}
|
||||
|
||||
|
||||
|
||||
section {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: var(--dark);
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
color: var(--grey);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.greeting .title {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.greeting .title input {
|
||||
margin-left: 0.5rem;
|
||||
flex: 1 1 0%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.greeting .title,
|
||||
.greeting .title input {
|
||||
color: var(--dark);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.create-todo input[type="text"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
font-size: 1.125rem;
|
||||
padding: 1rem 1.5rem;
|
||||
color: var(--dark);
|
||||
background-color: #FFF;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.create-todo .options {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.create-todo .options label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #FFF;
|
||||
padding: 1.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bubble {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 999px;
|
||||
border: 2px solid var(--important);
|
||||
box-shadow: var(--important-glow);
|
||||
}
|
||||
|
||||
.bubble.later {
|
||||
border-color: var(--later);
|
||||
box-shadow: var(--later-glow);
|
||||
}
|
||||
|
||||
.bubble::after {
|
||||
content: '';
|
||||
display: block;
|
||||
opacity: 0;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
background-color: var(--important);
|
||||
box-shadow: var(--important-glow);
|
||||
border-radius: 999px;
|
||||
transition: 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.bubble.later::after {
|
||||
background-color: var(--later);
|
||||
box-shadow: var(--later-glow);
|
||||
}
|
||||
|
||||
input:checked ~ .bubble::after {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.create-todo .options label div {
|
||||
color: var(--dark);
|
||||
font-size: 1.125rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
#submit {
|
||||
display: block;
|
||||
width: 100%;
|
||||
font-size: 1.125rem;
|
||||
padding: 1rem 1.5rem;
|
||||
color: #FFF;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
background-color: var(--primary);
|
||||
box-shadow: var(--later-glow);
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: 0.2s ease-out;
|
||||
}
|
||||
|
||||
#submit:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.todo-list .list {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
td {
|
||||
border: 1px solid;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.todo-list .todo-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #FFF;
|
||||
padding: 1rem;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.todo-item label {
|
||||
display: block;
|
||||
margin-right: 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.todo-item .todo-content {
|
||||
flex: 1 1 0%;
|
||||
}
|
||||
|
||||
.todo-item .todo-content input {
|
||||
color: var(--dark);
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
.todo-item .actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.todo-item .actions button {
|
||||
display: block;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.25rem;
|
||||
color: #FFF;
|
||||
cursor: pointer;
|
||||
transition: 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.todo-item .actions button:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.todo-item .actions .edit {
|
||||
margin-right: 0.5rem;
|
||||
background-color: var(--primary);
|
||||
}
|
||||
|
||||
.todo-item .actions .delete {
|
||||
background-color: var(--danger);
|
||||
}
|
||||
|
||||
.todo-item.done .todo-content input {
|
||||
text-decoration: line-through;
|
||||
color: var(--grey);
|
||||
}
|
||||
footer {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
#DataGrid {
|
||||
height: 423px;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--light);
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user