Skip to content
Snippets Groups Projects
app.css 8 KiB
Newer Older
  • Learn to ignore specific revisions
  • /** Common layout **/
    
    html {
        height: 100%;
    
    matrix.org's avatar
    matrix.org committed
    body {
    
    matrix.org's avatar
    matrix.org committed
        font-family: "Myriad Pro", "Myriad", Helvetica, Arial, sans-serif;
        font-size: 12pt;
        margin: 0px;
    }
    
    h1 {
    
    a:link    { color: #666; }
    a:visited { color: #666; }
    a:hover   { color: #000; }
    a:active  { color: #000; }
    
        min-height: 100%;
        margin-bottom: -32px; /* to make room for the footer */
    
    matrix.org's avatar
    matrix.org committed
        margin: auto;
    
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    
    #header
    {
        position: absolute;
        top: 0px;
        width: 100%;
        background-color: #333;
        height: 32px;
    }
    
    
        margin: auto;
        text-align: right;
        height: 32px;
        line-height: 32px;
    }
    
    #headerContent a:link,
    #headerContent a:visited,
    #headerContent a:hover,
    #headerContent a:active {
        color: #fff;
    }
    
    #footer
    {
    
        border-top: #666 1px solid;
        background-color: #aaa;
        height: 32px;
    }
    
    #footerContent
    {
        font-size: 8pt;
        color: #fff;
        max-width: 1280px;
        margin: auto;
        text-align: center;
        height: 32px;
        line-height: 32px;
    }
    
    #genericHeading
    {
        margin-top: 13px;
    }
    
    #feedback {
        color: #800;
    }
    
    .mouse-pointer {
        cursor: pointer;
    }
    
    .invited {
        opacity: 0.2;
    }
    
    /*** Login Pages ***/
    
    .loginWrapper {
        text-align: center;
    }
    
    #loginForm {
        text-align: left;
        padding: 1em;
        margin-bottom: 40px;
        display: inline-block;
        
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        
        -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15);
        -moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15);
        box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15);
        
        background-color: #f8f8f8;
        border: 1px #ccc solid;
    }
    
    #loginForm input[type='radio'] {
        margin-right: 1em;
    }
    
    #serverConfig {
        text-align: center;
    }
    
    #serverConfig,
    #serverConfig input,
    #serverConfig button
    {
        font-size: 10pt ! important;
    }
    
    .smallPrint {
        color: #888;
        font-size: 9pt ! important;
        font-style: italic ! important;
    }
    
    #serverConfig label {
        display: inline-block;
    
    matrix.org's avatar
    matrix.org committed
        text-align: right;
    
        margin-right: 0.5em;
        width: 7em;   
    }
    
    #loginForm,
    #loginForm input,
    #loginForm button,
    #loginForm select {
        font-size: 18px;
    }
    
    /*** Room page ***/
    
    #roomPage {
    
        top: 120px;
        bottom: 120px;
        left: 20px;
        right: 20px;
    }
    
    #roomWrapper {
        margin: auto;
        max-width: 1280px;
        height: 100%;
    }
    
    #roomName {
        float: right;
    
        margin-top: 15px;
    }
    
    #roomHeader {
        margin: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 53px;
        max-width: 1280px;
    
    matrix.org's avatar
    matrix.org committed
        bottom: 0px;
        width: 100%;
    
    matrix.org's avatar
    matrix.org committed
        background-color: #f8f8f8;
        border-top: #aaa 1px solid;
    }
    
    
    matrix.org's avatar
    matrix.org committed
        max-width: 1280px;
        padding: 12px;
        margin: auto;
    }
    
    
    matrix.org's avatar
    matrix.org committed
        width: 100%;
    }
    
    
    matrix.org's avatar
    matrix.org committed
        width: 100%;
    }
    
    
    matrix.org's avatar
    matrix.org committed
    /*** Participant list ***/
    
    
    matrix.org's avatar
    matrix.org committed
        float: right;
        width: 120px;
    
    matrix.org's avatar
    matrix.org committed
        border-collapse: collapse;
    }
    
    
    matrix.org's avatar
    matrix.org committed
        padding: 0px;
    }
    
    .userAvatar {
        width: 80px;
    
    matrix.org's avatar
    matrix.org committed
        position: relative;
    
    matrix.org's avatar
    matrix.org committed
    }
    
    .userAvatar .userAvatarImage {
        position: absolute;
        top: 0px;
    
    matrix.org's avatar
    matrix.org committed
    }
    
    .userAvatar .userAvatarGradient {
        position: absolute;
    
    matrix.org's avatar
    matrix.org committed
    }
    
    .userAvatar .userName {
        position: absolute;
        color: #fff;
        margin: 2px;
        bottom: 0px;
    
        word-break: break-all;
    
    .userAvatar .userPowerLevel {
        position: absolute;
    
        bottom: 0px;
        height: 2px;
        background-color: #f00;
    
    matrix.org's avatar
    matrix.org committed
    .userPresence {
        text-align: center;
    
    matrix.org's avatar
    matrix.org committed
        color: #fff;
        background-color: #aaa;
        border-bottom: 1px #ddd solid;
    }
    
    .online {
        background-color: #38AF00;
    }
    
    
    matrix.org's avatar
    matrix.org committed
        background-color: #FFCC00;
    }
    
    /*** Message table ***/
    
    
    matrix.org's avatar
    matrix.org committed
        margin-right: 140px;
    
    matrix.org's avatar
    matrix.org committed
        width: 100%;
        border-collapse: collapse;
    
    matrix.org's avatar
    matrix.org committed
        padding: 0px;
    }
    
    .leftBlock {
    
    Matthew Hodgson's avatar
    Matthew Hodgson committed
        width: 14em;
        word-wrap: break-word;
    
    matrix.org's avatar
    matrix.org committed
        vertical-align: top;
        background-color: #fff;
        color: #888;
        font-weight: medium;
    
    matrix.org's avatar
    matrix.org committed
        text-align: right;
        border-top: 1px #ddd solid;
    }
    
    .rightBlock {
        width: 32px;
        color: #888;
        line-height: 0;
        vertical-align: top;
    }        
    
    .sender, .timestamp {
        padding-right: 1em;
        padding-left: 1em;
        padding-top: 3px;
    }
    
    .sender {
        margin-bottom: -3px;
    }
    
    .avatar {
        width: 48px;
        text-align: right;
        vertical-align: top;
        line-height: 0;
    }
    
    matrix.org's avatar
    matrix.org committed
            
    .emote {
    
        background-color: transparent ! important;
    
    matrix.org's avatar
    matrix.org committed
        border: 0px ! important;
    }
    
    
    .membership {
    
        background-color: transparent ! important;
    
        border: 0px ! important;
    }
    
    
    .image {
        display: block;
        max-width:320px;
        max-height:320px;
        width: auto;
        height: auto;
    }
    
    
    Matthew Hodgson's avatar
    Matthew Hodgson committed
    .text {
        vertical-align: top;
    }
    
    
    matrix.org's avatar
    matrix.org committed
    .bubble {
    
        background-color: #eee;
        border: 1px solid #d8d8d8;
        display: inline-block;
        margin-bottom: -1px;
        max-width: 90%;
    
        padding-top: 7px;
        padding-bottom: 5px;
    
    matrix.org's avatar
    matrix.org committed
        padding-left: 1em;
        padding-right: 1em;
    
        vertical-align: middle;
    
        -webkit-text-size-adjust:100%
    
    .differentUser td {
    
        padding-bottom: 5px ! important;
    
    matrix.org's avatar
    matrix.org committed
    }
    
    .mine {
        text-align: right;
    }
    
    
    .text.emote .bubble,
    .text.membership .bubble,
    .mine .text.emote .bubble,
    .mine .text.membership .bubble
      {
        background-color: transparent ! important;    
        border: 0px ! important;
    
    .mine .text .bubble {
    
        background-color: #f8f8ff ! important;    
    
        text-align: left ! important;
    
    #room-fullscreen-image {
        position: absolute;
        top: 0px;
        height: 0px;
        width: 100%;
        height: 100%;
    }
    
    #room-fullscreen-image img {
    
        max-width: 90%;
        max-height: 90%;
    
        bottom: 0;
        left: 0;
        margin: auto;
        overflow: auto;
        position: fixed;
        right: 0;
        top: 0;
    
    
        -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);    
    
    .recentsTable {
        max-width: 480px;
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }
    
    .recentsTable tr {
        width: 100%;
    }
    .recentsTable td {
        vertical-align: text-top;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .recentsRoom {
        cursor: pointer;
    }
    
    .recentsRoom:hover {
        background-color: #f8f8ff;
    }
    
    
    .recentsRoomSelected {
        background-color: #eee;
    }
    
    
    .recentsRoomName {
        font-size: 16px;
        padding-top: 7px;
        width: auto;
    }
    
    .recentsRoomSummaryTS {
        color: #888;
        font-size: 12px;
        width: 7em;
        text-align: right;
    }
    
    .recentsRoomSummary {
        color: #888;
        font-size: 12px;
        padding-bottom: 5px;
    }
    
    
    /*** Recents in the room page ***/
    
    #roomRecentsTableWrapper {
        float: left;
        max-width: 320px;
    
        padding-right: 10px;
        margin-right: 10px;
    
    /*** Profile ***/
    
    .profile-avatar {
        width: 160px;
        height: 160px;
    
        text-align: center;
    
    Matthew Hodgson's avatar
    Matthew Hodgson committed
        width: 100%;
        height: 100%;
        object-fit: cover;    
    
    /*** User profile page ***/
    
    #user-displayname-input {
        width: 160px;
        max-width: 155px;
    }
    
    #user-save-button {
        width: 160px;
        font-size: 14px;
    }