Salvatore La Manna
4 anni fa
1 ha cambiato i file con 315 aggiunte e 315 eliminazioni
@ -1,316 +1,316 @@
|
||||
<%-- |
||||
/** |
||||
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
--%> |
||||
|
||||
|
||||
<%@page import="com.liferay.portal.kernel.json.JSONException"%> |
||||
<%@page import="com.liferay.portal.kernel.util.Validator"%> |
||||
<%@page import="com.liferay.portal.kernel.json.JSONFactoryUtil"%> |
||||
<%@page import="com.liferay.portal.kernel.json.JSONObject"%> |
||||
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> |
||||
|
||||
|
||||
|
||||
<table class="table table-striped attivita-table" <%-- id="<portlet:namespace/>_<%= workflowLog.getType() %>" --%>> |
||||
<thead class="table-columns attivita-group__head"> |
||||
<tr> |
||||
<th class="head-date text-center">Data</th> |
||||
<th class="head-description">Descrizione</th> |
||||
<th class="head-activity text-center">Attività</th> |
||||
<th class="head-comment text-center">Commento</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody class="attivita-group__body"> |
||||
<% |
||||
|
||||
//ADT: bug bo id=33 |
||||
Map<Long,String> historyWorkflowEsitiLogs = (Map<Long,String>)request.getAttribute("historyWorkflowEsitiLogs"); |
||||
|
||||
for (WorkflowLog workflowLog : workflowLogs) { |
||||
Role curRole = null; |
||||
User curUser = null; |
||||
String actorName = null; |
||||
|
||||
if (workflowLog.getRoleId() != 0) { |
||||
curRole = RoleLocalServiceUtil.getRole(workflowLog.getRoleId()); |
||||
actorName = curRole.getDescriptiveName(); |
||||
} |
||||
else if (workflowLog.getUserId() != 0) { |
||||
curUser = UserLocalServiceUtil.getUser(workflowLog.getUserId()); |
||||
actorName = curUser.getFullName(); |
||||
} |
||||
String kaleoNodeName = null; |
||||
String transitionName = null; |
||||
|
||||
try { |
||||
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(workflowLog.getState()); |
||||
kaleoNodeName = jsonObject.getString("kaleoNodeName"); |
||||
transitionName = jsonObject.getString("transitionName"); |
||||
} catch (JSONException e) { |
||||
kaleoNodeName = workflowLog.getState(); |
||||
} |
||||
|
||||
%> |
||||
|
||||
|
||||
|
||||
|
||||
<tr> |
||||
<td class="text-center date-col"> |
||||
<%= dateFormatDateTime.format(workflowLog.getCreateDate()) %> |
||||
</td> |
||||
<td class="description-col"> |
||||
<c:choose> |
||||
<c:when test="<%= workflowLog.getType() == WorkflowLog.TASK_COMPLETION %>"> |
||||
|
||||
<div> |
||||
<c:choose> |
||||
<c:when test="<%= Validator.isNull(transitionName) %>"> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName} %>" key="x-completed-the-task-x" /> |
||||
</c:when> |
||||
<c:otherwise> |
||||
<c:if test='<%= "registra-esito".equalsIgnoreCase(transitionName) %>'> |
||||
<% |
||||
//ADT: bug bo id=33 |
||||
String esito = (String)request.getAttribute("registra-esito-value"); |
||||
if (historyWorkflowEsitiLogs!=null&& historyWorkflowEsitiLogs.containsKey(workflowLog.getWorkflowLogId()) ){ |
||||
esito=historyWorkflowEsitiLogs.get(workflowLog.getWorkflowLogId()); |
||||
} |
||||
%> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName, esito} %>" key="x-completed-the-task-y-z" /> |
||||
</c:if> |
||||
<c:if test='<%= "assegna".equalsIgnoreCase(transitionName) %>'> |
||||
<% |
||||
String assegna = (String)request.getAttribute("assegna-value"); |
||||
%> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName, assegna} %>" key="x-completed-the-task-y-z" /> |
||||
</c:if> |
||||
<c:if test='<%= !"assegna".equalsIgnoreCase(transitionName) && !"registra-esito".equalsIgnoreCase(transitionName) %>'> |
||||
|
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName} %>" key="x-completed-the-task-x" /> |
||||
</c:if> |
||||
</c:otherwise> |
||||
</c:choose> |
||||
|
||||
<portlet:renderURL var="historyFormTaskURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> |
||||
<portlet:param name="struts_action" value="/workflow_tasks/render_history_form_task" /> |
||||
<portlet:param name="workflowTaskId" value="<%= StringUtil.valueOf(workflowLog.getWorkflowTaskId()) %>" /> |
||||
</portlet:renderURL> |
||||
|
||||
<span> </span> |
||||
|
||||
<liferay-ui:icon |
||||
image="history" |
||||
url='<%=historyFormTaskURL %>' |
||||
useDialog='<%=true %>' |
||||
/> |
||||
|
||||
</div> |
||||
</c:when> |
||||
<c:when test="<%= workflowLog.getType() == WorkflowLog.TASK_UPDATE %>"> |
||||
<div> |
||||
<liferay-ui:message arguments="<%= HtmlUtil.escape(actorName) %>" key="x-updated-the-due-date" /> |
||||
</div> |
||||
</c:when> |
||||
<c:when test="<%= workflowLog.getType() == WorkflowLog.TRANSITION %>"> |
||||
<div> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), workflowLog.getState()} %>" key="x-sent-signal-x" /> |
||||
</div> |
||||
</c:when> |
||||
<c:otherwise> |
||||
<c:choose> |
||||
<c:when test="<%= (curUser != null) && (workflowLog.getAuditUserId() == curUser.getUserId()) %>"> |
||||
<div> |
||||
<liferay-ui:message arguments="<%= HtmlUtil.escape(curUser.getFullName()) %>" key='<%= curUser.isMale() ? "x-assigned-the-task-to-himself" : "x-assigned-the-task-to-herself" %>' /> |
||||
</div> |
||||
</c:when> |
||||
<c:otherwise> |
||||
|
||||
<% |
||||
if (curRole == null) { |
||||
String assignerName = PortalUtil.getUserName(workflowLog.getAuditUserId(), StringPool.BLANK); |
||||
%> |
||||
|
||||
<div> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(assignerName), HtmlUtil.escape(actorName)} %>" key="x-assigned-the-task-to-x" /> |
||||
|
||||
<c:if test="<%= workflowLog.getPreviousUserId() != 0 %>"> |
||||
<liferay-ui:message arguments="<%= PortalUtil.getUserName(workflowLog.getPreviousUserId(), StringPool.BLANK) %>" key="previous-assignee-was-x" /> |
||||
</c:if> |
||||
</div> |
||||
|
||||
<% |
||||
} |
||||
else { |
||||
%> |
||||
|
||||
<div> |
||||
<liferay-ui:message arguments="<%= HtmlUtil.escape(actorName) %>" key="task-initially-assigned-to-the-x-role" /> |
||||
</div> |
||||
|
||||
<% |
||||
} |
||||
%> |
||||
|
||||
</c:otherwise> |
||||
</c:choose> |
||||
</c:otherwise> |
||||
</c:choose> |
||||
</td> |
||||
<td class="text-center activity-col"> |
||||
<% |
||||
if(Validator.isNotNull(kaleoNodeName)){ |
||||
out.print(kaleoNodeName); |
||||
if(Validator.isNotNull(transitionName)){ |
||||
if("registra-esito".equalsIgnoreCase(transitionName)){ |
||||
//out.print(" ( " + (String)request.getAttribute("registra-esito-value") + " ) "); |
||||
//ADT BUG BO ID=33 |
||||
String esito = (String)request.getAttribute("registra-esito-value"); |
||||
if (historyWorkflowEsitiLogs!=null&& historyWorkflowEsitiLogs.containsKey(workflowLog.getWorkflowLogId()) ){ |
||||
esito=historyWorkflowEsitiLogs.get(workflowLog.getWorkflowLogId()); |
||||
} |
||||
out.print(" ( " + esito + " ) "); |
||||
|
||||
|
||||
} else if("assegna".equalsIgnoreCase(transitionName)){ |
||||
out.print(" ( " + (String)request.getAttribute("assegna-value") + " ) "); |
||||
} |
||||
|
||||
} |
||||
} |
||||
%> |
||||
</td> |
||||
<td class="activity-note"> |
||||
|
||||
<c:if test='<%=Validator.isNotNull(workflowLog.getComment()) && !"Assigned initial task.".equals(workflowLog.getComment()) %>'> |
||||
<div class="post-it-note"> |
||||
<div class="header-post-it"> |
||||
<p class="header-post-it_date"><%= dateFormatDateTime.format(workflowLog.getCreateDate()) %></p> |
||||
<p class="header-post-it_name"> |
||||
<c:if test="<%=Validator.isNotNull(curUser) %>"> |
||||
<%= curUser.getFullName() %> |
||||
</c:if> |
||||
</p> |
||||
</div> |
||||
<div class="body-post-it"> |
||||
<%= HtmlUtil.escape(workflowLog.getComment()) %> |
||||
</div> |
||||
</div> |
||||
</c:if> |
||||
|
||||
</td> |
||||
|
||||
</tr> |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<%-- <div class="task-activity task-type-<%= workflowLog.getType() %>"> |
||||
|
||||
|
||||
|
||||
|
||||
<div> |
||||
|
||||
</div> |
||||
</div> --%> |
||||
|
||||
<% |
||||
} |
||||
%> |
||||
</tbody> |
||||
</table> |
||||
|
||||
|
||||
|
||||
<style> |
||||
.head-date { |
||||
width: 120px; |
||||
} |
||||
.head-description { |
||||
width: 60%; |
||||
} |
||||
.head-activity { |
||||
width: 150px; |
||||
} |
||||
.head-comment { |
||||
width: 40%; |
||||
} |
||||
.attivita-table { |
||||
overflow: auto!important; |
||||
table-layout: fixed; |
||||
} |
||||
.attivita-table thead th { |
||||
background-color: #812121!important; |
||||
color: white; |
||||
} |
||||
|
||||
.attivita-table td { |
||||
border: 1px solid #dddddd; |
||||
} |
||||
.activity-note { |
||||
padding-bottom: 40px!important; |
||||
} |
||||
.post-it-note { |
||||
min-width: 13em; |
||||
background: rgb(255,215,7); |
||||
position: relative; |
||||
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */ |
||||
} |
||||
.post-it-note:after { |
||||
content: ""; |
||||
position: absolute; |
||||
bottom: -2em; |
||||
left: 0; |
||||
right: 2em; |
||||
border-width: 1em; |
||||
border-style: solid; |
||||
border-color: rgb(255,215,7); |
||||
} |
||||
.post-it-note:before { |
||||
content: ""; |
||||
position: absolute; |
||||
bottom: -2em; |
||||
right: 0; |
||||
border-width: 2em 2em 0 0; |
||||
border-style: solid; |
||||
border-color: #d3b100 transparent; |
||||
} |
||||
|
||||
.header-post-it { |
||||
background-color: rgba(211, 177, 0, 0.30); |
||||
display: -webkit-box; |
||||
display: -ms-flexbox; |
||||
display: flex; |
||||
-webkit-box-align: center; |
||||
-ms-flex-align: center; |
||||
align-items: center; |
||||
-webkit-box-pack: justify; |
||||
-ms-flex-pack: justify; |
||||
justify-content: space-between; |
||||
padding: 5px; |
||||
|
||||
} |
||||
.header-post-it p { |
||||
margin: 0; |
||||
padding: 0; |
||||
font-weight: bold; |
||||
font-size: 12px; |
||||
} |
||||
.body-post-it { |
||||
padding: 5px 10px 0px 10px; |
||||
} |
||||
<%-- |
||||
/** |
||||
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
--%> |
||||
|
||||
|
||||
<%@page import="com.liferay.portal.kernel.json.JSONException"%> |
||||
<%@page import="com.liferay.portal.kernel.util.Validator"%> |
||||
<%@page import="com.liferay.portal.kernel.json.JSONFactoryUtil"%> |
||||
<%@page import="com.liferay.portal.kernel.json.JSONObject"%> |
||||
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> |
||||
|
||||
|
||||
|
||||
<table class="table table-striped attivita-table" <%-- id="<portlet:namespace/>_<%= workflowLog.getType() %>" --%>> |
||||
<thead class="table-columns attivita-group__head"> |
||||
<tr> |
||||
<th class="head-date text-center">Data</th> |
||||
<th class="head-description">Descrizione</th> |
||||
<th class="head-activity text-center">Attività</th> |
||||
<th class="head-comment text-center">Commento</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody class="attivita-group__body"> |
||||
<% |
||||
|
||||
//ADT: bug bo id=33 |
||||
Map<Long,String> historyWorkflowEsitiLogs = (Map<Long,String>)request.getAttribute("historyWorkflowEsitiLogs"); |
||||
|
||||
for (WorkflowLog workflowLog : workflowLogs) { |
||||
Role curRole = null; |
||||
User curUser = null; |
||||
String actorName = null; |
||||
|
||||
if (workflowLog.getRoleId() != 0) { |
||||
curRole = RoleLocalServiceUtil.getRole(workflowLog.getRoleId()); |
||||
actorName = curRole.getDescriptiveName(); |
||||
} |
||||
else if (workflowLog.getUserId() != 0) { |
||||
curUser = UserLocalServiceUtil.getUser(workflowLog.getUserId()); |
||||
actorName = curUser.getFullName(); |
||||
} |
||||
String kaleoNodeName = null; |
||||
String transitionName = null; |
||||
|
||||
try { |
||||
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(workflowLog.getState()); |
||||
kaleoNodeName = jsonObject.getString("kaleoNodeName"); |
||||
transitionName = jsonObject.getString("transitionName"); |
||||
} catch (JSONException e) { |
||||
kaleoNodeName = workflowLog.getState(); |
||||
} |
||||
|
||||
%> |
||||
|
||||
|
||||
|
||||
|
||||
<tr> |
||||
<td class="text-center date-col"> |
||||
<%= dateFormatDateTime.format(workflowLog.getCreateDate()) %> |
||||
</td> |
||||
<td class="description-col"> |
||||
<c:choose> |
||||
<c:when test="<%= workflowLog.getType() == WorkflowLog.TASK_COMPLETION %>"> |
||||
|
||||
<div> |
||||
<c:choose> |
||||
<c:when test="<%= Validator.isNull(transitionName) %>"> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName} %>" key="x-completed-the-task-x" /> |
||||
</c:when> |
||||
<c:otherwise> |
||||
<c:if test='<%= "registra-esito".equalsIgnoreCase(transitionName) %>'> |
||||
<% |
||||
//ADT: bug bo id=33 |
||||
String esito = (String)request.getAttribute("registra-esito-value"); |
||||
if (historyWorkflowEsitiLogs!=null&& historyWorkflowEsitiLogs.containsKey(workflowLog.getWorkflowLogId()) ){ |
||||
esito=historyWorkflowEsitiLogs.get(workflowLog.getWorkflowLogId()); |
||||
} |
||||
%> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName, esito} %>" key="x-completed-the-task-y-z" /> |
||||
</c:if> |
||||
<c:if test='<%= "assegna".equalsIgnoreCase(transitionName) %>'> |
||||
<% |
||||
String assegna = (String)request.getAttribute("assegna-value"); |
||||
%> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName, assegna} %>" key="x-completed-the-task-y-z" /> |
||||
</c:if> |
||||
<c:if test='<%= !"assegna".equalsIgnoreCase(transitionName) && !"registra-esito".equalsIgnoreCase(transitionName) %>'> |
||||
|
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), kaleoNodeName} %>" key="x-completed-the-task-x" /> |
||||
</c:if> |
||||
</c:otherwise> |
||||
</c:choose> |
||||
|
||||
<portlet:renderURL var="historyFormTaskURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> |
||||
<portlet:param name="struts_action" value="/workflow_tasks/render_history_form_task" /> |
||||
<portlet:param name="workflowTaskId" value="<%= StringUtil.valueOf(workflowLog.getWorkflowTaskId()) %>" /> |
||||
</portlet:renderURL> |
||||
|
||||
<span> </span> |
||||
|
||||
<liferay-ui:icon |
||||
image="history" |
||||
url='<%=historyFormTaskURL %>' |
||||
useDialog='<%=true %>' |
||||
/> |
||||
|
||||
</div> |
||||
</c:when> |
||||
<c:when test="<%= workflowLog.getType() == WorkflowLog.TASK_UPDATE %>"> |
||||
<div> |
||||
<liferay-ui:message arguments="<%= HtmlUtil.escape(actorName) %>" key="x-updated-the-due-date" /> |
||||
</div> |
||||
</c:when> |
||||
<c:when test="<%= workflowLog.getType() == WorkflowLog.TRANSITION %>"> |
||||
<div> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(actorName), workflowLog.getState()} %>" key="x-sent-signal-x" /> |
||||
</div> |
||||
</c:when> |
||||
<c:otherwise> |
||||
<c:choose> |
||||
<c:when test="<%= (curUser != null) && (workflowLog.getAuditUserId() == curUser.getUserId()) %>"> |
||||
<div> |
||||
<liferay-ui:message arguments="<%= HtmlUtil.escape(curUser.getFullName()) %>" key='<%= curUser.isMale() ? "x-assigned-the-task-to-himself" : "x-assigned-the-task-to-herself" %>' /> |
||||
</div> |
||||
</c:when> |
||||
<c:otherwise> |
||||
|
||||
<% |
||||
if (curRole == null) { |
||||
String assignerName = PortalUtil.getUserName(workflowLog.getAuditUserId(), StringPool.BLANK); |
||||
%> |
||||
|
||||
<div> |
||||
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(assignerName), HtmlUtil.escape(actorName)} %>" key="x-assigned-the-task-to-x" /> |
||||
|
||||
<c:if test="<%= workflowLog.getPreviousUserId() != 0 %>"> |
||||
<liferay-ui:message arguments="<%= PortalUtil.getUserName(workflowLog.getPreviousUserId(), StringPool.BLANK) %>" key="previous-assignee-was-x" /> |
||||
</c:if> |
||||
</div> |
||||
|
||||
<% |
||||
} |
||||
else { |
||||
%> |
||||
|
||||
<div> |
||||
<liferay-ui:message arguments="<%= HtmlUtil.escape(actorName) %>" key="task-initially-assigned-to-the-x-role" /> |
||||
</div> |
||||
|
||||
<% |
||||
} |
||||
%> |
||||
|
||||
</c:otherwise> |
||||
</c:choose> |
||||
</c:otherwise> |
||||
</c:choose> |
||||
</td> |
||||
<td class="text-center activity-col"> |
||||
<% |
||||
if(Validator.isNotNull(kaleoNodeName)){ |
||||
out.print(kaleoNodeName); |
||||
if(Validator.isNotNull(transitionName)){ |
||||
if("registra-esito".equalsIgnoreCase(transitionName)){ |
||||
//out.print(" ( " + (String)request.getAttribute("registra-esito-value") + " ) "); |
||||
//ADT BUG BO ID=33 |
||||
String esito = (String)request.getAttribute("registra-esito-value"); |
||||
if (historyWorkflowEsitiLogs!=null&& historyWorkflowEsitiLogs.containsKey(workflowLog.getWorkflowLogId()) ){ |
||||
esito=historyWorkflowEsitiLogs.get(workflowLog.getWorkflowLogId()); |
||||
} |
||||
out.print(" ( " + esito + " ) "); |
||||
|
||||
|
||||
} else if("assegna".equalsIgnoreCase(transitionName)){ |
||||
out.print(" ( " + (String)request.getAttribute("assegna-value") + " ) "); |
||||
} |
||||
|
||||
} |
||||
} |
||||
%> |
||||
</td> |
||||
<td class="activity-note"> |
||||
|
||||
<c:if test='<%=Validator.isNotNull(workflowLog.getComment()) && !"Assigned initial task.".equals(workflowLog.getComment()) %>'> |
||||
<div class="post-it-note"> |
||||
<div class="header-post-it"> |
||||
<p class="header-post-it_date"><%= dateFormatDateTime.format(workflowLog.getCreateDate()) %></p> |
||||
<p class="header-post-it_name"> |
||||
<c:if test="<%=Validator.isNotNull(curUser) %>"> |
||||
<%= curUser.getFullName() %> |
||||
</c:if> |
||||
</p> |
||||
</div> |
||||
<div class="body-post-it"> |
||||
<%= HtmlUtil.escape(workflowLog.getComment()) %> |
||||
</div> |
||||
</div> |
||||
</c:if> |
||||
|
||||
</td> |
||||
|
||||
</tr> |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<%-- <div class="task-activity task-type-<%= workflowLog.getType() %>"> |
||||
|
||||
|
||||
|
||||
|
||||
<div> |
||||
|
||||
</div> |
||||
</div> --%> |
||||
|
||||
<% |
||||
} |
||||
%> |
||||
</tbody> |
||||
</table> |
||||
|
||||
|
||||
|
||||
<style> |
||||
.head-date { |
||||
width: 120px; |
||||
} |
||||
.head-description { |
||||
width: 60%; |
||||
} |
||||
.head-activity { |
||||
width: 150px; |
||||
} |
||||
.head-comment { |
||||
width: 40%; |
||||
} |
||||
.attivita-table { |
||||
overflow: auto!important; |
||||
table-layout: fixed; |
||||
} |
||||
.attivita-table thead th { |
||||
background-color: #812121!important; |
||||
color: white; |
||||
} |
||||
|
||||
.attivita-table td { |
||||
border: 1px solid #dddddd; |
||||
} |
||||
.activity-note { |
||||
padding-bottom: 40px!important; |
||||
} |
||||
.post-it-note { |
||||
min-width: 13em; |
||||
background: rgb(255,215,7); |
||||
position: relative; |
||||
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */ |
||||
} |
||||
.post-it-note:after { |
||||
content: ""; |
||||
position: absolute; |
||||
bottom: -2em; |
||||
left: 0; |
||||
right: 2em; |
||||
border-width: 1em; |
||||
border-style: solid; |
||||
border-color: rgb(255,215,7); |
||||
} |
||||
.post-it-note:before { |
||||
content: ""; |
||||
position: absolute; |
||||
bottom: -2em; |
||||
right: 0; |
||||
border-width: 2em 2em 0 0; |
||||
border-style: solid; |
||||
border-color: #d3b100 transparent; |
||||
} |
||||
|
||||
.header-post-it { |
||||
background-color: rgba(211, 177, 0, 0.30); |
||||
display: -webkit-box; |
||||
display: -ms-flexbox; |
||||
display: flex; |
||||
-webkit-box-align: center; |
||||
-ms-flex-align: center; |
||||
align-items: center; |
||||
-webkit-box-pack: justify; |
||||
-ms-flex-pack: justify; |
||||
justify-content: space-between; |
||||
padding: 5px; |
||||
|
||||
} |
||||
.header-post-it p { |
||||
margin: 0; |
||||
padding: 0; |
||||
font-weight: bold; |
||||
font-size: 12px; |
||||
} |
||||
.body-post-it { |
||||
padding: 5px 10px 0px 10px; |
||||
} |
||||
</style> |
Caricamento…
Reference in new issue