urlsnail/resources/sass/components/_bookmark.scss

121 lines
1.9 KiB
SCSS
Raw Normal View History

2024-05-25 17:21:34 +00:00
.bookmark {
display: grid;
align-items: center;
gap: 0px 0px;
grid-template-areas:
"title title"
"description description"
2024-05-25 20:46:01 +00:00
"href href"
2024-05-26 12:48:04 +00:00
"date tags"
"actions actions";
2024-05-25 17:21:34 +00:00
2024-05-30 19:41:29 +00:00
color: #000;
2024-05-29 21:07:23 +00:00
form & {
grid-template-areas:
"title"
"description"
"href"
"tags"
"actions";
}
2024-05-25 17:21:34 +00:00
margin-bottom: 1em;
padding: 0;
border: 2px solid #540B0E;
background-color: #FFF3B0;
2024-05-25 20:46:01 +00:00
border-radius: 7px;
overflow: hidden;
2024-05-25 17:21:34 +00:00
a {
&,
&:active,
&:visited {
color: #9E2A2B;
}
&:hover {
color: #000;
}
}
2024-05-25 17:21:34 +00:00
&-title {
margin: 0;
padding: 1ex;
background-color: #E09F3E;
grid-area: title;
font-weight: bold;
}
&-href,
&-description,
&-date,
&-tags {
padding: 1ex;
margin: 0;
}
&-href,
&-description,
&-date {
font-size: 0.9em;
}
&-href {
grid-area: href;
}
&-description {
grid-area: description;
> p {
border-left: 3px solid #9E2A2B;
margin: 0;
padding: 0.5ex 0 0.5ex 1ex;
}
}
2024-05-26 12:48:04 +00:00
&-actions {
grid-area: actions;
}
2024-05-25 17:21:34 +00:00
&-date {
grid-area: date;
}
&-tags {
grid-area: tags;
2024-05-29 21:07:23 +00:00
font-size: 0.8em;
2024-05-25 17:21:34 +00:00
text-align: right;
2024-05-29 21:07:23 +00:00
form & {
font-size: 0.9em;
text-align: left;
}
2024-05-25 17:21:34 +00:00
}
&-tag {
display: inline-block;
padding: 0.5ex 0.8ex;
margin: 0 0 0.2ex 0;
border-radius: 7px;
background-color: #9E2A2B;
color: #FFF3B0;
2024-05-29 21:26:05 +00:00
a {
&,
&:active,
&:visited {
color: #FFF3B0;
}
&:hover {
color: #000;
}
}
2024-05-25 17:21:34 +00:00
}
}