Skip to content

Commit

Permalink
Refactor styles in authoring extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Dec 20, 2024
1 parent aca5ad1 commit ef18a49
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 59 deletions.
57 changes: 0 additions & 57 deletions packages/authoring-celltoolbar-extension/style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,3 @@
--e2x-dark-blue: #005d92;
--e2x-gray: #eee;
}

.jp-Cell-header {
height: auto;
}

.e2x-authoring-celltoolbar {
border: 0.5px solid var(--e2x-blue);
border-radius: 5px;
}

.e2x-authoring-toolbar-standard-cell {
background: var(--e2x-gray);
color: black;
}

.e2x-authoring-toolbar-grading-cell {
background: var(--e2x-dark-blue);
color: white;
}

.e2x-authoring-toolbar {
margin-left: calc(
var(--jp-cell-prompt-width) + var(--jp-code-padding) + 3 *
var(--jp-border-width)
);
min-height: 30px;
width: calc(
100% -
calc(
var(--jp-cell-prompt-width) + var(--jp-code-padding) + 3 *
var(--jp-border-width)
)
);
border-radius: 10px 10px 0 0;
border-bottom: none;
padding: 2px 10px 2px 10px;
}

.e2x-authoring-toolbar .jp-InputGroup {
background: white;
}

.e2x-points-input {
width: 8em;
}

.e2x-authoring-toolbar-element {
margin-right: 10px;
}

.e2x-authoring-toolbar-element label {
margin-right: 5px;
}

#grading-cell-type {
background: white;
}
51 changes: 51 additions & 0 deletions packages/authoring-celltoolbar-extension/style/celltoolbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.jp-Cell-header {
height: auto;
}

.e2x-authoring-toolbar-standard-cell {
background: var(--e2x-gray);
color: black;
}

.e2x-authoring-toolbar-grading-cell {
background: var(--e2x-dark-blue);
color: white;
}

.e2x-authoring-toolbar {
margin-left: calc(
var(--jp-cell-prompt-width) + var(--jp-code-padding) + 3 *
var(--jp-border-width)
);
min-height: 30px;
width: calc(
100% -
calc(
var(--jp-cell-prompt-width) + var(--jp-code-padding) + 3 *
var(--jp-border-width)
)
);
border-radius: 10px 10px 0 0;
border-bottom: none;
padding: 2px 10px;
}

.e2x-points-input {
width: 8em;
}

.e2x-authoring-toolbar-element {
margin-right: 10px;
}

.e2x-authoring-toolbar-element label {
margin-right: 5px;
}

.e2x-authoring-toolbar .jp-InputGroup {
background: white;
}

.e2x-authoring-toolbar-element .jp-HTMLSelect {
background: white;
}
4 changes: 3 additions & 1 deletion packages/authoring-celltoolbar-extension/style/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import url('base.css');
@import url('./base.css');
@import url('./menubar.css');
@import url('./celltoolbar.css');
2 changes: 1 addition & 1 deletion packages/authoring-celltoolbar-extension/style/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './base.css';
import './index.css';
11 changes: 11 additions & 0 deletions packages/authoring-celltoolbar-extension/style/menubar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.e2x-menubar {
background: var(--e2x-blue);
}

.e2x-menubar:hover {
background: var(--e2x-light-blue);
}

.e2x-menubar .lm-mod-active {
background: var(--e2x-light-blue);
}

0 comments on commit ef18a49

Please sign in to comment.