web/data/cubicweb.calendar_popup.css
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 29 Jun 2015 16:58:43 +0200
changeset 10463 9add9b7f9df7
parent 5767 1d811df051c2
permissions -rw-r--r--
[server/test] fix random error in unittest_security When entering a new Connection, we cache the user and its 'login' attribute (with no permissions checking). This test makes 'CWUser.login' unreadable by guests, and then proceeds to make sure the 'anon' user can actually not read any 'login' attribute. However, due to the above cnx initialization, anon's login is actually cached, hence readable. This happens to make the test fail sometimes depending on the order in which CWUser entities are returned, because one of them has .complete() called, which as a side effect sets the attribute cache to None for unreadable attributes. Call .complete() on both entities to reset the login cache. While this is still highly debatable, at least it's consistent.

/* styles for the calendar popup widget used to edit date fields
 *
 *  :organization: Logilab
 *  :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 *  :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 */

div.calhelper {
  background: url("calendar.gif") no-repeat;
  border: 4px solid red;
  padding-left:18px;
  width: 10px;
  height: 10px;
  display: inline;
}

div.calpopup {
  position: absolute;
  margin-left: 130px;
  margin-top: -16px;
  width: 17em;
}

table.popupCalendar {
  text-align: center;
  border: 1px solid #ccc;
  z-index: 400;
}

table.popupCalendar th {
  border:1px solid #ccc;
  background : #d9d9c1;
  color: black;
  padding: 2px 3px;
}

table.popupCalendar th.calTitle,
table.popupCalendar th.prev,
table.popupCalendar th.next {
  color: white;
  padding: 0px;
  background : #acac95;
}

table.popupCalendar th.prev,
table.popupCalendar th.next {
  color: #ff4500;
  font-size: 50%;
  font-weight: bold;
  padding: 2px 0px;
}

table.popupCalendar td {
  width: 2em;
  height: 2em;
  background : #f6f5e1;
  font-size: 85%;
  border:1px solid #ccc;
}

table.popupCalendar td.today {
  border: 2px solid black;
}