Browse Source

Merge pull request #2740 from Minasokoni/style-updates

Error styling updates / added missing operation colors
bubble
shockey 7 years ago
committed by GitHub
parent
commit
81be6d08a6
3 changed files with 21 additions and 7 deletions
  1. +0
    -6
      src/core/components/operations.jsx
  2. +6
    -1
      src/style/_errors.scss
  3. +15
    -0
      src/style/_layout.scss

+ 0
- 6
src/core/components/operations.jsx View File

@@ -59,12 +59,6 @@ export default class Operations extends React.Component {
</small> </small>
} }


<button className="expand-methods" title="Expand all methods">
<svg className="expand" width="20" height="20">
<use xlinkHref="#expand" />
</svg>
</button>

<button className="expand-operation" title="Expand operation" onClick={() => layoutActions.show(isShownKey, !showTag)}> <button className="expand-operation" title="Expand operation" onClick={() => layoutActions.show(isShownKey, !showTag)}>
<svg className="arrow" width="20" height="20"> <svg className="arrow" width="20" height="20">
<use xlinkHref={showTag ? "#large-arrow-down" : "#large-arrow"} /> <use xlinkHref={showTag ? "#large-arrow-down" : "#large-arrow"} />


+ 6
- 1
src/style/_errors.scss View File

@@ -9,13 +9,18 @@
border-radius: 4px; border-radius: 4px;
background: rgba($_color-delete, .1); background: rgba($_color-delete, .1);


.error-wrapper
{
margin: 0 0 10px 0;
}

.errors .errors
{ {
h4 h4
{ {
font-size: 14px; font-size: 14px;


margin: 0 0 10px 0;
margin: 0;


@include text_code(); @include text_code();
} }


+ 15
- 0
src/style/_layout.scss View File

@@ -286,6 +286,21 @@ body
@include method($_color-get); @include method($_color-get);
} }


&.opblock-patch
{
@include method($_color-patch);
}

&.opblock-head
{
@include method($_color-head);
}

&.opblock-options
{
@include method($_color-options);
}

&.opblock-deprecated &.opblock-deprecated
{ {
opacity: .6; opacity: .6;


Loading…
Cancel
Save