Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

MUMUP-2898 Upgrade to latest version of UW-Frame #612

Merged
merged 4 commits into from
Apr 12, 2017
Merged
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
2 changes: 1 addition & 1 deletion angularjs-portal-home/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<groupId>edu.wisc.my.apps</groupId>
<artifactId>uw-frame</artifactId>
<type>war</type>
<version>3.1.5-SNAPSHOT</version>
<version>4.0.1-SNAPSHOT</version>
</dependency>

<!-- Test -->
Expand Down
308 changes: 2 additions & 306 deletions angularjs-portal-home/src/main/webapp/css/widget.less
Original file line number Diff line number Diff line change
@@ -1,265 +1,3 @@
// LIST OF LINKS
lol {
.list-of-links {
height: 194px;
padding: 0;

div[class^="list-of-links__"] {
height: 194px;
overflow: hidden;
display: flex;
flex-flow: row wrap;

&.list-of-links__1 {
justify-content: center;
align-items: center;
align-content: center;
}

&.list-of-links__2 {
justify-content: space-around;
align-items: baseline;
align-content: center;
padding: 40px 0;
}

&.list-of-links__3 {
justify-content: space-around;
align-items: baseline;
align-content: space-around;
}

&.list-of-links__4 {
justify-content: space-around;
align-items: baseline;
align-content: flex-start;
}

&.list-of-links__long {
justify-content: space-around;

.widget-list a:hover {
cursor: pointer;
}
}

circle-button {
width: 120px;
height: 88px;
text-align: center;
}
}
}
}

// OPTION LINK
option-link {
.widget-option-link {
height: 196px;
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
align-items: center;

.option-link-icon {
margin-bottom: 16px;

i {
color: @grayscale10;
font-size: 70px;
}
}

md-input-container {
margin: 0 0 18px;
}
}
}

// RSS
rss {
.rss {
overflow-y: hidden;
height: 194px;

.widget-list {
max-height: 194px;

li a {
div {
display: inline-block;
}

div.headline {
width: 80%;
font-size: 12px;
}

div.headline.nodate {
width: 100%;
}

div.date {
width: 18%;
font-size: 10px;
vertical-align: top;
}
}
}
}
}

// SEARCH WITH LINKS
swl {
md-input-container {
margin-top: 0;
padding-right: 16px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
align-content: flex-start;

.md-button {
margin: 0;
padding: 0;
}
}

div[class^="search-with-links__"] {
display: flex;
flex-direction: row;
justify-content: center;
align-items: baseline;
align-content: center;
width: 100%;

circle-button {
width: 120px;
height: 88px;
text-align: center;
}
}
}

// BASIC
.basic-widget {
height: 194px;
display: flex;
justify-content: center;
align-items: flex-start;
align-content: center;

.widget-icon-container {
padding-top: 40px;
}

&:hover {
text-decoration: none !important;
}
}

// CUSTOM
.custom-widget {
height: 194px;

md-input-container {
margin-top: 0;
margin-bottom: 0;
padding-right: 16px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
align-content: flex-start;
}
}

// WEATHER
weather {
.forecast .day {
text-align: center;
border-radius: 4px;
padding: 0 8px;

p {
font-size: 11px;
}
}

.fa-exclamation-triangle {
font-size: -webkit-xxx-large;
width: 100%;
text-align: center;
padding-bottom: 20px;
padding-top: 12px;
}

.warning-message-weather-widget {
text-align: -webkit-center;
padding: 20px;
}

.fa-frown-o {
font-size: 50px;
width: 100%;
text-align: center;
}

.error-message-weather-widget {
font-size: smaller;
text-align: center;
}

img {
width: 42px;
position: relative;
right: 1px;
}

a {
color: #666;
}

.credit {
position: absolute;
font-size: 9px;
right: 0;

a {
color: @color1;

&:hover {
text-decoration: underline;
}
}
}

.weather-dropdown {
position: absolute;
bottom: 39px;
left: 12px;
font-size: 10px;
}

.weather-not-clicked {
color: #b70101;
}

@media (max-width: 1246px) {
.weather-dropdown {
right: 20px;
}
}

@media (max-width: 1200px) {
.weather-dropdown {
right: 30px;
}
}
}

// WIDGET CREATOR
.widget-creator {
.portlet-body {
Expand Down Expand Up @@ -306,48 +44,6 @@ weather {
}
}

.scroll-widget {
max-height: 210px;
overflow-y: scroll;
}

.fixed-width-widget {
width: 315px;
}

.widget-middle {
width: 315px;
margin: auto;
}

// MAINTENANCE MODE
.widget-frame {
.overlay__maintenance-mode {
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 99;
border-radius: 3px;

.maintenance-content {
text-align: center;
font-weight: bold;
padding: 10px;
background: #fff;
margin: 66px 10px 0;
display: block;
border-radius: 3px;

p {
margin-bottom: 0;

.material-icons {
height: 40px;
width: 40px;
font-size: 40px;
}
}
}
}
&.widget-remove {
right: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ define(['angular', 'require'], function(angular, require) {
};
});

app.directive('defaultCard', function() {
return {
restrict: 'E',
templateUrl: require.toUrl('./partials/default-card.html'),
};
});

app.directive('marketplaceLight', function() {
return{
restrict: 'E',
Expand All @@ -39,6 +32,14 @@ define(['angular', 'require'], function(angular, require) {
};
});

app.directive('removeButton', function() {
return {
restrict: 'E',
controller: 'LayoutController',
templateUrl: require.toUrl('./partials/remove-button.html'),
};
});

return app;
});

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<md-button ng-controller="LayoutController as layoutCtrl" class="widget-action widget-remove md-icon-button"
aria-label="remove {{ portlet.fname }} widget from your home screen"
ng-click="layoutCtrl.removePortlet(portlet.nodeId, portlet.fname)"
ng-hide="GuestMode || portlet.lifecycleState === 'MAINTENANCE'">
<md-icon>close</md-icon>
</md-button>
Loading