Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI changes #10165

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 43 additions & 12 deletions src/style/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@
box-sizing: border-box;
}

.opblock-tag-section
{
display: flex;
flex-direction: column;
.opblock-tag-section {
display: flex;
flex-direction: column;
border: 1px solid $opblock-border-color;
border-radius: 6px;
overflow: hidden;
margin-bottom: 15px;

&.is-open
{
.opblock-tag
{
border-bottom: 1px solid $opblock-border-color;
}
}

.no-margin {
padding: 10px;
}
}

.try-out.btn-group {
Expand All @@ -32,12 +47,11 @@

cursor: pointer;
transition: all .2s;

border-bottom: 1px solid rgba($opblock-tag-border-bottom-color, .3);
background: rgba($opblock-tag-background-color, .9);

&:hover
{
background: rgba($opblock-tag-background-color-hover,.02);
background: rgba($opblock-tag-background-color, 1);
}
}

Expand Down Expand Up @@ -69,7 +83,7 @@
{
font-size: 24px;

margin: 0 0 5px 0;
margin: 0;

@include text_headline();

Expand Down Expand Up @@ -122,6 +136,26 @@
.info__externaldocs
{
text-align: right;

small
{
a
{
display: inline-block;
border-radius: 4px;
color: #7878bd;
padding: 5px 10px;
border: 2px solid #9c9cdf;
transition: all .2s;

&:hover
{
color: #f1f1f1;
background: #9c9cdf;
text-decoration: underline;
}
}
}
}
}

Expand Down Expand Up @@ -198,11 +232,8 @@

.opblock
{
margin: 0 0 15px 0;

border: 1px solid $opblock-border-color;
margin: 0 0 10px 0;
border-radius: 4px;
box-shadow: 0 0 3px rgba($opblock-box-shadow-color,.19);

.tab-header
{
Expand Down
4 changes: 3 additions & 1 deletion src/style/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $gray-700: lighten($black, 31.25%) !default; // #505050
$gray-800: lighten($black, 25%) !default; // #404040
$gray-900: lighten($black, 18.75%) !default; // #303030

$tuned-gray: #bfbfbf !default;
$cod-gray: #1b1b1b !default;
$agate-gray: #333333 !default;
$bright-gray: #3b4151 !default;
Expand Down Expand Up @@ -120,10 +121,11 @@ $info-title-small-pre-font-color: $white !default;

// Layout

$opblock-border-color: $black !default;
$opblock-border-color: $tuned-gray !default;
$opblock-box-shadow-color: $black !default;

$opblock-tag-border-bottom-color: $bright-gray !default;
$opblock-tag-background-color: $white !default;
$opblock-tag-background-color-hover: $black !default;

$opblock-tab-header-tab-item-active-h4-span-after-background-color: $gray-400 !default;
Expand Down