rsnext/examples/with-mongodb-mongoose/css/style.css
Steven 4466ba436b
chore(examples): use default prettier for examples/templates (#60530)
## Description
This PR ensures that the default prettier config is used for examples
and templates.

This config is compatible with `prettier@3` as well (upgrading prettier
is bigger change that can be a future PR).

## Changes
- Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will
be needed upgrading to prettier@3)
- Added `examples/.prettierrc.json` with default config (this will
change every example)
- Added `packages/create-next-app/templates/.prettierrc.json` with
default config (this will change every template)

## Related

- Fixes #54402
- Closes #54409
2024-01-11 16:01:44 -07:00

182 lines
2.5 KiB
CSS

* {
font-family: "Open Sans", sans-serif;
box-sizing: border-box;
}
/* Nav Area */
.top-bar {
width: 100%;
margin-top: 0;
position: relative;
height: 80px;
text-align: right;
}
#title {
position: absolute;
left: 20px;
top: 0;
display: inline-block;
height: 100%;
}
.nav {
height: 100%;
display: inline-block;
}
.nav a {
margin: 0 20px;
font-size: 120%;
height: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
}
.grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
/* Styles for Cards */
.card {
display: inline-block;
width: 300px;
height: 400px;
overflow: hidden;
border: 1.25px solid rgb(233, 233, 233);
border-radius: 16px;
margin: 10px;
transition: 0.5s all;
--shadow: transparent;
box-shadow: 0 0 10px 5px var(--shadow);
position: relative;
font-size: 100%;
}
.card:hover {
--shadow: rgba(53, 53, 53, 0.103);
/* transform: rotateY(180deg) translate(20px, 20px);
background: pink; */
}
.card:hover .main-content {
pointer-events: initial;
opacity: 1;
}
.card * {
margin: 0;
}
.card img {
width: 100%;
height: 100%;
object-fit: cover;
}
.main-content {
padding: 25px;
position: absolute;
top: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.9);
width: 100%;
height: 100%;
opacity: 0;
pointer-events: none;
transition: 0.5s all;
}
.owner {
color: grey;
font-size: 110%;
}
.pet-name {
font-weight: bold;
font-size: 130%;
}
h5.pet-name {
color: white;
position: absolute;
left: 0;
bottom: 0;
padding: 10px;
text-shadow: 0px 0px 4px black;
}
.info ul {
padding: 10px;
padding-top: 0px;
border-radius: 7px;
}
li {
list-style-type: none;
margin: 0;
}
.info {
color: rgb(83, 83, 83);
position: relative;
overflow: hidden;
}
.info.likes {
margin-top: 25px;
}
.label {
font-weight: bold;
}
.btn-container {
text-align: right;
padding: 10px;
position: absolute;
bottom: 10px;
right: 10px;
}
.btn {
--accent: grey;
cursor: pointer;
background: transparent;
border: 1.5px solid var(--accent);
color: var(--accent);
border-radius: 10px;
padding: 10px 15px;
font-size: 90%;
letter-spacing: 1px;
transition: 0.5s all;
outline: none;
}
.btn:hover {
background: var(--accent);
color: white;
}
.edit.btn {
--accent: green;
}
.delete.btn {
--accent: red;
margin-left: 10px;
}
.view.btn {
--accent: blue;
margin-left: 10px;
}
/* Delete Pet */
.pet-container {
width: 100%;
}
.confirmation-box.show {
display: block;
}