Skip to content

Commit

Permalink
Merge pull request #3141 from PenghaiZhang/feature/support-kaltura-cs…
Browse files Browse the repository at this point in the history
…s-in-new-ui

refactor: update Kaltura TS Upload control CSS styles
  • Loading branch information
PenghaiZhang committed Jun 25, 2021
1 parent 4653205 commit ec4f89d
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions Source/Plugins/Core/com.equella.core/resources/web/sass/legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,30 @@ $savePanelWidth: 221px;
padding-left: $width;
}

@mixin standardButton {
@include curvedCorners;
padding: 0 $singleMargin 0 $singleMargin;
display: inline-flex;
position: relative;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-width: 64px;
border: none;
outline: none;
cursor: pointer;
background-color: $primaryColor;
color: set-text-color($primaryColor);
@include typography-button();

&:hover {
background-color: transparentize($primaryColor, 0.1);
}
&:active {
background-color: transparentize($primaryColor, 0.3);
}
}

/*****************************************************************************
Animations
*****************************************************************************/
Expand Down Expand Up @@ -420,27 +444,7 @@ Buttons
*****************************************************************************/

.btn {
@include curvedCorners;
padding: 0 $singleMargin 0 $singleMargin;
display: inline-flex;
position: relative;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-width: 64px;
border: none;
outline: none;
cursor: pointer;
background-color: $primaryColor;
color: set-text-color($primaryColor);
@include typography-button();

&:hover {
background-color: transparentize($primaryColor, 0.1);
}
&:active {
background-color: transparentize($primaryColor, 0.3);
}
@include standardButton;
}

.button-expandable {
Expand Down Expand Up @@ -4324,6 +4328,13 @@ a.modal-control.modal-save {
padding-right: $singleMargin;
margin-left: $singleMargin;
}

#kaltura-simple-uploader {
input[type="submit"],
button {
@include standardButton;
}
}
}

.fileHandler,
Expand Down

0 comments on commit ec4f89d

Please sign in to comment.