Lines Matching refs:selector

157 var $selector = '';  variable in csstidy
517 if($string{$i} == '/' && @$string{$i+1} == '*' && trim($this->selector) == '')
522 elseif($string{$i} == '@' && trim($this->selector) == '')
530 ($type == 'at') ? $this->at = '@'.$name : $this->selector = '@'.$name;
539 $this->selector = '@';
554 $this->selector .= $string{$i};
567 $this->_add_token(SEL_START, $this->selector);
574 $this->selector = '';
579 $this->selector = trim($this->selector).',';
580 $this->sel_separate[] = strlen($this->selector);
584 $this->selector .= $this->_unicode($string,$i);
586 else $this->selector .= $string{$i};
590 $lastpos = strlen($this->selector)-1;
591 …s == -1 || !( (ctype_space($this->selector{$lastpos}) || csstidy::is_token($this->selector,$lastpo…
593 $this->selector .= $string{$i};
619 $this->_add_token(SEL_END, $this->selector);
620 $this->selector = '';
665 …if($this->selector{0} == '@' && isset($at_rules[substr($this->selector,1)]) && $at_rules[substr($t…
671 switch($this->selector)
680 $this->selector = '';
692 if(($string{$i} == '}' || $string{$i} == ';' || $pn) && !empty($this->selector))
702 $this->selector = strtolower($this->selector);
714 $this->selector = trim($this->selector);
721 … $this->css_add_property($this->at,$this->selector,$this->property,$this->value);
744 $this->_add_token(SEL_END, $this->selector);
747 $this->selector = '';
792 $this->selector .= $temp_add;
832 $this->sel_separate[] = strlen($this->selector);
839 $new_sels[] = substr($this->selector,$lastpos,$pos-$lastpos-1);
845 foreach($new_sels as $selector)
847 $this->merge_css_blocks($this->at,$selector,$this->css[$this->at][$this->selector]);
849 unset($this->css[$this->at][$this->selector]);
871 * @param string $selector
877 function css_add_property($media,$selector,$property,$new_val) argument
884 if(isset($this->css[$media][$selector][$property]))
886 …$this->css[$media][$selector][$property]) && csstidy::is_important($new_val)) || !csstidy::is_impo…
888 unset($this->css[$media][$selector][$property]);
889 $this->css[$media][$selector][$property] = trim($new_val);
894 $this->css[$media][$selector][$property] = trim($new_val);
901 * @param string $selector
906 function merge_css_blocks($media,$selector,$css_add) argument
910 $this->css_add_property($media,$selector,$property,$value,false);