Results 1 to 5 of 5

Thread: Re-sizing stuff

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re-sizing stuff

    Ok - I've been able to "re-size" these elements for a seven inch tablet screen by using the following CSS

    Code:
    .ui-dialog-title {
        font-size: xx-large;
    }
    
    .ui-dialog-content {
        font-size: xx-large;
    }
    
    .ui-button-text {
        font-size: xx-large;
    }
    It did not include the USERNAME or PASSWORD prompts - as I have them in SPAN's.

    What CSS would I need to use to GET to those elements??
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Re-sizing stuff

    What font-size is defined under class "acs-span-medium"?

    The parent div is using class ".ui-dialog-content" with a font size of xx-large, however if the span class has a different font-size, it will use that font-size, and not the one defined in the parent div.

  3. #3

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Re-sizing stuff

    So - I used Firebug to see where that FONT STYLE came from and it's from a CSS that came along with me using SlickGrid's in the page.

    Examples.css is the filename - and it's got the FONT=SIZE at the top of it.

    Why would they put an "*" selector like that? How can I apply this style sheet to just SlickGrids?

    Code:
    @import url('slick-default-theme.css');
    
    * {
        font-family: arial;
        font-size: 8pt;
    }
    
    body {
        background: beige;
    }
    
    h2 {
        font-size: 10pt;
        border-bottom: 1px dotted gray;
    }
    
    ul {
        margin-left: 0;
        padding: 0;
        cursor: default;
    }
    
    li {
        background: url("../images/arrow_right_spearmint.png") no-repeat center left;
        padding: 0 0 0 14px;
    
        list-style: none;
        margin: 0;
    } 
    
    #myGrid {
        background: white;
        outline: 0;
        border: 1px solid gray;
    }
    
    .grid-header {
    	border: 1px solid gray;
    	border-bottom: 0;
    	border-top: 0;
    	background: url('../images/header-bg.gif') repeat-x center top;
    	color: black;
    	height: 24px;
    	line-height: 24px;
    }	
    
    .grid-header label {
    	display: inline-block;
    	font-weight: bold;
        margin: auto auto auto 6px;
    }
    
    .grid-header .ui-icon {
        margin: 4px 4px auto 6px;
        background-color: transparent;
        border-color: transparent;
    }
    
    .grid-header .ui-icon.ui-state-hover {
        background-color: white;
    }
    
    .grid-header #txtSearch {
    	margin: 0 4px 0 4px;
    	padding: 2px 2px;
    	-moz-border-radius: 2px;
    	-webkit-border-radius: 2px;
    	border: 1px solid silver;
    }
    
    .options-panel {
    	-moz-border-radius: 6px;
    	-webkit-border-radius: 6px;
    	border: 1px solid silver;
    	background: #f0f0f0;	
    	padding: 4px;		
    	margin-bottom: 20px;
    }
    
     
    
    /* Individual cell styles */
    .slick-cell.task-name {
    	font-weight: bold;
    	text-align: right;
    }
    
    
    .slick-cell.task-percent {
    	text-align: right;
    }
    
    
    .slick-cell.cell-move-handle {
    	font-weight: bold;
    	text-align: right;
        border-right: solid gray;
    
        background: #efefef;
    	cursor: move;
    }
    
    .cell-move-handle:hover {
    	background: #b6b9bd;
    }
    
    .slick-row.selected .cell-move-handle {
    	background: #D5DC8D;
    }
    
    .slick-row .cell-actions {
    	text-align: left;
    }
    
    .slick-row.complete {
    	background-color: #DFD;
    	color: #555;
    }
    
    .percent-complete-bar {
    	display: inline-block;
    	height: 6px;
    	-moz-border-radius: 3px;
    	-webkit-border-radius: 3px;
    }
    
    
    /* TextCellEditor, DateCellEditor */
    input.editor-text {
    	width: 100%;
    	height: 100%;
    	border: 0;
    	margin: 0;
    	background: transparent;
    	outline: 0;
        padding: 0;
    
    }
    
    .slick-cell .ui-datepicker-trigger {
    	margin-top: 2px;
    	padding: 0;
    	vertical-align: top;
    }
    
    /* PercentCompleteCellEditor */
    input.editor-percentcomplete {
    	width: 100%;
    	height: 100%;
    	border: 0;
    	margin: 0;
    	background: transparent;
    	outline: 0;
        padding: 0;
    
        float: left;
    }
    
    .editor-percentcomplete-picker {
    	position: relative;
        display: inline-block;
        width: 16px;
        height: 100%;
        background: url("../images/pencil.gif") no-repeat center center;	
    	overflow: visible;
    	z-index: 1000;
    	float: right;
    }
    	
    .editor-percentcomplete-helper {
        border: 0 solid gray;
        position: absolute;
        top: -2px;
        left: -9px;
        background: url("../images/editor-helper-bg.gif") no-repeat top left;
        padding-left: 9px;
    
        width: 120px;
        height: 140px;
        display: none;	
    	overflow: visible;
    }
    
    
    .editor-percentcomplete-wrapper {
    	background:beige;
        padding: 20px 8px;
    
        width:100%;
    	height:98px;
    	border:1px solid gray;
    	border-left:0;
    }
    
    .editor-percentcomplete-buttons {
    	float: right;	
    }
    
    .editor-percentcomplete-buttons button {
    	width: 80px;	
    }
    
    
    .editor-percentcomplete-slider {
    	float: left;	
    }
    
     .editor-percentcomplete-picker:hover .editor-percentcomplete-helper {
    	display: block;
    }
    
    .editor-percentcomplete-helper:hover {
    	display: block;
    }
    
    
    
    /* YesNoSelectCellEditor */
    select.editor-yesno {
    	width: 100%;
    	margin: 0;
    	vertical-align: middle;		
    }
    
    /* YesNoCheckboxCellEditor */
    input.editor-checkbox {
    	margin: 0;
    	height: 100%;
    	padding: 0;
    	border: 0;
    }
    [edit] Wow - this is an evil CSS file that I have in my web site - argh!! [/edit]

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Re-sizing stuff

    Quote Originally Posted by szlamany View Post
    Why would they put an "*" selector like that? How can I apply this style sheet to just SlickGrids?
    Dodgy coding? You would need to create a CSS class to add to the top-level element and then prefix all style definitions in your .css with this class. ie. effectively "namespacing" for your css.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  5. #5
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Re-sizing stuff

    Quote Originally Posted by tr333 View Post
    Dodgy coding? You would need to create a CSS class to add to the top-level element and then prefix all style definitions in your .css with this class. ie. effectively "namespacing" for your css.
    I think we might be thinking the same thing... if this is what you are thinking:

    css Code:
    1. .span-label-class span {
    2.      font-size:xx-large;
    3. }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width