- SOL-465: Initial implementation of certificates web view and signatories (names/titles) - SOL-718 Close button is working properly - SOL-801 Backbone Signatories Modeling - SOL-803 Underscore template: Editor (Add) - SOL-802 Signatories: Underscore template - Details - SOL-804 Signatories: Underscore template: Editor (Edit) - Add signatory delete Django view - SOL-805 Signatory editor (Delete) - Add Coffeescript router - SOL-716 Jasmine Tests - Added missing minified JS library - client side validation of signatory fields - SOL-390 signatories names - Remove obsolete extends Sass files - input maxlength limiting for signatory information - SOL-389: Course title override - SOL-466: Add capability to upload digitized signatures in Studio - ziafazal: fixed css for upload signature image - ziafazal: completed deletion of signature images - UX-1741: Add initial static rendering/styling for Open edX web certs * creating new global static dir * adding static version of edX UX pattern library assets * adding web certificates static assets * adding static (+abstracted) web certificates rendering * creating two tiers of rendering (base + distinguished) * providing sample assets for certificate rendering * supporting RTL layouts * adding certifcates assests to edX static asset pipeline * temporarily hiding the mozilla open badges share action * wiring print button to print view/page * fixup! addressing conflict artifact in valid cert template * fixup! adding missing %hd-subsection sass extend + components comment clean up * fixup! correcting pattern library .hd-4 font-weight value - SOL-468 Linked Student View for Web View Credential - SOL-467: Add capability to upload organization logos for certificates - SOL-391 / SOL-387: Signatory related info (assets) in certificates web view - kelketek: Fixes for static asset collection in certificate HTML view. - SOL-398 Web View: Public Access - mattdrayer: Post-merge branch stabilization - catong: Initial changes to Studio template and Help config file - ziafazal: Branch stabilizations - SOL-387: Display organization logo on LMS web view - talbs/mattdrayer: Branch Stabilizations - talbs: converting backpack action to use a button HTML element - talbs: revising placeholder assets + their rendering in cert view - mattdrayer: Username web view wireup - SOL-386 Certificate Mode Previews - SOL-905: Make organization logo and signatory signature uneditable - SOL-922: Improve test coverage - SOL-765: Add LinkedIn sharing - [marco] temporary styling adjustment to account for smaller linkedin share image / fake button - SOL-921: Address hardcoded template items - SOL-927: Deleting certificate should delete org logo image also * updated invalid template * removed hr * fix invalid certificate error - clrux: Add i18n to certificate templates and partials - mattdrayer: Pylint violations - SOL-920 Certificate Activation/Deactivation - mattdrayer: Added LMS support - SOL-932: Fix preview mode support in certificate view - SOL-934: Fixed bug reported and broken tests - SOL-935 removed the 'valid' word from web view title - talbs: RTL support updates/fixes * revising certificate type icon/name vertical alignment * removing unused older certificate template * revising styling for message/banner actions * abstracting accomplishment type to use course mode + adding in honor/verified-specific placeholders - mattdrayer: JSHint violations
152 lines
4.2 KiB
SCSS
Executable File
152 lines
4.2 KiB
SCSS
Executable File
//////////////////////////////
|
|
// Converts the input value to Base EMs
|
|
//////////////////////////////
|
|
@function breakpoint-to-base-em($value) {
|
|
$value-unit: unit($value);
|
|
|
|
// Will convert relative EMs into root EMs.
|
|
@if breakpoint-get('base font size') and type-of(breakpoint-get('base font size')) == 'number' and $value-unit == 'em' {
|
|
$base-unit: unit(breakpoint-get('base font size'));
|
|
|
|
@if $base-unit == 'px' or $base-unit == '%' or $base-unit == 'em' or $base-unit == 'pt' {
|
|
@return base-conversion($value) / base-conversion(breakpoint-get('base font size')) * 1em;
|
|
}
|
|
@else {
|
|
@warn '#{breakpoint-get(\'base font size\')} is not set in valid units for font size!';
|
|
@return false;
|
|
}
|
|
}
|
|
@else {
|
|
@return base-conversion($value);
|
|
}
|
|
}
|
|
|
|
@function base-conversion($value) {
|
|
$unit: unit($value);
|
|
|
|
@if $unit == 'px' {
|
|
@return $value / 16px * 1em;
|
|
}
|
|
@else if $unit == '%' {
|
|
@return $value / 100% * 1em;
|
|
}
|
|
@else if $unit == 'em' {
|
|
@return $value;
|
|
}
|
|
@else if $unit == 'pt' {
|
|
@return $value / 12pt * 1em;
|
|
}
|
|
@else {
|
|
@return $value;
|
|
// @warn 'Everything is terrible! What have you done?!';
|
|
}
|
|
}
|
|
|
|
//////////////////////////////
|
|
// Returns whether the feature can have a min/max pair
|
|
//////////////////////////////
|
|
$breakpoint-min-max-features: 'color',
|
|
'color-index',
|
|
'aspect-ratio',
|
|
'device-aspect-ratio',
|
|
'device-height',
|
|
'device-width',
|
|
'height',
|
|
'monochrome',
|
|
'resolution',
|
|
'width';
|
|
|
|
@function breakpoint-min-max($feature) {
|
|
@each $item in $breakpoint-min-max-features {
|
|
@if $feature == $item {
|
|
@return true;
|
|
}
|
|
}
|
|
@return false;
|
|
}
|
|
|
|
//////////////////////////////
|
|
// Returns whether the feature can have a string value
|
|
//////////////////////////////
|
|
$breakpoint-string-features: 'orientation',
|
|
'scan',
|
|
'color',
|
|
'aspect-ratio',
|
|
'device-aspect-ratio',
|
|
'pointer',
|
|
'luminosity';
|
|
|
|
@function breakpoint-string-value($feature) {
|
|
@each $item in $breakpoint-string-features {
|
|
@if breakpoint-min-max($item) {
|
|
@if $feature == 'min-#{$item}' or $feature == 'max-#{$item}' {
|
|
@return true;
|
|
}
|
|
}
|
|
@else if $feature == $item {
|
|
@return true;
|
|
}
|
|
}
|
|
@return false;
|
|
}
|
|
|
|
//////////////////////////////
|
|
// Returns whether the feature is a media type
|
|
//////////////////////////////
|
|
$breakpoint-media-types: 'all',
|
|
'braille',
|
|
'embossed',
|
|
'handheld',
|
|
'print',
|
|
'projection',
|
|
'screen',
|
|
'speech',
|
|
'tty',
|
|
'tv';
|
|
|
|
@function breakpoint-is-media($feature) {
|
|
@each $media in $breakpoint-media-types {
|
|
@if ($feature == $media) or ($feature == 'not #{$media}') or ($feature == 'only #{$media}') {
|
|
@return true;
|
|
}
|
|
}
|
|
|
|
@return false;
|
|
}
|
|
|
|
//////////////////////////////
|
|
// Returns whether the feature can stand alone
|
|
//////////////////////////////
|
|
$breakpoint-single-string-features: 'color',
|
|
'color-index',
|
|
'grid',
|
|
'monochrome';
|
|
|
|
@function breakpoint-single-string($feature) {
|
|
@each $item in $breakpoint-single-string-features {
|
|
@if $feature == $item {
|
|
@return true;
|
|
}
|
|
}
|
|
@return false;
|
|
}
|
|
|
|
//////////////////////////////
|
|
// Returns whether the feature
|
|
//////////////////////////////
|
|
@function breakpoint-is-resolution($feature) {
|
|
$resolutions: 'device-pixel-ratio', 'dpr';
|
|
|
|
@if breakpoint-get('transform resolutions') {
|
|
$resolutions: append($resolutions, 'resolution');
|
|
}
|
|
|
|
@each $reso in $resolutions {
|
|
@if index($feature, $reso) or index($feature, 'min-#{$reso}') or index($feature, 'max-#{$reso}') {
|
|
@return true;
|
|
}
|
|
}
|
|
|
|
@return false;
|
|
}
|