Module:Mbox/data: Difference between revisions

From Heterodontosaurus Balls
(Created page with "local localStyle = { ['mbox'] = { ['display'] = 'flex', ['position'] = 'relative', ['background-color'] = 'rgba(23, 24, 26, 0.7)', ['border'] = '1px solid #3C4143', ['border-left-width'] = '8px', ['border-left-color'] = '#3C4143', ['border-radius'] = '3px', ['margin-bottom'] = '5px', ['min-height'] = '32px' }, ['mbox__content'] = { ['display'] = 'table', ['box-sizing'] = '...")
 
m (Protected "Module:Mbox/data" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(13 intermediate revisions by the same user not shown)
Line 3: Line 3:
         ['display'] = 'flex',
         ['display'] = 'flex',
         ['position'] = 'relative',
         ['position'] = 'relative',
         ['background-color'] = 'rgba(23, 24, 26, 0.7)',
         ['background-color'] = '#c7c7c7',
         ['border'] = '1px solid #3C4143',
         ['border'] = '1px solid #c7c7c7',
         ['border-left-width'] = '8px',
         ['border-left-width'] = '8px',
         ['border-left-color'] = '#3C4143',
         ['border-left-color'] = '#c7c7c7',
         ['border-radius'] = '3px',
         ['border-radius'] = '3px',
         ['margin-bottom'] = '5px',
         ['margin-bottom'] = '5px',
Line 19: Line 19:
     ['mbox__content__image'] = {
     ['mbox__content__image'] = {
         ['display'] = 'table-cell',
         ['display'] = 'table-cell',
         ['width'] = '40px',
         ['width'] = '100px',
         ['height'] = '100%',
         ['height'] = '100%',
         ['text-align'] = 'center',
         ['text-align'] = 'center',

Latest revision as of 17:10, 25 July 2024

Documentation for this module may be created at Module:Mbox/data/doc

local localStyle = {
    ['mbox'] = {
        ['display'] = 'flex',
        ['position'] = 'relative',
        ['background-color'] = '#c7c7c7',
        ['border'] = '1px solid #c7c7c7',
        ['border-left-width'] = '8px',
        ['border-left-color'] = '#c7c7c7',
        ['border-radius'] = '3px',
        ['margin-bottom'] = '5px',
        ['min-height'] = '32px'
    },
    ['mbox__content'] = {
        ['display'] = 'table',
        ['box-sizing'] = 'border-box',
        ['width'] = '100%',
        ['padding'] = '8px 15px'
    },
    ['mbox__content__image'] = {
        ['display'] = 'table-cell',
        ['width'] = '100px',
        ['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'] = '15px',
        ['border-left'] = '1px solid #3C4143'
    },
    ['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 }