mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-25 13:54:59 -05:00
Use the same class name, use tag selector for styling
This commit is contained in:
parent
116d640fdd
commit
c039a29189
2 changed files with 18 additions and 21 deletions
|
@ -33,7 +33,7 @@ const StudioDescription = ({
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div className="studio-info-section">
|
<div className="studio-info-section">
|
||||||
{ canEditInfo ? (
|
{canEditInfo ? (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<textarea
|
<textarea
|
||||||
rows="20"
|
rows="20"
|
||||||
|
@ -49,7 +49,7 @@ const StudioDescription = ({
|
||||||
/>}
|
/>}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
) : (
|
) : (
|
||||||
<div className="studio-description studio-description-text">
|
<div className={fieldClassName}>
|
||||||
{decorateText(description, {
|
{decorateText(description, {
|
||||||
usernames: true,
|
usernames: true,
|
||||||
hashtags: false,
|
hashtags: false,
|
||||||
|
|
|
@ -48,18 +48,6 @@ $radius: 8px;
|
||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
|
||||||
.studio-title, .studio-description {
|
|
||||||
background: transparent;
|
|
||||||
margin: 0 -8px; /* Outset the border horizontally */
|
|
||||||
padding: 5px 8px;
|
|
||||||
border: 2px dashed $ui-blue-25percent;
|
|
||||||
border-radius: $radius;
|
|
||||||
resize: none;
|
|
||||||
width: 300px;
|
|
||||||
|
|
||||||
&:disabled { border-color: transparent; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.studio-info-section {
|
.studio-info-section {
|
||||||
position: relative;
|
position: relative;
|
||||||
.validation-message {
|
.validation-message {
|
||||||
|
@ -72,20 +60,29 @@ $radius: 8px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.studio-title:disabled {
|
.studio-description {
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.studio-description:disabled, .studio-description-text {
|
|
||||||
background: $ui-blue-10percent;
|
background: $ui-blue-10percent;
|
||||||
}
|
padding: 15px 20px;
|
||||||
.studio-description-text {
|
border-color: transparent;
|
||||||
|
border-radius: $radius;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
|
width: 300px;
|
||||||
|
box-sizing: border-box;
|
||||||
height: 24rem;
|
height: 24rem;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Overrides for when title and description are editable textareas */
|
||||||
|
textarea.studio-title, textarea.studio-description {
|
||||||
|
background: transparent;
|
||||||
|
padding: 5px 8px;
|
||||||
|
border: 2px dashed $ui-blue-25percent;
|
||||||
|
border-radius: $radius;
|
||||||
|
resize: none;
|
||||||
|
width: 300px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
.studio-follow-button {
|
.studio-follow-button {
|
||||||
padding-top: 14px;
|
padding-top: 14px;
|
||||||
padding-bottom: 14px;
|
padding-bottom: 14px;
|
||||||
|
|
Loading…
Reference in a new issue