Skip to content

Commit

Permalink
refactor: styles refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Oct 15, 2024
1 parent 43ab03e commit e64c249
Show file tree
Hide file tree
Showing 6 changed files with 685 additions and 105 deletions.
7 changes: 7 additions & 0 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,13 @@
],
'output_filename': 'css/cms-style-xmodule-annotations.css',
},
'my_new_bundle': {
'source_filenames': [
'css/my_new_bundle.css',
],
'output_filename': 'css/my_new_bundle.css',
},

}

base_vendor_js = [
Expand Down
3 changes: 3 additions & 0 deletions cms/static/images/pencil-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 0 additions & 105 deletions cms/static/sass/elements/_xblocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1074,108 +1074,3 @@ div.wrapper-comp-editor.is-inactive ~ div.launch-latex-compiler {
padding: ($baseline / 2) 0 ($baseline * 0.4);
}
}


body .wrapper-xblock .xblock-header-primary .header-details .xblock-display-name {
font-size: 22px;
line-height: 28px;
font-weight: 700;
color: #000;
}

.wrapper-xblock .xblock-header-primary {
padding: 24px;
padding-bottom: 12px;
}

.wrapper-xblock {
background-color: transparent;
border-radius: 6px;
border: none;

&:hover {
border-color: none;
}
}

.wrapper-xblock.level-element {
box-shadow: 0 .125rem .25rem rgba(0,0,0,.15),0 .125rem .5rem rgba(0,0,0,.15);
}

.wrapper-xblock.level-element .xblock-header-primary {
background-color: #fff;
}

.view-container .content-primary {
background-color: transparent !important;
width: 100% !important;
}

.wrapper-xblock.level-element .xblock-render {
background: #fff;
margin: 0;
padding: 24px;
padding-top: 12px;
}

.action-edit {
.action-button-text {
display: none;
}

.edit-button.action-button {
width: 44px;
height: 44px;
border-radius: 50% !important;

&:hover {
background-color: #00262B;
}

&:focus {
outline: 2px rgba(0,0,0,0);
background-color: rgba(0,0,0,0);
box-shadow: inset 0 0 0 2px #00262b;
}
}
}

.wrapper-xblock .wrapper-xblock .header-actions .actions-list .action-item .action-button {
width: 44px;
height: 44px;
border-radius: 50%;

&:hover {
background-color: #00262B;
}

&:focus {
outline: 2px rgba(0,0,0,0);
background-color: rgba(0,0,0,0);
box-shadow: inset 0 0 0 2px #00262b;
}
}

body .nav-dd .nav-sub {
box-shadow: 0px 4px 10px 0px rgba(0,0,0,.15),0px 8px 16px 0px rgba(0,0,0,.15);
border-radius: .375rem;
padding: 10px 0;
border: none;

.nav-item {
padding: .625rem 1rem;
border-bottom: none;
color: #212529;
font-size: 18px;

&:hover {
background-color: #f2f0ef;
color: #212529;
}

&:active {
background-color: #00262b;
color: #fff;
}
}
}
Loading

0 comments on commit e64c249

Please sign in to comment.