Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CardPages/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
.main-banner {
.main-container {
position: relative;
  width: 25%;
width: 25%;
  height: 200px;
height: 200px;
  float: right;
float: right;
  margin: 20px 0;
margin: 20px 0;
  border: 2px solid #910c0c;
border: 2px solid #910c0c;
 
  display: flex;            /* establish flex context */
}
}
.main-overlay {
.main-overlay {
position: absolute;
  display: flex;
display: flex;
  flex-direction: column;
flex-wrap: wrap;
  width: 100%;
flex-direction: column;
  height: 100%;             /* lock to banner height */
border: 4px solid #0c2f91;
  padding: 10px;
padding: 10px;
  box-sizing: border-box;
z-index: 1;
  border: 4px solid #0c2f91;
}
}


.element-item {
.element-item {
flex: 1;
  flex: 1;                 /* equal vertical height */
text-align: center;
  margin: 5px 0;
padding: 0 4px;
  background: #F54927;
background: #F54927;
  cursor: pointer;
cursor: pointer;
 
margin: 5px;
  display: flex;
height: 100%;
  align-items: center;
  justify-content: center;
}
}


.element-item img {
.element-item img {
    width: 100%;
  max-width: 100%;
    height: 28.5px;
  max-height: 100%;
  object-fit: contain;
}
}

Revision as of 23:09, 22 January 2026

.main-container {
  width: 25%;
  height: 200px;
  float: right;
  margin: 20px 0;
  border: 2px solid #910c0c;

  display: flex;            /* establish flex context */
}
.main-overlay {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;             /* lock to banner height */
  padding: 10px;
  box-sizing: border-box;
  border: 4px solid #0c2f91;
}

.element-item {
  flex: 1;                  /* equal vertical height */
  margin: 5px 0;
  background: #F54927;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.element-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}