Template:Item/styles.css: Difference between revisions

From Love and Deepspace Wiki
Content added Content deleted
mNo edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
.item-card {
.item-card {
max-width: 400px;
max-width: 350px;
background: linear-gradient(145deg, rgba(204,204,204,1) 0%, rgba(238,238,238,1) 25%, rgba(238,238,238,1) 100%);
background: #eee;
padding: 0.5em 1em;
padding: 1em;
border: 1px solid #ddd;
border: 1px solid #ddd;
border-radius: 5px;
border-radius: 5px;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
font-size: 0.9em;
float:right;
margin-left:1em;
}

.item-card-minimal {
max-width: 350px;
background: linear-gradient(145deg, rgba(204,204,204,1) 0%, rgba(238,238,238,1) 25%, rgba(238,238,238,1) 100%);
padding: 1em;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
font-size: 0.9em;
}

.item-card-header-img {
height: 100px;
width: 100px;
background: #eee;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid white;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
.item-card {
margin-left: auto;
float: none;
}
}
}


Line 11: Line 42:
display: flex;
display: flex;
gap: 0.5em;
gap: 0.5em;
font-size: 1.2em;
font-size: 1.1em;
}

.item-card-header-tags {
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
gap: 3px;
}
}



Latest revision as of 02:30, 17 February 2024

.item-card {
    max-width: 350px;
    background: linear-gradient(145deg, rgba(204,204,204,1) 0%, rgba(238,238,238,1) 25%, rgba(238,238,238,1) 100%);
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
    font-size: 0.9em;
    float:right;
    margin-left:1em;
}

.item-card-minimal {
    max-width: 350px;
    background: linear-gradient(145deg, rgba(204,204,204,1) 0%, rgba(238,238,238,1) 25%, rgba(238,238,238,1) 100%);
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
    font-size: 0.9em;
}

.item-card-header-img {
    height: 100px;
    width: 100px;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
	.item-card {
		margin-left: auto;
		float: none;
	}
}

.item-card-header {
	display: flex;
	gap: 0.5em;
	font-size: 1.1em;
}

.item-card-header-tags {
	margin-top: 0.5em;
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
}

.item-card-description {
	border-bottom: 1px solid #ccc;
}