For The King Wiki

Welcome to the For The King Wiki!
The comprehensive field guide to locations, characters, items, creatures, and encounters throughout the land of Fahrul in the game For The King.
Click to dismiss.

READ MORE

For The King Wiki
Advertisement

This is a sub-module of Module:Mbox and is used to specify the CSS properties for message boxes.


local localStyle = {
    ['mbox'] = {
        ['display'] = 'flex',
        ['position'] = 'relative',
        ['background-color'] = 'rgba(132,29,89,0.2)',
        ['border'] = '1px solid #ffd700',
        ['border-left-width'] = '8px',
        ['border-left-color'] = '#ffd700',
        ['border-radius'] = '8px',
        ['margin-left'] = '8px',
        ['margin-bottom'] = '8px',
        ['min-height'] = '32px'
    },
    ['mbox__content'] = {
        ['display'] = 'table',
        ['box-sizing'] = 'border-box',
        ['width'] = '100%',
        ['padding'] = '8px 8px'
    },
    ['mbox__content__image'] = {
        ['display'] = 'table-cell',
        ['width'] = '40px',
        ['height'] = '100%',
        ['text-align'] = 'center',
        ['vertical-align'] = 'middle',
        ['padding-right'] = '15px'
    },
    ['mbox__content__wrapper'] = {
        ['display'] = 'table-cell',
        ['vertical-align'] = 'middle'
    },
    ['mbox__content__header'] = {
        ['display'] = 'block',
        ['font-weight'] = 'bold'
    },
    ['mbox__content__text'] = {
        ['display'] = 'block'
    },
    ['mbox__content__text__comment'] = {
        ['font-size'] = 'small'
    },
    ['mbox__content__aside'] = {
        ['display'] = 'table-cell',
        ['width'] = '100px',
        ['vertical-align'] = 'middle',
        ['text-align'] = 'center',
        ['padding-left'] = '8px',
        ['border-left'] = '1px solid #ffd700'
    },
    ['mbox__close'] = {
        ['position'] = 'absolute',
        ['right'] = '0',
        ['top'] = '0',
        ['padding'] = '2px 7px',
        ['font-weight'] = 'bold',
        ['font-size'] = '16px',
        ['color'] = '#bbb',
        ['cursor'] = 'pointer',
        ['transition'] = 'all .15s ease-in'
    }
}
return { localStyle = localStyle }
Advertisement