Template:Quote/styles.css: Difference between revisions

From Extremely Corporate Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 5: Line 5:
.ec-quote-source {
.ec-quote-source {
   font-size: 0.7em;
   font-size: 0.7em;
   text-align: center;
   text-align: right;
   max-width: 6em;
   width: 100%;
}
}


.ec-quote-source img {
.ec-quote-img img {
   width: 6em;
   width: 3em;
   height: 6em;
   height: 3em;
   border-radius: 50%;
   border-radius: 50%;
   display: block;
   display: block;
  margin: auto;
  margin-top: 0.1em;
}
}


.ec-quote-box {
.ec-quote-box {
  border: 2px solid #aaa;
  border-radius: 0.2em;
   padding: 0.3em 1em;
   padding: 0.3em 1em;
   margin-left: 1em;
   margin-left: 1em;
   height: min-content;
   height: min-content;
  position: relative;
}
}


.ec-quote-box::before {
@media screen {
  content: "";
.ec-quote-box {
  display: inline-block;
border: 1px solid #aaa;
  border: 1ch solid;
border-radius: 0.4em;
  border-color: transparent #aaa transparent transparent;
background: white;
  margin-left: -2.2em;
}
  position: absolute;
.ec-quote-box::before {
z-index: -1;
content: "";
display: block;
border: 1ch solid;
border-color: transparent;
border-right-color: inherit;
margin-left: calc(-1em - 1px);
position: absolute;
left: 0;
margin-top: 0.7em;
}
}
 
.ec-quote-text {
margin: 0;
border: none;
padding: 0;
}
}

Latest revision as of 14:19, 14 April 2023

.ec-quote {
  display:flex;
}

.ec-quote-source {
  font-size: 0.7em;
  text-align: right;
  width: 100%;
}

.ec-quote-img img {
  width: 3em;
  height: 3em;
  border-radius: 50%;
  display: block;
  margin: auto;
  margin-top: 0.1em;
}

.ec-quote-box {
  padding: 0.3em 1em;
  margin-left: 1em;
  height: min-content;
  position: relative;
}

@media screen {
	.ec-quote-box {
		border: 1px solid #aaa;
		border-radius: 0.4em;
		background: white;
	}
	
	.ec-quote-box::before {
		z-index: -1;
		content: "";
		display: block;
		border: 1ch solid;
		border-color: transparent;
		border-right-color: inherit;
		margin-left: calc(-1em - 1px);
		position: absolute;
		left: 0;
		margin-top: 0.7em;
	}
}

.ec-quote-text {
	margin: 0;
	border: none;
	padding: 0;
}